diff --git a/.github/configs/auto-asign.yml b/.github/configs/auto-asign.yml new file mode 100644 index 00000000..b39969a2 --- /dev/null +++ b/.github/configs/auto-asign.yml @@ -0,0 +1,26 @@ +# Set to true to add reviewers to PRs +addReviewers: true + +# Set to 'author' to add PR's author as a assignee +addAssignees: author + +# A list of reviewers to be added to PRs (GitHub user name) +reviewers: + - Lruihao + +# A number of reviewers added to the PR +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 1 + +# A list of assignees, overrides reviewers if set +assignees: + - Lruihao + +# A number of assignees to add to the PRs +# Set to 0 to add all of the assignees. +# Uses numberOfReviewers if unset. +numberOfAssignees: 0 + +# A list of keywords to be skipped the process if PR's title include it +skipKeywords: + - wip \ No newline at end of file diff --git a/.github/codeql/codeql-config.yml b/.github/configs/codeql.yml similarity index 100% rename from .github/codeql/codeql-config.yml rename to .github/configs/codeql.yml diff --git a/.github/workflows/auto-asign.yml b/.github/workflows/auto-asign.yml new file mode 100644 index 00000000..a805e2de --- /dev/null +++ b/.github/workflows/auto-asign.yml @@ -0,0 +1,14 @@ +name: Auto Assign +on: + issues: + types: [opened] + pull_request: + types: [opened] +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: bubkoo/auto-assign@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CONFIG_FILE: .github/configs/auto-assign.yml \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b7b162b8..2e274e2b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -43,7 +43,7 @@ jobs: uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} - config-file: ./.github/codeql/codeql-config.yml + config-file: ./.github/configs/codeql.yml # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file.