-
-
Notifications
You must be signed in to change notification settings - Fork 778
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
Update pr instructions GHA with URL for reviewing changes to CONTRIBUTING.md #5165
Comments
I suggest adding I self-assigned it and went ahead with the changes. It can be previewed at roslynwythe#40 |
Hi @roslynwythe, thank you for taking up this issue! Hfla appreciates you :) Do let fellow developers know about your:- You're awesome! P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :) |
The problem is that the pr instruction contains backticks and those cause a problem in github artifacts |
@roslynwythe If you are working on this issue, go ahead and remove the |
Overview
When a Pull Request includes changes to CONTRIBUTING.md, the current PR instructions are not accurate, because CONTRIBUTING.md cannot be previewed locally, rather it must be previewed on a GitHub repository. We need to instruct the PR author and reviewers to preview changes using the URL of CONTRIBUTING.md on the issue branch in the contributor's fork of the website repository.
Details
Here is the new instruction which should be appended to the existing instruction:
where
nameOfCollaborator
andnameOfFromBranch
refer to the variables with the same names in create-instruction.js1.The text above should be stored in a new template
github-actions/pr-instructions/pr-contrib-instructions-template.md
and the variable replacement should be done in create-instruction.js2 as detailed below.The suggested strategy is to reformat the JS by moving the
formatComment
function intocreate-instruction.js
so that regardless of how many instructions we provide in the PR (each with its own template), only a single composite instruction will be stored in the artifact, and in create-instruction.js, we have access to the PR context so that in the future, we could include or exclude instructions based on the files that were changed.Action Items
instruction
string into the existing pr-instructions-template.md6. Previously this step was performed informatComment()
so that function will have to be moved from post-comment.js5 into create-instruction.js7previewContributingURL
into the new template.Resources/Instructions
Footnotes
https://github.com/hackforla/website/blob/gh-pages/github-actions/pr-instructions/create-instruction.js ↩ ↩2 ↩3 ↩4
Hack for LA's GitHub Actions ↩ ↩2
HfLA GitHub Actions ↩
GHA: pr instructions ↩
https://github.com/hackforla/website/blob/gh-pages/github-actions/pr-instructions/post-comment.js ↩ ↩2
pr-instructions-template.md ↩
PR Instructions Template ↩
The text was updated successfully, but these errors were encountered: