forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Weekly Project Management Digest (internetarchive#9311)
* Create workflow for weekly PM digest to slack - Only publish summary line items that notify Slack user if there is something actionable - Include link for issues needing leads - Replace Slack @ mention with GitHub username in assigned PR summaries - Changes staff PR summaries to one-liners (instead of two lines per PR) - `await` the completion of `main()` before printing "finishing" message to console - Changes `forStaff` to `publishFullDigest`, which better describes what is happening --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ab0d7a6
commit 2457f0e
Showing
5 changed files
with
564 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.github/workflows/config/weekly_status_report_openlibrary_leads_g.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"slackChannel": "#openlibrary-leads-g", | ||
"publishFullDigest": false, | ||
"leads": [ | ||
{ | ||
"githubUsername": "hornc", | ||
"leadLabel": "Lead: @hornc", | ||
"slackId": "<@U0EUS8DV0>" | ||
}, | ||
{ | ||
"githubUsername": "mheiman", | ||
"leadLabel": "Lead: @mheiman", | ||
"slackId": "<@U01MQBRDN5D>" | ||
}, | ||
{ | ||
"githubUsername": "RayBB", | ||
"leadLabel": "Lead: @RayBB", | ||
"slackId": "<@U01TC3EG9LJ>" | ||
}, | ||
{ | ||
"githubUsername": "rebecca-shoptaw", | ||
"leadLabel": "Lead: @rebecca-shoptaw", | ||
"slackId": "<@U06D09YC69L>" | ||
} | ||
] | ||
} |
31 changes: 31 additions & 0 deletions
31
.github/workflows/config/weekly_status_report_team_abc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"slackChannel": "#team-abc-plus", | ||
"publishFullDigest": true, | ||
"leads": [ | ||
{ | ||
"githubUsername": "mekarpeles", | ||
"leadLabel": "Lead: @mekarpeles", | ||
"slackId": "<@U0AB3N5L7>" | ||
}, | ||
{ | ||
"githubUsername": "cdrini", | ||
"leadLabel": "Lead: @cdrini", | ||
"slackId": "<@U709VCNLD>" | ||
}, | ||
{ | ||
"githubUsername": "scottbarnes", | ||
"leadLabel": "Lead: @scottbarnes", | ||
"slackId": "<@U03MNR6T7FH>" | ||
}, | ||
{ | ||
"githubUsername": "seabelis", | ||
"leadLabel": "Lead: @seabelis", | ||
"slackId": "<@UAHQ39ACT>" | ||
}, | ||
{ | ||
"githubUsername": "jimchamp", | ||
"leadLabel": "Lead: @jimchamp", | ||
"slackId": "<@U01ARTHG9EV>" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: weekly_status_report | ||
on: | ||
schedule: | ||
- cron: '30 8 * * *' # XXX : set to appropriate time (before ABC) | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
issues: read | ||
env: | ||
NODE_VERSION: '20' | ||
TEAM_ABC_CONFIG: '.github/workflows/config/weekly_status_report_team_abc.json' | ||
LEADS_G_CONFIG: '.github/workflows/config/weekly_status_report_openlibrary_leads_g.json' | ||
jobs: | ||
create_and_publish_report: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- uses: actions/cache@v4 | ||
id: cache-octokit | ||
with: | ||
path: 'node_modules' | ||
key: ${{ runner.os }}-node${{ env.NODE_VERSION}}-octokit-${{ hashFiles('**/package-lock.json') }} | ||
- if: steps.cache-octokit.outputs.cache-hit != 'true' | ||
run: npm install @octokit/action | ||
- run: node scripts/gh_scripts/weekly_status_report.mjs ${{ env.TEAM_ABC_CONFIG }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | ||
- run: node scripts/gh_scripts/weekly_status_report.mjs ${{ env.LEADS_G_CONFIG }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.