-
Notifications
You must be signed in to change notification settings - Fork 17
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
Create Project Automation Shared Workflows #168
Create Project Automation Shared Workflows #168
Conversation
I might be missing something in the terminology here. What is an iteration field? |
Docs on iteration fields |
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.
LGTM.
Btw, you can also use the github-script action for making GitHub API calls.
github-script is able to make GraphQL calls and also has the benefit of supporting retries to avoid random transient networking issues:
Closes #163
This PR creates 5 new reusable workflows, all for project automation tasks.
project-get-item-id.yaml
project-get-set-iteration-field.yaml
UPDATE_ITEM
is set totrue
, it sets the field for the item to the current iteration as wellUPDATE_LINKED_ISSUES
is set totrue
, it also sets the same iteration to linked issuesproject-get-set-single-select-field.yaml
OptionId
for a provided single select value and returns itUPDATE_ITEM
is set totrue
, it sets the field for the item to the given value as wellUPDATE_LINKED_ISSUES
is set totrue
, it also sets the same field to linked issuesproject-set-text-date-numeric-field.yaml
get-set
as wellUPDATE_LINKED_ISSUES
is set totrue
, it also sets the same field to linked issuesproject-update-linked-issues.yaml
get-set/set
workflows all call this workflow whenUPDATE_LINKED_ISSUES
istrue
These workflows have all been tested:
TODO BEFORE MERGE
Currently all of the reusable workflows have the secret set to
PROJECT_MANAGEMENT_SECRET
, this needs to be changed toADD_TO_PROJECT_GITHUB_TOKEN
which is a token scoped specifically for project-related tasks.