From 6c3f79425d824914afaf193f1dd62d911d3df86f Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Sun, 30 Nov 2025 08:05:55 +0200 Subject: [PATCH] added labeler github action --- .github/labeler.yml | 5 +++++ .github/workflows/add-pr-labels.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/add-pr-labels.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..9c355094 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,5 @@ +monthly: + - base-branch: ["monthly"] + +stable: + - base-branch: ["stable"] diff --git a/.github/workflows/add-pr-labels.yaml b/.github/workflows/add-pr-labels.yaml new file mode 100644 index 00000000..82d7409a --- /dev/null +++ b/.github/workflows/add-pr-labels.yaml @@ -0,0 +1,26 @@ +# Reference: https://github.com/actions/labeler +name: PR labels + +on: + pull_request_target: + +jobs: + synchronize-labels: + permissions: + contents: read + pull-requests: write + issues: write + runs-on: ubuntu-latest + steps: + - id: label-the-PR + uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # 6.0.1 + with: + sync-labels: true + + - id: print-labels + env: + NEW_LABELS: ${{ steps.label-the-PR.outputs.new-labels }} + ALL_LABELS: ${{ steps.label-the-PR.outputs.all-labels }} + run: | + echo "New labels: $NEW_LABELS" + echo "All labels: $ALL_LABELS"