From 5f2c5dfda78b941c7db6c32a268fcfe68ca67a52 Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Sun, 23 Apr 2023 20:34:10 +0200 Subject: [PATCH] on recup les labels --- .github/workflows/auto-label.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 742befafb52..63cc04c7b83 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -1,7 +1,7 @@ name: "Set Issue Label for issues from main QGIS repo" on: issues: - types: [opened] + types: [opened, reopened, closed] permissions: contents: read @@ -13,7 +13,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} BODY: "${{ github.event.issue.body }}" - MILESTONE: 17 # See https://api.github.com/repos/qgis/QGIS-Documentation/milestones + MILESTONE: 2 # See https://api.github.com/repos/qgis/QGIS-Documentation/milestones runs-on: ubuntu-latest steps: - name: Harden Runner @@ -45,6 +45,20 @@ jobs: labels: ["${{ steps.find_version_label.outputs.label }}"] }) + - id: get_pr_labels + name: Report PR labels + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 + with: + script: | + github.rest.issues.listLabelsOnIssue({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + }) + + - run: "echo PR labels: '${{ steps.get_pr_labels.outputs.data }}'" + + - id: assign_milestone name: Assign milestone if: ${{ steps.find_version_label.outputs.label }}