mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
34 lines
964 B
YAML
34 lines
964 B
YAML
# cleans up our issues based on tags applied
|
|
|
|
name: library bot
|
|
run-name: "handling #${{ github.event.issue.number }}: ${{ github.event.issue.title }}"
|
|
|
|
on:
|
|
issues:
|
|
types: [labeled]
|
|
|
|
jobs:
|
|
close-issue:
|
|
permissions:
|
|
issues: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Close reason
|
|
id: close-reason
|
|
run: |
|
|
case "${{ github.event.label.name }}" in
|
|
"old-version")
|
|
echo "reason=not_planned" >>$GITHUB_OUTPUT
|
|
;;
|
|
"gha-issue"|"404"|"version-lockstep-required")
|
|
echo "reason=completed" >>$GITHUB_OUTPUT
|
|
;;
|
|
esac
|
|
- name: Close issue
|
|
uses: actions-cool/issues-helper@v3
|
|
if: steps.close-reason.outputs.reason != ''
|
|
with:
|
|
actions: close-issue
|
|
token: ${{ github.token }}
|
|
issue-number: ${{ github.event.issue.number }}
|
|
close-reason: ${{ steps.close-reason.outputs.reason }}
|