-
-
Notifications
You must be signed in to change notification settings - Fork 819
Enhance GHA post-labels-comments.js
to use label-directory.json
#7532
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
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
post-labels-comments.js
to use label-directory.json
post-labels-comments.js
to use label-directory.json
Hi @aadilahmed, 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 :) |
i. Availability: Monday-Friday 9AM - 5PM |
No label names are used in comments in post-labels-comment.js. |
Overview
We want to enhance the GHA workflows to reference each label by a general ID (i.e. a 'labelKey') rather than the label's name so that other HfLA project groups can use these workflows without needing to match the label names used by the Website team.
Details
Currently, the GHA workflows files that add, remove, and change labels on issues identify each label by its name (i.e. the 'labelName') directly. Instead of hard-coding each label name, we want these files to identify each label by its 'labelKey' and use the
retrieve-label-directory.js
module to look up the corresponding 'labelName' that is needed in order for the REST API to apply labels to issues.Action Items
This issue involves specifically the
post-labels-comments.js
function of the "Issue Trigger" GitHub Action, and you must set up your environment for testing GHAs in order to work on this issue. See notes below in "Resources/ Instructions", and ask questions if you need additional help- GHAs can be tricky, and if you get stuck somewhere, someone who has worked on these before might have information that will save you a lot of time.Refer to post-labels-comments.js.
A preliminary search found that this file uses the following labels. As you work through this issue, confirm that this list is correct, and note any additions or subtractions as needed:
size: missing
Feature Missing
Complexity: Missing
role missing
Replace:
with:
Replace the following:
with:
Search the code for instances of the original label name and substitute the defined above.
Prior to submitting the PR, search for all code comment that reference a specific label name. If found:
ready for product
and change status to "Questions / In Review"Perform a test in your own repo that demonstrates that there is no change to the GHA's functionality after making the edits.
Resources/Instructions
The text was updated successfully, but these errors were encountered: