Skip to content

Conversation

@alvazjor
Copy link
Contributor

@alvazjor alvazjor commented Aug 8, 2025

Reason for this change

After removing the CodeBuild requirement from Mergify in #35174, automatic PR merging stopped working. Mergify was looking for status-success=validate-pr and status-success=build, but GitHub Actions creates check runs, not statuses. CodeBuild used the GitHub Status API, while GitHub Actions uses the GitHub Checks API.

Description of changes

Changed all Mergify conditions from status-success=validate-pr and status-success=build to check-success=validate-pr and check-success=build to match what GitHub Actions actually creates.

The previous configuration worked because Mergify was only waiting for the CodeBuild status (which was correctly configured), while the GitHub Actions conditions were silently failing but not blocking merges.

Describe any new or updated permissions being added

NA

Description of how you validated changes

Analyzed GitHub API responses for recent PRs to confirm:
• CodeBuild creates statuses via GitHub Status API
• GitHub Actions creates check runs via GitHub Checks API
• Verified that approved PRs have successful validate-pr and build check runs but no corresponding statuses

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the p2 label Aug 8, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team August 8, 2025 11:26
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 8, 2025
@alvazjor alvazjor changed the title fix(ci): use check-success instead of status-success for GitHub Actioon fix(ci): use check-success instead of status-success for GitHub Actions Aug 8, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@Abogical Abogical self-assigned this Aug 8, 2025
@Abogical Abogical added pr-linter/exempt-test The PR linter will not require test changes pr-linter/exempt-integ-test The PR linter will not require integ test changes labels Aug 8, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review August 8, 2025 11:41

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@mergify
Copy link
Contributor

mergify bot commented Aug 8, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@Abogical Abogical changed the title fix(ci): use check-success instead of status-success for GitHub Actions ci: use check-success instead of status-success for GitHub Actions Aug 8, 2025
@mergify
Copy link
Contributor

mergify bot commented Aug 8, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@Abogical Abogical merged commit 0905668 into main Aug 8, 2025
59 checks passed
@Abogical Abogical deleted the fix-mergify-check-success branch August 8, 2025 12:14
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-test The PR linter will not require test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants