Bypass checks on all repo pages (not only PR conversations) #5920
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
bypass-checks
works great in PR conversations, thanks a lot for this, I wondered for a long time how to get rid of this additional click until I realised refined-github had the feature!The thing is that
ci-links
will add CI status in other pages outside of PR conversations, and the links are not rewritten bybypass-checks
.In this PR I used a similar code as in
bypass-checks
as inci-links
:refined-github/source/features/ci-link.tsx
Lines 52 to 61 in eca69b4
I believe with this change ,
bypass-checks
will run both on PR conversations and all pages whereci-links
adds a CI status.I also tested this locally following https://github.com/refined-github/refined-github/blob/main/contributing.md and it seems to work fine.
Test URLs
On this root repo page https://github.com/scikit-learn/scikit-learn.
Clicking on the CI status added by
ci-links
will show some URL that points to Github checks i.e. are not rewritten bybypass-checks
Screenshot
You can see on the bottom left that some links, namely the Azure Pipelines ones (blue icons) are not rewritten to skip the Check page, i.e. it goes to
github.com/scikit-learn/scikit-learn/runs/<something>
)