You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
909 B
30 lines
909 B
name: Move labelled issues to correct boards and columns |
|
|
|
on: |
|
issues: |
|
types: [labeled] |
|
|
|
jobs: |
|
move_element_x_issues: |
|
name: ElementX issues to ElementX project board |
|
runs-on: ubuntu-latest |
|
# Skip in forks |
|
if: > |
|
github.repository == 'vector-im/element-x-android' |
|
steps: |
|
- uses: octokit/graphql-action@v2.x |
|
with: |
|
headers: '{"GraphQL-Features": "projects_next_graphql"}' |
|
query: | |
|
mutation add_to_project($projectid:ID!,$contentid:ID!) { |
|
addProjectV2ItemById(input: {projectId: $projectid contentId: $contentid}) { |
|
item { |
|
id |
|
} |
|
} |
|
} |
|
projectid: ${{ env.PROJECT_ID }} |
|
contentid: ${{ github.event.issue.node_id }} |
|
env: |
|
PROJECT_ID: "PVT_kwDOAM0swc4ABTXY" |
|
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|