Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
47 changes: 47 additions & 0 deletions .github/workflows/add-to-board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Triage & route issues

on:
issues:
types: [labeled]

permissions:
issues: write
contents: read
projects: write

jobs:
route:
runs-on: ubuntu-latest
if: >
contains(
[
'team:obs',
'team:security',
'team:platform',
'team:docs-eng',
'team:docs-projects'
],
github.event.label.name
)
env:
PROJECT_ID_MAP: |
{
"team:obs": "649",
"team:security": "1034",
"team:platform": "1232",
"team:docs-eng": "1625",
"team:docs-projects": "1415"
}
steps:
- name: Remove needs‑triage label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: needs-triage

- 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.TRIAGE_TOKEN }}
labeled: ${{ github.event.label.name }}
label-operator: OR
18 changes: 18 additions & 0 deletions .github/workflows/add-triage-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Label new issues for triage"

on:
issues:
types: [opened]

jobs:
add-needs-triage-label:
name: Add `triage` label
runs-on: ubuntu-latest
steps:
- name: Add the triage label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
triage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading