-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(pr-check): Create pr-check workflow #172
Conversation
This should update the checks api status to 'success' on the head.sha allowing the 'checks' job to pass.
PR check combines PR title and Checks into a single workflow with dependent jobs. This achieves 2 things: 1. Checks will not run until the PR title is valid. 2. Consistent name in iac for the repository rule required check.
Required to re-request checks.
Re-request checks run, but fails: https://github.com/3ware/workflows/actions/runs/13693673491/job/38291330720#step:7:1 |
I don't think we can get this to work this way. Better to push an empty commit now the logic is sound (the logic being: "run when comment is deleted") |
Replace the `gh api` run command for re-requesting checks via the checks api with an action to push an empty commit.
Workflow failed because token not set.
983dfb7
to
20b64ce
Compare
…ck' into feat-pr-title-recheck
df31d1b
to
a9e48cc
Compare
Empty commit has challenges too. github token loop prevention, PAT doesn't seem to work with the commit action and the logic still isn't right. Delete comments always runs, which mean the commit action will run when we don't want it to. |
github.sha in a pull requests is the merge commit
Job must finish to see check conclusion
Now that PR check calls this workflow the pattern to be ignored is: `Checks / auto-approve-pr`
## [4.13.0](v4.12.0...v4.13.0) (2025-03-06) ### Features * **pr-check:** Create pr-check workflow ([#172](#172)) ([9c6cac7](9c6cac7))
This PR is included in version 4.13.0 |
The pull request adds functionality to re-request checks in the pr-title workflow. Checks are re-requested if a comment, advising why the title is invalid, is deleted. This means the PR title is valid and that checks should be requested to update the status of failed pr-title checks on the head.sha - allowing all checks to pass.rerunning checks is not working - going with empty commit.The scope of this PR has changed somewhat. The logic for pushing empty commits or re-requesting checks does not work without access to the required context via
pull_request_target
. See this comment: #168 (comment)This PR creates a pr-check workflow, which calls pr-title and wait-for-checks, as other repositories do to simplify the terraform for the required check on the repository ruleset.
Resolves #171