Repository navigation
feat: final check on labelled PRs, posted as TechEngineBot - #7
Open
Seungpyo1007 wants to merge 1 commit into
Open
Seungpyo1007 wants to merge 1 commit into
Seungpyo1007 wants to merge 1 commit into
Conversation
Adding the final-check label to a PR asks TechEngineBot for a last look. It posts one comment, edited in place on later pushes, and a final-check commit status that branch protection can require. It blocks drafts, merge conflicts, PRs into main that are not a release from develop or a hotfix, failed or cancelled checks, changed workflows that use a personal token, and commits no other check ran on. It waits up to 30 minutes for running checks and never runs the PR's code. The bot was suspended once for spam, so it only speaks when asked and only once per PR. Other repositories opt in by calling the reusable workflow.
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.
Stacked on #6 (it reuses
foreign_secrets). Merge #6 first, then GitHub retargets this PR todevelop.Adding the
final-checklabel to a PR asks TechEngineBot for a last look. The bot posts one comment, which later pushes edit instead of repeating, and afinal-checkcommit status that branch protection can require.What blocks
mainthat is not a release fromdevelopor ahotfix/It waits up to 30 minutes for running checks before judging. It runs under
pull_request_target, but it never checks out or runs the PR's code; it only reads what the GitHub API reports.TechEngineBot was suspended once for spam, so final check is its only job: it speaks only when a person asks, and only once per PR.
Dry runs (printed only, nothing posted)
Setup needed before it can post
TECHENGINEBOT_TOKEN: TechEngineBot fine-grained token, ideally as an org secretfinal-checklabel in each repository that opts inmain, since callers use@mainpython -m pytest -q: 32 passed.