Skip to content

Commit

Permalink
Add stale workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed May 23, 2023
1 parent 1c5bbb5 commit 051b3cc
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/issue-management-feedback-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Issue management - remove needs feedback label

on:
issue_comment:
types: [created]

jobs:
issue_comment:
if: >
contains(github.event.issue.labels.*.name, 'needs author feedback') &&
github.event.comment.user.login == github.event.issue.user.login
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Remove label
env:
ISSUE_NUMBER: ${{ github.event.issue.number }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue edit --remove-label "needs author feedback" $ISSUE_NUMBER
25 changes: 25 additions & 0 deletions .github/workflows/issue-management-stale-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Issue management - run stale action

on:
schedule:
# hourly at minute 23
- cron: "23 * * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 7
days-before-close: 7
only-labels: "needs author feedback"
stale-issue-message: >
This has been automatically marked as stale because it has been marked
as needing author feedback and has not had any activity for 7 days.
It will be closed if no further activity occurs within 7 days of this comment.
stale-pr-message: >
This has been automatically marked as stale because it has been marked
as needing author feedback and has not had any activity for 7 days.
It will be closed if no further activity occurs within 7 days of this comment.

0 comments on commit 051b3cc

Please sign in to comment.