Integrate sphinx's linkcheck#968
Conversation
| @@ -8,7 +8,7 @@ msgid "" | |||
| msgstr "" | |||
There was a problem hiding this comment.
plz don't include updates to this file in the PR
There was a problem hiding this comment.
This is generated by Github Action. The workflow is running in fork.
There was a problem hiding this comment.
Interesting. Could you disable the workflow in your fork?
There was a problem hiding this comment.
Now I've disabled it. However, folks may still have this file in their PR if they didn't disable the workflow. Is there any method to disable it for all forks?
There was a problem hiding this comment.
Maybe we could add if github.repository=='pypa/packaging.python.org' to our workflow?
I found this here: https://github.community/t/stop-github-actions-running-on-a-fork/17965/2
For reference: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
There was a problem hiding this comment.
What if the contributors would actually want to run workflows?
There was a problem hiding this comment.
Good question. I guess they don't really need to run this workflow in their forks? Since we could run this in our repo once PR is merged.
There was a problem hiding this comment.
Some people push branches to forks and check if they are fine before creating a PR, though.
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
|
Re: broken links — I think it's acceptable to ignore all of the failures and then fix them in a follow-up, unless you want to do that right here. |
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
|
@webknjaz Sorry for the late response. I've turned it into a matrix and seems it works.
I prefer fixing them in a follow-up. :) |
Then add them to ignores so that the job is green. |
|
@di could you make the linkcheck check required? |
Probably I should fix them in this PR. The list is quite long. |
There's 28 entries. I think it would be more effective should merge and fix them later. |
I'm inclined to agree. |
|
@meowmeowmeowcat I suggest you rebase PRs, instead of merging This also enables you to have more incremental workflows as well, like using fixup commits with git rebase: https://jordanelver.co.uk/blog/2020/06/04/fixing-commits-with-git-commit-fixup-and-git-rebase-autosquash/ (which isn't necessary for most open source projects, but could be useful in professional environments). |
|
@pradyunsg Thanks for your suggestion! |
It's ok. I will open a follow-up for broken links in few days and then we can mark the job as required in it. :) @webknjaz Thanks for your resources! I found some of them are quite interesting. I'll take some time on reading them. 👍 |
The
output.txtwill be generated inbuild/check/.