Browse Source

Remove Stale label on originator issue comment (#9209)

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
jason plumb 1 year ago
parent
commit
ea11c85922

+ 3 - 2
.github/workflows/issue-management-feedback-label.yml

@@ -1,4 +1,4 @@
-name: Issue management - remove needs feedback label
+name: Issue management - remove labels as needed
 
 
 on:
 on:
   issue_comment:
   issue_comment:
@@ -13,9 +13,10 @@ jobs:
     steps:
     steps:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
 
 
-      - name: Remove label
+      - name: Remove labels
         env:
         env:
           ISSUE_NUMBER: ${{ github.event.issue.number }}
           ISSUE_NUMBER: ${{ github.event.issue.number }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
         run: |
           gh issue edit --remove-label "needs author feedback" $ISSUE_NUMBER
           gh issue edit --remove-label "needs author feedback" $ISSUE_NUMBER
+          gh issue edit --remove-label "stale" $ISSUE_NUMBER

+ 2 - 0
.github/workflows/issue-management-stale-action.yml

@@ -15,11 +15,13 @@ jobs:
           days-before-stale: 7
           days-before-stale: 7
           days-before-close: 7
           days-before-close: 7
           only-labels: "needs author feedback"
           only-labels: "needs author feedback"
+          stale-issue-label: stale
           stale-issue-message: >
           stale-issue-message: >
             This has been automatically marked as stale because it has been marked
             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.
             as needing author feedback and has not had any activity for 7 days.
             It will be closed automatically if there is no response from the author
             It will be closed automatically if there is no response from the author
             within 7 additional days from this comment.
             within 7 additional days from this comment.
+          stale-pr-label: stale
           stale-pr-message: >
           stale-pr-message: >
             This has been automatically marked as stale because it has been marked
             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.
             as needing author feedback and has not had any activity for 7 days.