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

Notify team via Slack with digest of recent GitHub comments #8707

Merged
merged 13 commits into from
Jan 24, 2024

Conversation

jimchamp
Copy link
Collaborator

@jimchamp jimchamp commented Jan 11, 2024

Addresses #8704

Adds script that publishes digest of recent GitHub issue comments to a given Slack channel.
The digest is a threaded message containing links to the newest comment in each recently updated issue. The digest excludes comments from staff. If a staff member is a lead for any of the issues, they will be at-mentioned in the Slack message.

Edit: Have also added a workflow that will automatically run this job daily.

Note

New repository secret SLACK_CHANNEL_ABC_TEAM_PLUS has been created in support of the new workflow. This seems like it could simply be a variable, but we've set Slack channels as secrets for other workflows (cron_watcher).

Technical

This script makes unauthenticated calls to GitHub APIs, and is subject to a rate limit of 60 calls per hour. If we find that this job is failing due to rate limiting, we can modify this script to make authenticated calls.

Testing

See the "Running the script locally" section in the README for local testing instructions.

Note

The new workflow was run manually on my repo. Results can be seen here.

Screenshot

Stakeholders

@jimchamp jimchamp force-pushed the feature/gh-issue-slackbot branch 3 times, most recently from ecaf941 to a990104 Compare January 11, 2024 22:57
@mekarpeles mekarpeles self-assigned this Jan 16, 2024
@mekarpeles mekarpeles merged commit 5ac6ded into internetarchive:master Jan 24, 2024
3 checks passed
@jimchamp jimchamp deleted the feature/gh-issue-slackbot branch January 30, 2024 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants