mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Update labelled issue automation
Migrate from graphql to actions. Add platform and QA teams
This commit is contained in:
committed by
Stefan Ceriu
parent
b726cd149a
commit
0d3e823b69
@@ -11,23 +11,10 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
contains(github.event.issue.labels.*.name, 'Team: Element X Feature')
|
contains(github.event.issue.labels.*.name, 'Team: Element X Feature')
|
||||||
steps:
|
steps:
|
||||||
- uses: octokit/graphql-action@v2.x
|
- uses: actions/add-to-project@main
|
||||||
id: add_to_project
|
|
||||||
with:
|
with:
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
project-url: https://github.com/orgs/vector-im/projects/73
|
||||||
query: |
|
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||||
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_kwDOAM0swc4ALoFY"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
verticals_feature:
|
verticals_feature:
|
||||||
name: Add labelled issues to Verticals Feature project
|
name: Add labelled issues to Verticals Feature project
|
||||||
@@ -35,20 +22,29 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
contains(github.event.issue.labels.*.name, 'Team: Verticals Feature')
|
contains(github.event.issue.labels.*.name, 'Team: Verticals Feature')
|
||||||
steps:
|
steps:
|
||||||
- uses: octokit/graphql-action@v2.x
|
- uses: actions/add-to-project@main
|
||||||
id: add_to_project
|
|
||||||
with:
|
with:
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
project-url: https://github.com/orgs/vector-im/projects/57
|
||||||
query: |
|
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectV2ItemById(input: {projectId: $projectid contentId: $contentid}) {
|
platform:
|
||||||
item {
|
name: Add labelled issues to EX project
|
||||||
id
|
runs-on: ubuntu-latest
|
||||||
}
|
if: >
|
||||||
}
|
contains(github.event.issue.labels.*.name, 'Team: Element X Platform')
|
||||||
}
|
steps:
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
- uses: actions/add-to-project@main
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
with:
|
||||||
env:
|
project-url: https://github.com/orgs/vector-im/projects/43
|
||||||
PROJECT_ID: "PVT_kwDOAM0swc4AHJKW"
|
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
qa:
|
||||||
|
name: Add labelled issues to QA project
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: >
|
||||||
|
contains(github.event.issue.labels.*.name, 'Team: QA')
|
||||||
|
steps:
|
||||||
|
- uses: actions/add-to-project@main
|
||||||
|
with:
|
||||||
|
project-url: https://github.com/orgs/vector-im/projects/69
|
||||||
|
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user