Skip to content

Commit 646cc7d

Browse files
committed
Add issue automation for the VoIP team
Move VoIP issues to VoIP team board
1 parent 76ead3f commit 646cc7d

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/triage-labelled.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ jobs:
311311
name: Add labelled issues to PS features team 3
312312
runs-on: ubuntu-latest
313313
if: >
314-
contains(github.event.issue.labels.*.name, 'A-Composer-WYSIWYG')
314+
contains(github.event.issue.labels.*.name, 'A-Rich-Text-Editor')
315315
steps:
316316
- uses: octokit/graphql-action@v2.x
317317
id: add_to_project
@@ -330,3 +330,27 @@ jobs:
330330
env:
331331
PROJECT_ID: "PVT_kwDOAM0swc4AHJKW"
332332
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
333+
334+
voip:
335+
name: Add labelled issues to VoIP project board
336+
runs-on: ubuntu-latest
337+
if: >
338+
contains(github.event.issue.labels.*.name, 'Team: VoIP')
339+
steps:
340+
- uses: octokit/graphql-action@v2.x
341+
id: add_to_project
342+
with:
343+
headers: '{"GraphQL-Features": "projects_next_graphql"}'
344+
query: |
345+
mutation add_to_project($projectid:ID!,$contentid:ID!) {
346+
addProjectV2ItemById(input: {projectId: $projectid contentId: $contentid}) {
347+
item {
348+
id
349+
}
350+
}
351+
}
352+
projectid: ${{ env.PROJECT_ID }}
353+
contentid: ${{ github.event.issue.node_id }}
354+
env:
355+
PROJECT_ID: "PVT_kwDOAM0swc4ABMIk"
356+
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

0 commit comments

Comments
 (0)