Skip to content

Commit

Permalink
feat: init projects
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Jun 8, 2024
1 parent c975a8f commit f0b55c4
Show file tree
Hide file tree
Showing 54 changed files with 178 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/auto-invite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Invite users to join our group
on:
issue_comment:
types:
- created
jobs:
issue_comment:
name: Invite users to join our group
if: ${{ github.event.comment.body == '/invite' || github.event.comment.body == '/close' || github.event.comment.body == '/comment' }}
runs-on: ubuntu-latest
permissions:
issues: write
steps:

- name: Invite user to join our group
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
hello ~
- name: Close Issue
uses: peter-evans/close-issue@v3
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
comment: 🤖 Auto-closing issue, if you still need help please reopen the issue or ask for help in the community above
labels: |
triage/accepted
35 changes: 35 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: e2e

on:
workflow_dispatch:
pull_request:
push:
schedule:
# run e2e test every 4 hours
- cron: 0 */4 * * *

jobs:
build:
name: Test
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:

- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.21
id: go

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Create e2e test
run: |
echo "...test e2e"
17 changes: 17 additions & 0 deletions .github/workflows/issue-robot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'issue translator'
on:
issue_comment:
types: [created]
issues:
types: [opened]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: usthe/[email protected]
with:
# it is not necessary to decide whether you need to modify the issue header content
IS_MODIFY_TITLE: true
BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
# Required, input your bot github token
Empty file added .github/workflows/link-pr.yml
Empty file.
15 changes: 15 additions & 0 deletions .github/workflows/project-progress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Move new issues into Triage

on:
issues:
types: [opened]

jobs:
automate-project-columns:
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
with:
project: OpenKF
column: In Progress
repo-token: ${{ secrets.GITHUB_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '0 8 * * *'

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
days-before-stale: 60
days-before-close: 30
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
stale-pr-message: 'This issue is stale because it has been open 60 days with no activity.'
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity. You can reopen it if you want.'
stale-pr-label: lifecycle/stale
stale-issue-label: lifecycle/stale
exempt-issue-labels: 'openim'
exempt-pr-labels: 'openim'
exempt-draft-pr: true
1 change: 1 addition & 0 deletions ai_commons/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/api_clients/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/api_clients/openai_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# OpenAI client module
1 change: 1 addition & 0 deletions ai_commons/api_clients/slack_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Slack client module
1 change: 1 addition & 0 deletions ai_commons/api_clients/webhook_handler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Webhook handler module
1 change: 1 addition & 0 deletions ai_commons/async_tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/async_tasks/celery_task_manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Celery task manager module
1 change: 1 addition & 0 deletions ai_commons/async_tasks/task_scheduler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Task scheduler module
1 change: 1 addition & 0 deletions ai_commons/config/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/config/config_loader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Config loader module
1 change: 1 addition & 0 deletions ai_commons/config/environment_manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Environment manager module
1 change: 1 addition & 0 deletions ai_commons/data_export/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/data_export/data_exporter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Data exporter module
1 change: 1 addition & 0 deletions ai_commons/data_export/report_generator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Report generator module
1 change: 1 addition & 0 deletions ai_commons/data_processing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/data_processing/data_splitter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Data splitter module
1 change: 1 addition & 0 deletions ai_commons/data_processing/tag_aggregator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Tag aggregator module
1 change: 1 addition & 0 deletions ai_commons/data_processing/theme_generator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Theme generator module
1 change: 1 addition & 0 deletions ai_commons/database/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/database/database_connector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Database connector module
1 change: 1 addition & 0 deletions ai_commons/database/orm_wrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ORM wrapper module
1 change: 1 addition & 0 deletions ai_commons/database/query_executor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Query executor module
1 change: 1 addition & 0 deletions ai_commons/file_processing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/file_processing/data_cleaner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Data cleaner module
1 change: 1 addition & 0 deletions ai_commons/file_processing/excel_parser.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Excel parser module
1 change: 1 addition & 0 deletions ai_commons/file_processing/json_validator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# JSON validator module
1 change: 1 addition & 0 deletions ai_commons/logging_monitoring/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/logging_monitoring/error_tracker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Error tracker module
1 change: 1 addition & 0 deletions ai_commons/logging_monitoring/logger.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Logger module
1 change: 1 addition & 0 deletions ai_commons/logging_monitoring/metrics_collector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Metrics collector module
1 change: 1 addition & 0 deletions ai_commons/security/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/security/access_control.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Access control module
1 change: 1 addition & 0 deletions ai_commons/security/auth_manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Auth manager module
1 change: 1 addition & 0 deletions ai_commons/ui_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ai_commons/ui_tools/data_visualizer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Data visualizer module
1 change: 1 addition & 0 deletions ai_commons/ui_tools/file_uploader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# File uploader module
1 change: 1 addition & 0 deletions ai_commons/ui_tools/form_validator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Form validator module
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions tests/test_api_clients.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test API clients
1 change: 1 addition & 0 deletions tests/test_async_tasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test async tasks
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test config
1 change: 1 addition & 0 deletions tests/test_data_export.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test data export
1 change: 1 addition & 0 deletions tests/test_data_processing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test data processing
1 change: 1 addition & 0 deletions tests/test_database.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test database
1 change: 1 addition & 0 deletions tests/test_file_processing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test file processing
1 change: 1 addition & 0 deletions tests/test_logging_monitoring.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test logging and monitoring
1 change: 1 addition & 0 deletions tests/test_security.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test security
1 change: 1 addition & 0 deletions tests/test_ui_tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test UI tools

0 comments on commit f0b55c4

Please sign in to comment.