Update perf tool to support stop orders #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "Add Issues To Project Board" | |
"on": | |
issues: | |
types: [opened] | |
env: | |
GH_TOKEN: ${{ secrets.PROJECT_MANAGE_ACTION }} | |
PROJECT_ID: ${{ secrets.CORE_PROJECT_ID }} | |
ISSUE_ID: ${{ github.event.issue.node_id }} | |
USER: ${{ github.actor }} | |
LABEL_ID: "LA_kwDOFFb39c8AAAABG8yt_g" | |
jobs: | |
add_issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Add issue to project board" | |
run: | | |
gh api graphql -f query=' | |
mutation($user:String!, $project:ID!, $issue:ID!) { | |
addProjectV2ItemById(input: {clientMutationId: $user, projectId: $project, contentId: $issue}) { | |
item { | |
id | |
} | |
} | |
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID -f user=$USER | |
- name: "Add repo identify label" | |
run: | | |
gh api graphql -f query=' | |
mutation($user:String!, $issue:ID!, $label:[ID!]!) { | |
addLabelsToLabelable(input: {clientMutationId: $user, labelableId: $issue, labelIds: $label}) { | |
clientMutationId | |
} | |
}' -f label=$LABEL_ID -f issue=$ISSUE_ID -f user=$USER |