Skip to content

Commit

Permalink
add the labeler github action (#347) (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-jason authored Dec 2, 2021
1 parent 6ec1d70 commit 6786263
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions .github/pr-branch-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type/3.1-cherry-pick:
base: "release-3.1"

type/3.0-cherry-pick:
base: "release-3.0"
11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions .github/workflows/pr-branch-labeler.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 6786263

Please sign in to comment.