Skip to content

Commit

Permalink
Create elastic-agent-pull-requests.yml (elastic#30177)
Browse files Browse the repository at this point in the history
* Create elastic-agent-pull-requests.yml
  • Loading branch information
jlind23 authored Feb 4, 2022
1 parent 9fda7dd commit 2aee884
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/elastic-agent-pull-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Add to Elastic Agent Data Plane or Control Plane Board
on:
pull_request:
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:
query: |
mutation add_to_project($projectid:String!,$contentid:String!) {
updatePullRequest(input: {pullRequestId:$contentid, projectIds:$projectid}) {
clientMutationId
}
}
projectid: ${{ env.PROJECT_ID }}
contentid: ${{ github.event.pull_request.node_id }}
env:
PROJECT_ID: "PRO_kwDOAGc3Zs4AzG8z"
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:
query: |
mutation add_to_project($projectid:String!,$contentid:String!) {
updatePullRequest(input: {pullRequestId:$contentid, projectIds:$projectid}) {
clientMutationId
}
}
projectid: ${{ env.PROJECT_ID }}
contentid: ${{ github.event.pull_request.node_id }}
env:
PROJECT_ID: "PRO_kwDOAGc3Zs4AzG9E"
GITHUB_TOKEN: ${{ secrets.ELASTIC_AGENT_PROJECT_BOARD_TOKEN }}

0 comments on commit 2aee884

Please sign in to comment.