Repository navigation
ci(spec-drift): Drop team review request and notify Slack - #35
Merged
Merged
Conversation
groyoh
commented
Nov 5, 2026
vincent-pochet
approved these changes
Nov 5, 2026
Contributor
Author
|
Thanks @vincent-pochet for the review! |
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.
Context
The scheduled
OpenAPI driftjob has failed on every run since 2026-09-09. The drift PR is opened or updated, then the job fails when it requests a review from thedevelopersteam: the team is not a collaborator of this repository, and the defaultGITHUB_TOKENcannot request team reviews either. Nobody is told about the failure, so the job stayed red and the drift PR stayed without a reviewer.Description
The
team-reviewersinput was removed, so the job passes once the drift PR is opened or updated. The team can be requested again once it has access to the repository andSPEC_DRIFT_TOKENis set.The review request now goes to Slack instead. When the drift PR is created or gets new drift, the job posts
:pr: <url|repo#number> - title, the same format as other PR review requests. A run without new drift posts nothing. When any step fails, the job posts a link to the failed run in the same channel.Both messages use
slackapi/slack-github-action@v4.0.0and read two repository secrets, which are already set:SLACK_BOT_TOKEN(a bot withchat:write, member of the channel) andSLACK_CHANNEL_ID.A run from a branch other than
mainpushes its ownautomation/openapi-drift-<datetime>branch and opens its own PR into that branch. A manual test run therefore does not overwrite the drift PR ofmain.The drift PR body now follows the
## Context/## Descriptionlayout and ends with the fetch time, the spec version, the SHA-256 of the fetched document, and the lago-openapi commit it comes from. The commit is only linked when itsopenapi.yamlis byte for byte the fetched file; the last 5 commits that changed it are checked, to cover the delay before GitHub Pages serves a new version.