From d0d2ed3ef1539e2a3dd399bb3c03eb1087527110 Mon Sep 17 00:00:00 2001 From: Harshit Mehta Date: Mon, 9 Jan 2023 20:05:02 +0530 Subject: [PATCH] Add github workflow for auto PR labeling (#179) Co-authored-by: Harshit Mehta --- .github/labeler.yml | 1 + .github/workflows/pull-request-labeler.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/pull-request-labeler.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml index 6eaa2dc..6c77ea8 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -48,6 +48,7 @@ github-actions: - .github/ISSUE_TEMPLATE/* - .github/labeler.yml - .github/pull_request_template + - .github/workflow/pull-request-labeler.yaml release: - .github/workflows/publish-chart.yaml diff --git a/.github/workflows/pull-request-labeler.yaml b/.github/workflows/pull-request-labeler.yaml new file mode 100644 index 0000000..680f9d1 --- /dev/null +++ b/.github/workflows/pull-request-labeler.yaml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file