add the labeler github action (#347) (#354)

This commit is contained in:
Jian Zhang 2021-12-02 23:33:08 +08:00 committed by GitHub
parent 6ec1d70628
commit 6786263895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 0 deletions

17
.github/labeler.yml vendored Normal file
View File

@ -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/*

5
.github/pr-branch-labeler.yml vendored Normal file
View File

@ -0,0 +1,5 @@
type/3.1-cherry-pick:
base: "release-3.1"
type/3.0-cherry-pick:
base: "release-3.0"

11
.github/workflows/labeler.yml vendored Normal file
View File

@ -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 }}"

13
.github/workflows/pr-branch-labeler.yml vendored Normal file
View File

@ -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 }}