-
Notifications
You must be signed in to change notification settings - Fork 118
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
🌱 Add broken link check action #505
base: main
Are you sure you want to change the base?
🌱 Add broken link check action #505
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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 need to have this also enabled at PR level, but obviously it should not create issues but report in PR test.
1a2a607
to
6c725b2
Compare
Lychee has a workflow ready for PRs: https://lychee.cli.rs/github_action_recipes/pull-requests/ I think it actually smarter to add this workflow and the PR workflow to project-infra. These WFs are so general that we should be able to use the same here and in CAPM3, BMO and IPAM. |
I agree, if lychee allows required repository specific configuration via the action configuration and/or repository specific configuration files. It would be great to have both scheduled and PR workflows all using lychee in all repos, and reusing the workflows from project-infra. |
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.
I agree too We can have the lychee as a reusable workflow.
d73a61a
to
8a1a52b
Compare
.github/workflows/pr-link-check.yml
Outdated
|
||
on: | ||
pull_request_target: | ||
# edited is needed here as this workflow checks for PR meta content |
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.
This is false comment here, we don't check meta for links but content.
.github/workflows/pr-link-check.yml
Outdated
on: | ||
pull_request_target: | ||
# edited is needed here as this workflow checks for PR meta content | ||
types: [opened, edited, reopened, synchronize, ready_for_review] |
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.
types: [opened, edited, reopened, synchronize, ready_for_review] | |
types: [opened, reopened, synchronize, ready_for_review] |
.github/workflows/pr-link-check.yml
Outdated
|
||
jobs: | ||
check-pr-links: | ||
uses: metal3-io/project-infra/.github/workflows/pr-link-check.yml@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.
Missing EOL
@@ -0,0 +1,17 @@ | |||
name: Sheduled Link Check |
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.
name: Sheduled Link Check | |
name: Scheduled Link Check |
|
||
jobs: | ||
check-links: | ||
uses: metal3-io/project-infra/.github/workflows/broken-link-check.yml@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.
Missing EOL
Signed-off-by: peppi-lotta <[email protected]>
8a1a52b
to
49c4845
Compare
Add lychee's broken link checker action. This checks all links except the ones specified in .lychee ignore. External links are checked as is. For internal .md links a corresponding file is looked for.
I have tried this workflow in my own fork. You can check the result here: https://github.com/peppi-lotta/metal3-docs/actions/runs/13492952293
fixes: #439