-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
Refactoring check-labels.js
to use label-directory.json
#7777
base: gh-pages
Are you sure you want to change the base?
Refactoring check-labels.js
to use label-directory.json
#7777
Conversation
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes.
|
Fix indent in comments section
ETA: First week of Jan Update: Sorry, I'll get to it this weekend. |
Hey @t-will-gillis The first part works as expected, but I'm having trouble getting the GraphQL query to run: When you say 'link up to your repo if needed' what exactly do you mean? I haven't used GraphQL before, so maybe I'm missing some setting that enables GraphQL queries to be run on my account or something. Any ideas? |
Hey @ajb176 Thanks for the comments Oof- With Explorer, I neglected to mention that you will need to change "organization" to "user" in the GraphQL script, but after that it should work:
I meant that you needed to be signed in- and in your screen shot you are signed in so that part is ok. Have you copied the HfLA Project Board to your repo yet? I don't see it in your repo... If you haven't, you would need to do that first because that is where the ids are coming from. |
Yup, that fixed it. But now I'm getting an error when the workflow runs here The query-issue-info.js seems to try to get the issue status through this line:
When I run that GraphQL query in Explorer with the variables from my repository, that projectItems.nodes field is empty. Although the project board is linked, new issues don't seem to be added to it automatically. Maybe there's some configuring that needs to be done in the Project Board -> Settings -> Workflows menu? I'll look into this more a little later this week, but let me know if you have any idea on what the issue might be. The project board seems like it's private by default when created, I just made it public. |
Hey Ajay- Yes, I agree with everything you say. There should have been an automatic workflow created when you copied over HfLA's, and that should be moving new issues into "New Issue Approval": That would be the reason why the workflow is failing: the issue should be automatically added to the "Project Board" before the "Issue Trigger" runs. |
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.
Just had to manually configure the workflows, for some reason the workflows were copied but they weren't configured the same way
Everything looks good to me, and the label and project board workflows behave as expected
Nice work, Will
Hey @codyyjxn Checking to see if you will be able to review this still. If so, could you leave an eta? Thanks! |
@codyyjxn are you still planning to review this PR? If so, please leave an ETA and availability for your review. Thanks! |
Fixes #7531
What changes did you make?
check-labels.js
, replaced labelNames with equivalent labelKey values and call toretrieveLabelDirectory
mutate-issue-status.js
and consolidated intostatus-field-ids.js
mutate-issue-status.js
Why did you make the changes (we will use this info to test)?
CodeQL Alerts
After the PR has been submitted and the resulting GitHub actions/checks have been completed, developers should check the PR for CodeQL alert annotations.
Check the PR's comments. If present on your PR, the CodeQL alert looks similar as shown
Please let us know that you have checked for CodeQL alerts. Please do not dismiss alerts.
Instructions for resolving CodeQL alerts
If CodeQL alert/annotations appear, refer to How to Resolve CodeQL alerts.
In general, CodeQL alerts should be resolved prior to PR reviews and merging
Screenshots of Proposed Changes To The Website (if any, please do not include screenshots of code changes)
Notes for Reviewers
In order to review this issue, you will need to set up your environment first:
good first issue
andsize: 5pt
, then create issue. The bot should add theComplexity: missing
,role: missing
, etc. as appropriate.github-actions/utils/_data/status-field-ids.js
and scroll down to the comments. Copy lines 47-62 in the query section, and lines 64-68 under variables. Replace with your login and the number of your project board- it is probably '1' but you can check by selecting "Projects" from your repo and seeing what number yours is.status-field-ids.js
.