diff --git a/.github/assign-by-files.yml b/.github/assign-by-files.yml index 36950b02fa9db..4712c4faf1c64 100644 --- a/.github/assign-by-files.yml +++ b/.github/assign-by-files.yml @@ -1,4 +1,9 @@ --- +# Changing all md files should request a language review in case of format failures. +# TomShawn is the repo administrator. +'*.*': + - TomShawn + # you can use glob pattern # You can set multiple reviewers @@ -31,8 +36,3 @@ # 'ticdc/': # - WangXiangUSTC - -# Changing all md files should request a language review in case of format failures. -# TomShawn is the repo administrator. -'*.*': - - yikeke diff --git a/.github/auto-label.json b/.github/auto-label.json index d00f6973330ae..375deaf575596 100644 --- a/.github/auto-label.json +++ b/.github/auto-label.json @@ -1,6 +1,6 @@ { "rules": { "translation/welcome": ["*.md", "*.yml", "*.yaml", "*.json", "media/", "scripts/"], - "status/PTAL": ["*.md", "*.yml", "*.yaml", "*.json", "media/", "scripts/"] + "status/PTAL": ["*.*"] } -} \ No newline at end of file +} diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 0000000000000..fbf879388a94e --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,26 @@ +# Set to true to add reviewers to pull requests +addReviewers: true + +# Set to true to add assignees to pull requests +addAssignees: false + +# A list of reviewers to be added to pull requests (GitHub user name) +reviewers: + - TomShawn + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 + +# A list of assignees, overrides reviewers if set +# assignees: +# - assigneeA + +# A number of assignees to add to the pull request +# Set to 0 to add all of the assignees. +# Uses numberOfReviewers if unset. +# numberOfAssignees: 2 + +# A list of keywords to be skipped the process that add reviewers if pull requests include it +# skipKeywords: +# - wip \ No newline at end of file diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..5b321fbcd5d9d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,12 @@ +# Add 'label1' to any changes within 'example' folder or any subfolders +translation/welcome: + - *.md + - *.yml + - *.yaml + - *.json + - media/ + - scripts/ + +# Add 'label2' to any file changes within 'example2' folder +status/PTAL: + - *.* \ No newline at end of file diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000000000..4904776a00e05 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,28 @@ +name: 'Auto Assign' +on: + pull_request: + branches: + - master + types: [opened, labeled] + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.1.1 + +# name: "Auto Assign" +# on: +# pull_request: +# branches: +# - master +# types: [opened] + +# jobs: +# assign_reviewer: +# runs-on: ubuntu-latest +# steps: +# - uses: shufo/auto-assign-reviewer-by-files@v1.0.0 +# with: +# config: '.github/assign-by-files.yml' +# token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml deleted file mode 100644 index e5a730c580faa..0000000000000 --- a/.github/workflows/auto-assign.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: "Auto Assign" -on: - pull_request: - branches: - - master - types: [opened] - -jobs: - assign_reviewer: - runs-on: ubuntu-latest - steps: - - uses: shufo/auto-assign-reviewer-by-files@v1.0.0 - with: - config: '.github/assign-by-files.yml' - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml deleted file mode 100644 index 1a498379833ea..0000000000000 --- a/.github/workflows/auto-label.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Auto Label -on: - pull_request: - branches: - - master - types: [opened] - -jobs: - auto-label: - name: Auto Label - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: banyan/auto-label@1.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000000..77bdde4fb467b --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,31 @@ +name: "Pull Request Labeler" +on: + pull_request: + branches: + - master + types: [opened, labeled] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + +# name: Auto Label +# on: +# pull_request: +# branches: +# - master +# types: [opened] + +# jobs: +# auto-label: +# name: Auto Label +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - uses: banyan/auto-label@1.2 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}