Skip to content

Commit

Permalink
Change stale-reminder to recent-reminder (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
helegraf authored Feb 13, 2024
1 parent 541ee7e commit 9aaa8e9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 107 deletions.
30 changes: 0 additions & 30 deletions .github/stale.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/recent_reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Recent-Reminder

on:
schedule:
- cron: '00 13 * * 1'
workflow_dispatch:

jobs:
stale-reminder:
runs-on: ubuntu-latest
steps:
- name: Get cutoff dates
id: date
run: |
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: Combine issues into mail content
id: combine
run: |
echo "## Issues that have had interaction in the last 7 days <br />" >> mail.html
echo "$(<recent_issues.md) <br />" >> mail.html
- name: Send mail
id: mail
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{secrets.MAIL_SERVER_ADDRESS}}
server_port: ${{secrets.MAIL_SERVER_PORT}}
secure: true
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: '[Current SMAC3 Issues] Issues that have been interacted with since ${{ env.RECENT_ISSUE_CUTOFF_DATE }}'
to: ${{secrets.MAIL_TARGET}}
from: SMAC3 Stale-Bot <${{secrets.MAIL_ADDRESS}}>
html_body: file://mail.html
convert_markdown: true
77 changes: 0 additions & 77 deletions .github/workflows/stale_reminder.yml

This file was deleted.

0 comments on commit 9aaa8e9

Please sign in to comment.