Prerequisite
- Be a member of Hack for LA. (There are no fees to join.) If you have not joined yet, please follow the steps on our Getting Started page and attend an onboarding session.
- Before you claim or start working on an issue, please make sure you have read our How to Contribute to Hack for LA Guide.
Overview
We need to update the Wins Google Apps scripts so that it starts adding issues from the old project board to the new project board's "Questions/In Review" column.
To set an issue's status, the current code uses a combination of REST API calls and Column Keys. The new project board uses GraphQL API calls and Status Field IDs. We must update this behavior to maintain the Wins workflow.
Action Items
Resources/Instructions
Prerequisite
Overview
We need to update the Wins Google Apps scripts so that it starts adding issues from the old project board to the new project board's "Questions/In Review" column.
To set an issue's status, the current code uses a combination of REST API calls and Column Keys. The new project board uses GraphQL API calls and Status Field IDs. We must update this behavior to maintain the Wins workflow.
Action Items
addIssueToProjectBoardColumnin the following files:google-apps-scripts/gh-requests/Code.jsgoogle-apps-scripts/wins-form-responses/Code.jsgh-requests/Code.js:addIssueToProjectBoardColumn. Rename the function to reflect this migration. 2wins-form-responses/Code.js:PROJECT_ID,FIELD_ID, and any issue status fields that need to be replaced. 3COLUMN_KEYSwith a Project v2 Status Field ID object. IncludePROJECT_IDandFIELD_IDas they will be needed for GraphQL calls.createIssuefunction with your updatedaddIssueToProjectBoardfunction."InReview".9. Completing an issuein the Wins documentation before you create your PR. 1Resources/Instructions
Footnotes
Wins Google App Script documentation and how to set up testing environment: Wins Google App Script Development Process ↩ ↩2
GitHub Projects v2 GraphQL Documentation (take a look at addProjectV2ItemById and updateProjectV2ItemFieldValue): https://docs.github.com/en/graphql/reference/projects ↩
Website Project v2 Status Field IDs: https://github.com/hackforla/website/blob/gh-pages/github-actions/utils/_data/status-field-ids.js ↩