mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[skip ci] Fix labeling for Infrastructure UI (#150571)
This GitHub action broke, presumably because of changes in the API. Instead of updating the GraphQL query, switch to use the project-label-assigner action like the Actionable Observability team does.
This commit is contained in:
parent
fa44054f06
commit
09be2baedb
1 changed files with 15 additions and 19 deletions
34
.github/workflows/add-to-imui-project.yml
vendored
34
.github/workflows/add-to-imui-project.yml
vendored
|
@ -1,31 +1,27 @@
|
|||
name: Add to Infra Monitoring UI project
|
||||
name: Add to Infrastructure Observability UI project
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- labeled
|
||||
types: [labeled]
|
||||
jobs:
|
||||
add_to_project:
|
||||
name: Add issues to project
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
contains(github.event.issue.labels.*.name, 'Team:Infra Monitoring UI') ||
|
||||
contains(github.event.issue.labels.*.name, 'Feature:Stack Monitoring') ||
|
||||
contains(github.event.issue.labels.*.name, 'Feature:Logs UI') ||
|
||||
contains(github.event.issue.labels.*.name, 'Feature:Metrics UI')
|
||||
contains(github.event.issue.labels.*.name, 'Feature:Metrics UI') ||
|
||||
contains(github.event.issue.labels.*.name, 'Feature:ObsHosts')
|
||||
steps:
|
||||
- uses: octokit/graphql-action@v2.x
|
||||
id: add_to_project
|
||||
- name: Add
|
||||
uses: richkuz/projectnext-label-assigner@1.1.0
|
||||
id: add_to_projects
|
||||
with:
|
||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
||||
query: |
|
||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
||||
projectNextItem {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
projectid: ${{ env.PROJECT_ID }}
|
||||
contentid: ${{ github.event.issue.node_id }}
|
||||
config: |
|
||||
[
|
||||
{"label": "Team:Infra Monitoring UI" , "projectNumber": 664}
|
||||
]
|
||||
env:
|
||||
PROJECT_ID: "PN_kwDOAGc3Zs1EEA"
|
||||
GITHUB_TOKEN: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
|
||||
GRAPHQL_API_BASE: 'https://api.github.com'
|
||||
PAT_TOKEN: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue