mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
Simplify automation for incoming issues
Use the modern helper actions now that they're available
This commit is contained in:
parent
be124a972e
commit
eecf3234a2
40
.github/workflows/triage_incoming.yml
vendored
40
.github/workflows/triage_incoming.yml
vendored
@ -10,22 +10,10 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
github.repository == 'vector-im/element-x-ios'
|
github.repository == 'vector-im/element-x-ios'
|
||||||
steps:
|
steps:
|
||||||
- uses: octokit/graphql-action@v2.x
|
- uses: actions/add-to-project@main
|
||||||
with:
|
with:
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
project-url: https://github.com/orgs/vector-im/projects/81
|
||||||
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_kwDOAM0swc4AMlHr"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
move_element_x_issues:
|
move_element_x_issues:
|
||||||
name: ElementX issues to ElementX project board
|
name: ElementX issues to ElementX project board
|
||||||
@ -34,19 +22,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
github.repository == 'vector-im/element-x-ios'
|
github.repository == 'vector-im/element-x-ios'
|
||||||
steps:
|
steps:
|
||||||
- uses: octokit/graphql-action@v2.x
|
- uses: actions/add-to-project@main
|
||||||
with:
|
with:
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
project-url: https://github.com/orgs/vector-im/projects/43
|
||||||
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_kwDOAM0swc4ABTXY"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user