Skip to content

Commit

Permalink
Update stale report to include issues with recent interactions (#1024)
Browse files Browse the repository at this point in the history
Add recently updated issues to list of reminders.
  • Loading branch information
helegraf authored Jun 2, 2023
1 parent d5d5456 commit e64e191
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/stale_reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,23 @@ jobs:
stale-reminder:
runs-on: ubuntu-latest
steps:
- name: Get cutoff date for soon-to-be-stale issues
- name: Get cutoff dates
id: date
run: |
echo "CUTOFF_DATE=$(date -d '-46 days' '+%Y-%m-%d')" >> $GITHUB_ENV
echo "RECENT_ISSUE_CUTOFF_DATE=$(date -d '-7 days' '+%Y-%m-%d')" >> $GITHUB_ENV
- name: Get list of issues that have had interactions in the last week
id: recent
uses: lee-dohm/select-matching-issues@v1
with:
format: list
path: "recent_issues.md"
token: ${{ github.token }}
query: >-
is:issue
is:open
updated:>=${{ env.RECENT_ISSUE_CUTOFF_DATE }}
sort:updated-asc
- name: Collect issues that may become stale
id: stale
uses: lee-dohm/select-matching-issues@v1
Expand All @@ -21,6 +34,7 @@ jobs:
path: "potentially_stale_issues.md"
token: ${{ github.token }}
query: >-
is:issue
is:open
-label:dependency,documentation,feature,enhancement,bug,test,example,discussion,duplicate,question
updated:<${{ env.CUTOFF_DATE }}
Expand All @@ -33,14 +47,16 @@ jobs:
path: "old_issues.md"
token: ${{ github.token }}
query: >-
is:issue
is:open
label:dependency,documentation,feature,enhancement,bug,test,example,discussion,duplicate,question
updated:<${{ env.CUTOFF_DATE }}
sort:updated-asc
- name: Combine issues into mail content
id: combine
run: |
echo $date
echo "## Issues that have had interaction in the last 7 days <br />" >> mail.html
echo "$(<recent_issues.md) <br />" >> mail.html
echo "## Issues that may become stale in <= 14 days <br />" >> mail.html
echo "$(<potentially_stale_issues.md) <br />" >> mail.html
echo "## Issues that have not had interaction in the last 46 days but will not go stale due to their labels<br />" >> mail.html
Expand Down

0 comments on commit e64e191

Please sign in to comment.