free-programming-books
free-programming-books copied to clipboard
ci(pinner): Create `issues-pinner.yml` workflow
What does this PR do?
For resources
Description
A workflow to monitor pin/unpin issue event types and add/remove state labels accordingly
Needs declare a new label: ~📌 pinned~ :pushpin: pinned
Resolves #7055
Workflow runs: - Tested with davorpa/free-programming-books#16 issue - https://github.com/davorpa/free-programming-books/actions/runs/2983767547 - https://github.com/davorpa/free-programming-books/actions/runs/2983768434 - https://github.com/davorpa/free-programming-books/actions/runs/2983769061 - https://github.com/davorpa/free-programming-books/actions/runs/2983769167
Checklist:
- [x] Read our contributing guidelines.
- [x] Used an informative name for this pull request.
Follow-up
- Check the status of GitHub Actions and resolve any reported warnings!
do you know of another repo where this is done?
any comments, @mohitsaxenaknoldus ?
do you know of another repo where this is done?
Not directly. But workflow is easy to newbies. I apply some merged knowledges:
- Base docs:
actions-ecosystem/action-add-labels&actions-ecosystem/action-remove-labels&actions-ecosystem/action-size - Run jobs concurrently to take performance into account. Stack stragegy is used (FIFO), so new runs waits for those older
- Security. Scoping permissions to what really needed. In general
issues: readand no git/filesystem (content: none) access. - Supercharging workflows with summaries. https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/
- It only affect to pin/unpin issue events
not PRs/commits
A job cleanup is made. Instead have defined 3 jobs we have 3 steps. It seems go a bit faster
Tests over
- https://github.com/davorpa/free-programming-books/issues/25#event-7380427646
- Runs: pin https://github.com/davorpa/free-programming-books/actions/runs/3048725284, unpin https://github.com/davorpa/free-programming-books/actions/runs/3048728552
please add a header comment in the code that describes the purpose of the action and exactly what it does.
please add a header comment in the code that describes the purpose of the action and exactly what it does.
This workflow adds a label to an issue when is pinned and removes it when unpinned.
The label is enhanced with stale.yml workflow. Pinned issues never stales due to the label is declared as exemption
This workflow adds a label to an issue when is pinned and removes it when unpinned.
The label is enhanced with stale.yml workflow. Pinned issues never stales due to the label is declared as exemption
that helps. now add it to the file
that helps. now add it to the file
Done 01663e639ceb38b1d523bf99c5f75caf563a40e8
Nice work