Skip to content

Commit

Permalink
feat: add labeler
Browse files Browse the repository at this point in the history
  • Loading branch information
valerydluski committed Nov 20, 2023
1 parent 1f1620a commit e3043be
Showing 1 changed file with 64 additions and 1 deletion.
65 changes: 64 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,79 @@ concurrency:
jobs:
pr_format:
name: Format
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: '18'

- 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

0 comments on commit e3043be

Please sign in to comment.