Skip to content

feat: add --ignore-failed-ci#441

Open
tcard wants to merge 3 commits intografana:mainfrom
tcard:stop-on-failed-ci
Open

feat: add --ignore-failed-ci#441
tcard wants to merge 3 commits intografana:mainfrom
tcard:stop-on-failed-ci

Conversation

@tcard
Copy link

@tcard tcard commented Dec 11, 2025

A failed CI doesn't necessarily mean the PR won't get merged. CI could be retried, or it could be non-blocking.

Add a --ignore-failed-ci flag to skip the CI check, and rely only on the merged or closed status. Defaults to false for backwards-compatibility.

@tcard tcard requested a review from a team as a code owner December 11, 2025 17:48
@CLAassistant
Copy link

CLAassistant commented Dec 11, 2025

CLA assistant check
All committers have signed the CLA.

),
},
&cli.BoolFlag{
Name: "stop-on-failed-ci",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this would be more clear if the flag were named something like continue-on-failed-ci or ignore-failed-ci which would default to false to preserve the existing behavior.

Copy link
Author

Choose a reason for hiding this comment

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

Good point, done at c4389f1

Closed: true,
CIStatus: github.CIStatusFailed,
},
allowFailedCI: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of using a test-only field here, I think it makes more sense to directly set the prConfig field for the test scenario:

Suggested change
allowFailedCI: true,
continueOnFailedCI: false,

Copy link
Author

Choose a reason for hiding this comment

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

@tcard tcard requested a review from dblinkhorn December 23, 2025 11:46
@tcard tcard changed the title Add --stop-on-failed-ci Add --ignore-failed-ci Dec 23, 2025
@dblinkhorn
Copy link
Contributor

Commented for one fix to the README doc and a nit (not blocking so feel free to ignore). Also it looks like the PR title is being flagged by the lint check. I think you can just make it something like "feat: Add --ignore-failed-ci".

@tcard tcard changed the title Add --ignore-failed-ci feat: Add --ignore-failed-ci Dec 24, 2025
@tcard tcard changed the title feat: Add --ignore-failed-ci feat: add --ignore-failed-ci Dec 24, 2025
@tcard tcard requested a review from dblinkhorn December 24, 2025 16:50
Copy link
Contributor

@dblinkhorn dblinkhorn left a comment

Choose a reason for hiding this comment

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

Just noticed the commit before last a binary was added. Once that is removed the rest looks good to go!

tcard and others added 2 commits January 5, 2026 12:32
Co-authored-by: Doug Blinkhorn <52138617+dblinkhorn@users.noreply.github.com>
Signed-off-by: Toni Cárdenas <toni@tcardenas.me>
@tcard tcard force-pushed the stop-on-failed-ci branch from 8a7ffe3 to 38942c4 Compare January 5, 2026 11:33
@tcard
Copy link
Author

tcard commented Jan 5, 2026

Just noticed the commit before last a binary was added. Once that is removed the rest looks good to go!

@dblinkhorn Wow, well spotted, I'm not sure how that happened.

I amended the commit to remove the binary from history at aa6f542. (A squash would've done that too, but just in case.)

@tcard tcard requested a review from dblinkhorn January 5, 2026 11:35
Copy link
Contributor

@dblinkhorn dblinkhorn left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@tcard
Copy link
Author

tcard commented Jan 19, 2026

Hey @dblinkhorn, just a reminder about this change. I don't have permissions to merge myself, so, just making sure it doesn't fall through the cracks.

@dblinkhorn dblinkhorn added this pull request to the merge queue Jan 19, 2026
@dblinkhorn
Copy link
Contributor

Glad you said something because I didn't even think about that!

Thanks!

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 19, 2026
@dblinkhorn
Copy link
Contributor

@tcard It looks like this needs a rebase a conflicts resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants