ci(actions): Add slapr workflow for Slack emoji PR updates#47839
Draft
ci(actions): Add slapr workflow for Slack emoji PR updates#47839
Conversation
Contributor
Files inventory check summaryFile checks results against ancestor 2c465803: Results for datadog-agent_7.78.0~devel.git.590.5168faf.pipeline.102518963-1_amd64.deb:No change detected |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a new GitHub Actions workflow (
.github/workflows/slapr.yml) that integrates slapr to post Slack emoji updates on PRs based on review status.The workflow:
pull_request_review(submitted) andpull_request(closed) eventsdd-octo-ststo obtain a scoped GitHub token withcontents:read,pull_requests:read, andmembers:readpermissionsgithub_slack_map.yamlreview map to resolve team-to-channel mappingsMotivation
Automate Slack notifications for PR review activity, giving teams visibility into review progress directly in their Slack channels.
Describe how you validated your changes
self.slapr.read-members) is set up in a companion PR: ci(chainguard): Add dd-octo-sts policy for slapr workflow #47838nicolas.schweitzer/review-mapbranch (will be updated to a release tag before merging)Additional Notes
SLAPR_SLACK_API_TOKENsecret,SLACK_CHANNEL_IDandSLAPR_BOT_USER_IDrepository variablesnicolas.schweitzer/review-map) is a development branch and should be pinned to a release before this PR is merged