Add stale workflow
This is the same workflow I added in the community repo recently.
ADD
.github/workflows/issue-management-feedback-label.yml
+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

ADD
.github/workflows/issue-management-stale-action.yml
+name: Issue management - run stale action
+
+on:
+ schedule:
+ # Hourly at minute 23
+ - cron: "23 * * * *"
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v6
+ 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.

Add stale workflow (#7605)

This is the same workflow I added in the community repo recently.