Skip to content

Commit

Permalink
fix: update workflow sample
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertk committed Apr 16, 2020
1 parent e608d25 commit bbe5a15
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions sample_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,39 @@ on:
- cron: "*/15 * * * *"

jobs:
# This workflow contains a single job called "stale"
stale:
cleanup:
runs-on: ubuntu-latest
name: Stale issue job
steps:
- uses: diehlaws/stalePrivate@v0.41
- uses: aws-actions/stale-issue-cleanup@v1
with:
# Setting messages to an empty string will cause the automation to skip
# that category
ancient-issue-message: Ancient issue message
stale-issue-message: Stale issue message
stale-pr-message: Stale issue message

# These labels are required
stale-issue-label: closing-soon
exempt-issue-label: awaiting-approval
stale-pr-label: no-pr-activity
exempt-pr-label: awaiting-approval
response-requested-label: response-requested,
# Don't set closed-for-staleness label to skip
closed-for-staleness-label: closed-for-staleness,
days-before-stale: 0.04,
days-before-close: 0.04,
days-before-ancient: 0.05,
# If you don't want to mark an issue as being ancient based on a
response-requested-label: response-requested

# Don't set closed-for-staleness label to skip closing very old issues
# regardless of label
closed-for-staleness-label: closed-for-staleness

# Issue timing
days-before-stale: 14
days-before-close: 7
days-before-ancient: 365

# If you don't want to mark a issue as being ancient based on a
# threshold of "upvotes", you can set this here. An "upvote" is
# the total number of +1, heart, hooray, and rocket reactions
# on an issue.
minimum-upvotes-to-exempt: 1,
minimum-upvotes-to-exempt: 1

repo-token: ${{ secrets.GITHUB_TOKEN }}
#loglevel: DEBUG

0 comments on commit bbe5a15

Please sign in to comment.