Skip to content

Edit required check so that it doesn't hang when only non-code files modified#2024

Merged
dellaert merged 2 commits intodevelopfrom
fix-req-check
Feb 16, 2025
Merged

Edit required check so that it doesn't hang when only non-code files modified#2024
dellaert merged 2 commits intodevelopfrom
fix-req-check

Conversation

@p-zach
Copy link
Copy Markdown
Member

@p-zach p-zach commented Feb 16, 2025

Fixes issue encountered in #2023 where the check required by the repository rule (Linux CI) does not run when only Markdown files are edited, but it's still "required," so it blocks the PR from being merged because GitHub just waits for the check to run, but it never does.

Works by running a preliminary job to see if relevant files were modified, and only runs the main job if they were.

The other checks can keep the simpler paths-ignore syntax because they are not required under a ruleset.

@p-zach
Copy link
Copy Markdown
Member Author

p-zach commented Feb 16, 2025

Whoops, I got the required check wrong. I thought it was Linux CI; it's Python CI. I will fix that.

@p-zach
Copy link
Copy Markdown
Member Author

p-zach commented Feb 16, 2025

Now it's right.

Alternatively, the required check could just be turned off (or just require a PR before merging instead of a PR + check), and this PR can be rejected. @dellaert up to you

Copy link
Copy Markdown
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

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

Cool, I’ll merge and we’ll see…

@dellaert dellaert merged commit 52b11e2 into develop Feb 16, 2025
36 checks passed
@dellaert dellaert deleted the fix-req-check branch February 16, 2025 05:45
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.

2 participants