2020-07-02 13:46:30 -04:00
---
###############################
###############################
## StaleBot for Super-Linter ##
###############################
###############################
2020-07-02 13:30:44 -04:00
on :
schedule :
# every day at 0:00 UTC
- cron : "0 0 * * *"
issue_comment :
types : [ created, deleted, edited]
2020-07-02 13:46:30 -04:00
###################
# Name of the Job #
###################
name : "Stale[bot]"
2020-07-02 13:30:44 -04:00
2020-07-02 13:46:30 -04:00
###############
# Run the job #
###############
2020-07-02 13:30:44 -04:00
jobs :
2020-07-02 13:46:30 -04:00
#######################
# Mark an Issue Stale #
#######################
2020-07-02 13:30:44 -04:00
markstale :
runs-on : ubuntu-latest
# only run on schedule
2021-07-19 10:28:49 -04:00
if : ${{ github.event_name }} == 'schedule'
2020-07-02 13:30:44 -04:00
steps :
- name : Mark issue stale
2021-07-19 10:30:14 -04:00
uses : actions/stale@v4
2020-07-02 13:30:44 -04:00
with :
repo-token : ${{ secrets.GITHUB_TOKEN }}
stale-issue-message : "This issue has been automatically marked as stale because it has not had recent activity.\nIt will be closed in 14 days if no further activity occurs.\nThank you for your contributions.\n\nIf you think this issue should stay open, please remove the `O: stale 🤖` label or comment on the issue."
stale-pr-message : "This pull request has been automatically marked as stale because it has not had recent activity.\nIt will be closed in 14 days if no further activity occurs.\nThank you for your contributions.\n\nIf you think this pull request should stay open, please remove the `O: stale 🤖` label or comment on the pull request."
days-before-stale : 30
days-before-close : 14
stale-issue-label : "O: stale 🤖"
2020-07-14 19:43:06 -04:00
exempt-issue-labels : "O: backlog 🤖"
2020-07-02 13:30:44 -04:00
stale-pr-label : "O: stale 🤖"
2020-07-14 19:43:06 -04:00
exempt-pr-labels : "O: backlog 🤖"
2020-07-02 13:30:44 -04:00
2020-07-02 13:46:30 -04:00
##################
# Mark not stale #
##################
2020-07-02 13:30:44 -04:00
marknotstale :
runs-on : ubuntu-latest
# do not run on schedule
2021-07-19 10:28:49 -04:00
if : "${{ github.event_name }} == 'issue_comment' && contains(github.event.issue.labels.*.name, 'O: stale 🤖') && ${{ github.event.issue.user.type }} != 'Bot'"
2020-07-02 13:30:44 -04:00
steps :
- name : Mark issue not stale
2021-04-30 16:13:45 -04:00
uses : actions/github-script@v4.0.2
2020-07-02 13:30:44 -04:00
with :
script : |
github.issues.removeLabel({
issue_number : context.issue.number,
owner : context.repo.owner,
repo : context.repo.repo,
name: 'O : stale 🤖'
})