Skip to content

Commit

Permalink
on recup les labels
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ committed Apr 23, 2023
1 parent 8f45211 commit 5f2c5df
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 5f2c5df

Please sign in to comment.