diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..b6688e480fe --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,17 @@ +component/config: + - config/* + +component/br: + - src/main/java/org/tikv/br/* + +component/cdc: + - src/main/java/org/tikv/cdc/* + +component/common: + - src/main/java/org/tikv/common/* + +component/rawkv: + - src/main/java/org/tikv/raw/* + +component/txnkv: + - src/main/java/org/tikv/txn/* diff --git a/.github/pr-branch-labeler.yml b/.github/pr-branch-labeler.yml new file mode 100644 index 00000000000..5de95b1170e --- /dev/null +++ b/.github/pr-branch-labeler.yml @@ -0,0 +1,5 @@ +type/3.1-cherry-pick: + base: "release-3.1" + +type/3.0-cherry-pick: + base: "release-3.0" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000000..331ddc9b803 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/pr-branch-labeler.yml b/.github/workflows/pr-branch-labeler.yml new file mode 100644 index 00000000000..c47448e57b8 --- /dev/null +++ b/.github/workflows/pr-branch-labeler.yml @@ -0,0 +1,13 @@ +name: PR Branch Labeler + +on: pull_request + +jobs: + label_prs: + runs-on: ubuntu-latest + steps: + - name: Label PRs + if: github.event.action == 'opened' # Only run the action when the PR was first opened + uses: ffittschen/pr-branch-labeler@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}