-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
docs: catch invalid target references #4235
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
base: main
Are you sure you want to change the base?
Conversation
a2717fd
to
908f594
Compare
The scheduled linkcheck job fails without notification. To catch the failure, a github workflow has been added which comments on issue 4106 so that the maintainers get notified. Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
908f594
to
a225b01
Compare
The peter-evans/create-or-update-comment uses github API for this. I think we need a |
Hm, why does Linkcheck / linkcheck (pull_request) fail? I thought we only ran it once a week and not per PR? |
Yes, you are right. I added a fake link to make it fail. I changed linkcheck temporarily to just run for this PR, to test the commenting workflow. Once this works, I'll remove the fake link before it could be merged. |
pull_request: # Temporarily test using PR, remove this before merge | ||
branches: | ||
- main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the pull_request
event you won't have any permissions for the github token, thus you can't create comments. At least not when the PR comes from a fork.
We'd need to create this PR's branch in the postgrest repo itself to be able to test it that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd need to create this PR's branch in the postgrest repo itself to be able to test it that way.
If we are testing it that way, then I guess I should leave this for maintainers with write access on this repo.
on-linkcheck-fail: | ||
runs-on: ubuntu-latest | ||
needs: linkcheck | ||
if: ${{ always() && needs.linkcheck.result == 'failure' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not run a second job, but just a second step in the same job. Otherwise that first job will still fail causing another notification to whomever touched the scheduled workflow file last.
The scheduled linkcheck job fails without notification. To catch the failure, a github workflow has been added which comments on issue #4106 so that the maintainers get notified.