Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 18 additions & 0 deletions .github/workflows/add-new-team-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Label new issues with needs-team"

on:
issues:
types: [opened]

jobs:
add-needs-triage-label:
name: Add `needs-team` label
runs-on: ubuntu-latest
steps:
- name: Add the needs-team label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
needs-team
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/add-to-board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Triage & route issues

on:
issues:
types: [labeled]

permissions:
issues: write
contents: read

jobs:
route:
runs-on: ubuntu-latest
if: >
contains(
[
'team:Obs',
'team:Security',
'team:Platform',
'team:DocsEng',
'team:Projects'
],
github.event.label.name
)
env:
PROJECT_ID_MAP: |
{
"team:Obs": "649",
"team:Security": "1034",
"team:Platform": "1232",
"team:DocsEng": "1625",
"team:Projects": "1415"
}
steps:
- name: Remove needs-team label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: needs-team

- name: Add issue to the right project
uses: actions/add-to-project@v1
with:
project-url: https://github.com/orgs/elastic/projects/${{ fromJson(env.PROJECT_ID_MAP)[github.event.label.name] }}
github-token: ${{ secrets.ADD_TO_BOARD_TOKEN }}
labeled: ${{ github.event.label.name }}
label-operator: OR
Loading