Skip to content

Commit

Permalink
feat: add labeler (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerydluski authored Nov 20, 2023
1 parent 07854d2 commit 206e7de
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
jobs:
pr_format:
name: Format
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Setup Node.js environment
Expand All @@ -21,6 +24,66 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Detect changes in specific directories
id: detect_changes
uses: dorny/paths-filter@v2
with:
filters: |
react:
- 'react/**'
angular:
- 'angular/**'
node:
- 'node/**'
stage0:
- 'stage0/**'
stage1:
- 'stage1/**'
stage2:
- 'stage2/**'
- name: Add 'react' label
if: steps.detect_changes.outputs.react == 'true'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
react
- name: Add 'angular' label
if: steps.detect_changes.outputs.angular == 'true'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
angular
- name: Add 'node' label
if: steps.detect_changes.outputs.node == 'true'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
node
- name: Add 'stage#0' label
if: steps.detect_changes.outputs.stage0 == 'true'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
stage#0
- name: Add 'stage#1' label
if: steps.detect_changes.outputs.stage1 == 'true'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
stage#1
- name: Add 'stage#2' label
if: steps.detect_changes.outputs.stage2 == 'true'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: |
stage#2
- name: Install dependencies
uses: bahmutov/npm-install@v1

Expand Down
File renamed without changes.

0 comments on commit 206e7de

Please sign in to comment.