A GitHub Action that comments a list of issues. If a discussion with a match
title
is found, that discussion is used, or a new discussion is created.
-
🛠️ Install the dependencies
npm install
-
🏗️ Package the TypeScript for distribution
npm run bundle
-
✅ Run the tests
npm test
-
🚀 Build the action, rollup and run test.
npm run all
on:
schedule:
- cron: '0 8 * * *'
permissions:
contents: read
discussions: write
issues: read
jobs:
issue-digest:
runs-on: ubuntu-latest
steps:
- uses: sethrylan/issue-digest@0eeb2ed746035642644fa2a92c7db1d89e5dc9fa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Create a weekly discussion every Monday, and comment every day at 08:00 UTC with a list of updated issues
on:
schedule:
- cron: '0 8 * * *'
permissions:
contents: read
discussions: write
issues: read
jobs:
issue-digest:
runs-on: ubuntu-latest
steps:
- id: last
run: |
echo "monday=$(date -d 'last Monday' '+%Y-%m-%d')" >> "$GITHUB_OUTPUT"
- uses: sethrylan/issue-digest@0eeb2ed746035642644fa2a92c7db1d89e5dc9fa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
intro: |
🤖 This discussion was created by issue-digest
The title of the discussion will be create a new discussion each week, and every time the action runs a comment will be added with a list of issues changed in the last 24 hours.
comment: |
Issues updated in the last 24 hours
title: |
Issue Digest for Week of ${{ steps.last.outputs.monday }}
permissions:
contents: read
discussions: write
issues: read
models: read
jobs:
issue-digest:
runs-on: ubuntu-latest
steps:
- uses: sethrylan/issue-digest@0eeb2ed746035642644fa2a92c7db1d89e5dc9fa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
models: true
lookback: 4hr # optional, defeaults to 24hr; this can help to trim the context to recent changes
Check the permissions for the calling workflow.
Check the permissions for the calling workflow.
Check that discussions are enabled for the repository.