Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add triage-incoming.yml #14

Merged
merged 4 commits into from
Oct 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/triage-incoming.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Move new issues into the issue triage board

on:
workflow_call:
inputs:
project_id:
description: 'The projectId to add the issue to.'
required: true
type: string
content_id:
description: 'The node_id of the issue to add.'
required: true
type: string
secrets:
github_access_token:
description: 'The bot token for authenticating the request'
required: true

jobs:
add_new_issues:
name: Add new issues to the triage board
runs-on: ubuntu-latest
steps:
- uses: octokit/graphql-action@v2.x
with:
headers: '{"GraphQL-Features": "projects_next_graphql"}'
token: ${{ secrets.github_access_token }}
query: |
mutation add_to_project($projectid:ID!,$contentid:ID!) {
addProjectV2ItemById(input: {projectId: $projectid contentId: $contentid}) {
item {
id
}
}
}
projectid: ${{ inputs.project_id }}
contentid: ${{ inputs.content_id }}