From 889ddce54b1e92c4d10953414ed450b1136c8c3b Mon Sep 17 00:00:00 2001 From: Rustin Liu Date: Thu, 18 Feb 2021 15:51:07 +0800 Subject: [PATCH] github: add labeler (#112) Signed-off-by: hi-rustin --- .github/labeler.yml | 14 ++++++++++++++ .github/workflows/ labeler.yml | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/ labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..dc52dc86 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +sig/coprocessor: + - any: [ "sig/coprocessor/*","!sig/coprocessor/membership.json" ] + +sig/engine: + - any: [ "sig/engine/*","!sig/engine/membership.json" ] + +sig/raft: + - any: [ "sig/raft/*","!sig/raft/membership.json" ] + +sig/scheduling: + - any: [ "sig/scheduling/*","!sig/scheduling/membership.json" ] + +sig/transaction: + - any: [ "sig/transaction/*","!sig/transaction/membership.json" ] \ No newline at end of file diff --git a/.github/workflows/ labeler.yml b/.github/workflows/ labeler.yml new file mode 100644 index 00000000..58875407 --- /dev/null +++ b/.github/workflows/ labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true \ No newline at end of file