Skip to content
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

Fix: Added Github Actions to check for broken embedded links. #1970

Open
wants to merge 1 commit into
base: osd
Choose a base branch
from

Conversation

SoumyaMukhija
Copy link

@SoumyaMukhija SoumyaMukhija commented Sep 22, 2023

The basics

The details

Fixes #697

The broken-link-check.yml checks for bad links embedded in markdown files throughout the repository. If it fails (ie, one or more links are not working) then the broken-link-issue.yml is triggered. This creates an issue with the error info generated by the first workflow.

Since the output of broken-link-check cannot be retrieved before the entire workflow is complete, the 2 tasks had to be divided into 2 separate workflows (instead of jobs or steps).

The issue is created using the ISSUE_TEMPLATE file and lists, in JSON-style format, all the details provided by the first workflow. This template can be modified to include assignees, etc.

These workflows will be triggered every time someone pushes to main and every Thursday at 8 AM PST.

Proposed Changes

Introduced 2 separate workflows to solve the issue.

Reason for Changes

The workflows are triggered on 2 occasions and create an issue in case of broken links. I believe this would be a more convenient solution than Node scripts.

Test Coverage

N/A.

Documentation

N/A.

Additional Information

It is important to note that by design, the plugins used in both of these workflow files are only known to work on the main branch of the repository.

@SoumyaMukhija SoumyaMukhija requested a review from a team as a code owner September 22, 2023 23:37
@SoumyaMukhija SoumyaMukhija requested review from maribethb and removed request for a team September 22, 2023 23:37
@BeksOmega
Copy link
Contributor

@maribethb were you still planning on taking a look at this? I don't think I have the expertise to review.

@maribethb
Copy link
Contributor

Yes, I'm so sorry for the long delay. This has also required me to learn some new things and set up local testing.

@SoumyaMukhija
Copy link
Author

Yes, I'm so sorry for the long delay. This has also required me to learn some new things and set up local testing.

Hi @maribethb , did you get a chance to look into this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add script to automate checking for broken links within Samples
3 participants