From 435b3a8dc76bde9b616da52e708a575b025908c2 Mon Sep 17 00:00:00 2001 From: qiancai Date: Mon, 7 Aug 2023 23:10:56 +0800 Subject: [PATCH] add content --- .github/labeler.yml | 3 +++ .github/workflows/label.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..cb14a7e559ac3 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,3 @@ +area/tidb-cloud: + - /tidb-cloud/** + - /media/tidb-cloud/** \ No newline at end of file diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000000000..9e9315496b6fe --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,28 @@ +name: "Pull Request Labeler" +on: + pull_request_target: + types: + - opened + - synchronize + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Git + run: git fetch origin ${{ github.event.pull_request.head.ref }} + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Label Pull Request + uses: actions/labeler@v4 + with: + repo-token: ${{secrets.GITHUB_TOKEN}} + configuration-path: .github/labeler.yml + sync-labels: true + dot: true