-
Notifications
You must be signed in to change notification settings - Fork 60.2k
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
Explain how to handle skipped required checks #8926
Comments
This comment has been minimized.
This comment has been minimized.
Hi @jsoref, could you link to one or more examples? Thanks! |
Thanks @jsoref! This sounds like a great plan that will address a very common source of confusion. You or anyone else is welcome to open that PR! ⚡ |
* Update troubleshooting-required-status-checks.md * Add troubleshooting info Adds how to handle skipped required checks. Fixes #8926 * Fix generic workflow * Add a note about other CI/CD * Add images * Added images * Delete troubleshooting-required-status-checks.md * Fix merge conflicts * Remove blank lines Co-authored-by: hubwriter <hubwriter@github.com> * Apply styling * Group notes into one * Remove older images * Remove images * Added suggested images * Update content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks.md Co-authored-by: hubwriter <hubwriter@github.com>
Because I landed here from google search, the documented solution is here: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks |
@jsoref I'm trying to research this topic, but all the links in #8926 (comment) are dead. Where can I find those old forum topics? |
Dunno. They did a real number in github.community in their migration. It didn't occur to me when I filed this that I'd need to quote the full contents of each item here... |
I tried searching for some slugs without dashes but no results, not even on Google. |
@TWiStErRob IA appears to have at least some of them..., here's an example: https://web.archive.org/web/20200928033538/https://github.community/t/github-pull-request-is-waiting-for-required-status-checks-even-with-ci-skip-in-commit-message/827 |
Oo nice, forgot about that. |
May someone please review and merge - #24182 ? In the section handling-skipped-but-required-checks, the docs do not shed any light for the case mentioned below: When someone sends a pull request that changes the files listed under paths and also changes a file that is not listed under paths-ignore in the other workflow. In such a case, both workflows must be executed and the associated status checks must pass in order to merge the PR. This PR adds documentation for that |
The proposed solution is confusing because it causes the check list to display the same workflow / job names twice when changes in a pull request fit both filters (e.g. |
Sadly, this repository is focused on documentation. For technical implementation details, there are two main paths that externals (like us) can take: I sympathize with your concerns, but it's much easier for me to get documentation added than to get implementation changed. |
The proposed solution has been removed (as of this commit). What is now the recommended way of dealing with this? The docs seem to imply that using a conditional rather than path/branch filtering is the correct way to deal with this. PS: does anyone have a link for this issue (as a technical implementation) to follow up there too? |
https://docs.github.com/en/actions/using-workflows/required-workflows#prerequisites |
Great! If previously it was inconvenient, now it became a nonsense. There are two problems with the document (hence, implicitly, implementation of the "required check" feature) that @jsoref referenced:
Such decisions should be published for community feedback before they make intro the product. |
For 1), @minherz scroll up on the linked page for an explanation. Also notice the banner:
|
@TWiStErRob I don't believe they existed when I opened this issue. |
@TWiStErRob you are right, it was my mistake. I am biased in that when I read public documentation it describes functionality that is available to public. It is good to see that the original problem still exists in its original form. It is bad that there is no solution to it. |
Code of Conduct
What article on docs.github.com is affected?
https://github.com/github/docs/blob/2289ca70c7ec7ec1b81eafdb333cd0157fafaa08/content/github/administering-a-repository/troubleshooting-required-status-checks.md
What part(s) of the article would you like to see updated?
A section should be added that explains that if people use
paths
for a required check, they'll want to add a second copy of the check withpaths-ignore
for the same content that just returnstrue
.Additional information
It's a FAQ in https://github.community
The text was updated successfully, but these errors were encountered: