From a29339f12795c66daa3e063d33a8a007862656b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Mind=C3=AAllo=20de=20Andrade?= Date: Wed, 24 Jul 2024 18:30:24 +0000 Subject: [PATCH] chore: pr auto label --- .github/pr-labeler.yml | 8 ++++++++ .github/workflows/label-prs.yml | 11 +++++++++++ .github/workflows/{pr.yml => lint-pr.yml} | 0 3 files changed, 19 insertions(+) create mode 100644 .github/pr-labeler.yml create mode 100644 .github/workflows/label-prs.yml rename .github/workflows/{pr.yml => lint-pr.yml} (100%) diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 00000000..5cbd3c0a --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,8 @@ +clear-prexisting: true +include-title: true +label-for-breaking-changes: "breaking change" +label-mapping: + bug: ["fix"] + configuration: ["build", "ci"] + documentation: ["docs"] + enhancement: ["feat"] diff --git a/.github/workflows/label-prs.yml b/.github/workflows/label-prs.yml new file mode 100644 index 00000000..d0708535 --- /dev/null +++ b/.github/workflows/label-prs.yml @@ -0,0 +1,11 @@ +name: "Label PR" +on: + pull_request: + +jobs: + label-pr: + runs-on: ubuntu-latest + steps: + - uses: grafana/pr-labeler-action@v0.1.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr.yml b/.github/workflows/lint-pr.yml similarity index 100% rename from .github/workflows/pr.yml rename to .github/workflows/lint-pr.yml