Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Create automation for project board (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlind23 authored Mar 31, 2022
1 parent 9e1d69f commit 31965c8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/assign-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Add to Elastic Agent Data Plane or Control Plane Board
on:
issues:
types:
- labeled
jobs:
add_to_data_plane-project:
runs-on: ubuntu-latest
if: |
github.event.label.name == 'Team:Elastic-Agent-Data-Plane'
steps:
- uses: octokit/[email protected]
id: add_to_project
with:
headers: '{"GraphQL-Features": "projects_next_graphql"}'
query: |
mutation add_to_project($projectid:String!,$contentid:String!) {
updateIssue(input: {id:$contentid, projectIds:$projectid}) {
clientMutationId
}
}
projectid: "PRO_kwDOAGc3Zs4AzG8z"
contentid: ${{ github.event.issue.node_id }}
GITHUB_TOKEN: ${{ secrets.ELASTIC_AGENT_PROJECT_BOARD_TOKEN }}
add_to_control_plane-project:
runs-on: ubuntu-latest
if: |
github.event.label.name == 'Team:Elastic-Agent-Control-Plane'
steps:
- uses: octokit/[email protected]
id: add_to_project
with:
headers: '{"GraphQL-Features": "projects_next_graphql"}'
query: |
mutation add_to_project($projectid:[ID!]!,$contentid:ID!) {
updateIssue(input: {id:$contentid, projectIds:$projectid}) {
clientMutationId
}
}
projectid: "PRO_kwDOAGc3Zs4AzG9E"
contentid: ${{ github.event.issue.node_id }}
GITHUB_TOKEN: ${{ secrets.ELASTIC_AGENT_PROJECT_BOARD_TOKEN }}

0 comments on commit 31965c8

Please sign in to comment.