From cdfface0a8b9e2cbabba26b0e320cb4bcbe40547 Mon Sep 17 00:00:00 2001 From: Kamran Ayub Date: Sat, 26 Oct 2019 09:27:47 -0500 Subject: [PATCH] [chore] Actions: Label PRs from branch names (#1271) Adds a PR labeler workflow to automatically tag PRs based on branch naming conventions --- .github/pr-labeler.yml | 3 +++ .github/workflows/pr-labeler.yml | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .github/pr-labeler.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 00000000..3e2c8e4f --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,3 @@ +enhancement: ['feature/*', 'feat/*', 'enhancement/*'] +bug: ['fix/*', 'bug/*'] +chore: chore/* \ No newline at end of file diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000..38bc5d2f --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,12 @@ +name: PR Labeler +on: + pull_request: + types: [opened] + +jobs: + pr-labeler: + runs-on: ubuntu-latest + steps: + - uses: TimonVS/pr-labeler-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -- 2.51.2