Action to add issue to AO project (#127312)

* Action to add issue to AO project

* Switch to using richkuz projectnext-assigner as per jasonrhodes suggestion

* Add condition to run only on issues labeled as AO

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Emmanuelle Raffenne 2022-03-23 09:08:49 +00:00 committed by GitHub
parent 77034b3f54
commit d3d36cf0c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

23
.github/workflows/add-to-ao-project.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Add issues to Actionable Observability project
on:
issues:
types: [labeled]
jobs:
sync_issues_with_table:
runs-on: ubuntu-latest
name: Add issues to project
if: |
github.event.label.name == 'Team: Actionable Observability'
steps:
- name: Add
uses: richkuz/projectnext-label-assigner@1.0.2
id: add_to_projects
with:
config: |
[
{"label": "Team: Actionable Observability", "projectNumber": 669}
]
env:
GRAPHQL_API_BASE: 'https://api.github.com'
PAT_TOKEN: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}