Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi committed Jun 27, 2022
1 parent fa7bf52 commit 7ce6a99
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,18 @@ jobs:
shell: bash -xe {0}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
PROJECT: "てすと"
TARGET: ${{ github.event.issue.node_id || github.event.pull_request.node_id }}
PROJECT: "PRO_kwLOHRQYxM4A3d8I"
steps:
- run: |
gh issue edit $NUMBER --add-project $PROJECT
gh api graphql \
-F "target=$TARGET" \
-F "projectId=$PROJECT" \
-f query='
mutation($target: ID!, $projectId: ID!) {
updateIssue(input: {id: $target, projectIds: [$projectId]}) {
issue {
number
}
}
}'

0 comments on commit 7ce6a99

Please sign in to comment.