mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
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-ios' &&
|
|
(contains(github.event.issue.labels.*.name, 'Z-ElementX-Alpha') ||
|
|
contains(github.event.issue.labels.*.name, 'Z-ElementX-Beta') ||
|
|
contains(github.event.issue.labels.*.name, 'Z-ElementX'))
|
|
steps:
|
|
- uses: octokit/graphql-action@v2.x
|
|
with:
|
|
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
query: |
|
|
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
projectNextItem {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
projectid: ${{ env.PROJECT_ID }}
|
|
contentid: ${{ github.event.issue.node_id }}
|
|
env:
|
|
PROJECT_ID: "PN_kwDOAM0swc4ABTXY"
|
|
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|