Skip to content

Commit

Permalink
Consolidate add-untriaged into triage workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
  • Loading branch information
mch2 committed Dec 11, 2023
1 parent 5102640 commit e4a1e03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/add-untriaged.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Auto triage based on the component label in issue

on:
issues:
types: [opened]
types: [opened, reopened, transferred]

jobs:
apply-label:
if: github.repository == 'opensearch-project/OpenSearch'
if: github.repository == 'mch2/OpenSearch'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
Expand All @@ -26,3 +26,9 @@ jobs:
labels: [ `${ component_label }` ],
} );
}
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['untriaged']
})

0 comments on commit e4a1e03

Please sign in to comment.