mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-05-02 09:06:43 +03:00
Autocloser: Only trigger on opened
& fix issue number param (#8714)
This commit is contained in:
parent
62284fb9c1
commit
541fd43db1
5
.github/workflows/autoclose-issues.yml
vendored
5
.github/workflows/autoclose-issues.yml
vendored
@ -1,7 +1,8 @@
|
|||||||
name: Autocloser
|
name: Autocloser
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened, edited]
|
# we allow 'reopend' and 'edited' in case the issue was closed by accident
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
@ -20,7 +21,7 @@ jobs:
|
|||||||
- id: get-labels
|
- id: get-labels
|
||||||
name: Get labels
|
name: Get labels
|
||||||
run: |
|
run: |
|
||||||
labels="$(curl --retry 5 -s https://api.github.com/repos/simple-icons/simple-icons/pulls/${{ github.event.pull_request.number }} | jq '.labels[].name' | tr '\n' ',' | sed -e 's/"//g' -e 's/,$//')"
|
labels="$(curl --retry 5 -s https://api.github.com/repos/simple-icons/simple-icons/pulls/${{ github.event.issue.number }} | jq '.labels[].name' | tr '\n' ',' | sed -e 's/"//g' -e 's/,$//')"
|
||||||
echo "labels=$labels" >> $GITHUB_OUTPUT
|
echo "labels=$labels" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# if the issue is labeled as a 'new icon' and it matches Java, we
|
# if the issue is labeled as a 'new icon' and it matches Java, we
|
||||||
|
Loading…
Reference in New Issue
Block a user