Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stale report to include issues with recent interactions #1025

Merged
merged 3 commits into from
Jun 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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