Skip to content

Commit

Permalink
feat(ci): Automatically add GitHub labels to PRs (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode authored Nov 7, 2021
1 parent 98d8ad7 commit 35c976d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'type: bug(fix) 🐞':
title: '^fix(\(.+\))?:.*'
'type: chore 🧹':
title: '^chore(\(.+\))?:.*'
'type: docs 📋':
title: '^docs(\(.+\))?:.*'
'type: feature ✨':
title: '^feat(\(.+\))?:.*'
'type: refactor 🔧':
title: '^refactor(\(.+\))?:.*'
'type: style 🎨':
title: '^style(\(.+\))?:.*'
'type: test 🧪':
title: '^test(\(.+\))?:.*'
14 changes: 14 additions & 0 deletions .github/workflows/generate-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Generate Labels'

on:
pull_request:
types: [opened, edited, synchronize]

jobs:
label:
name: 'Label PR based on title'
runs-on: ubuntu-latest
steps:
- uses: srvaroa/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration
name: 'Run Tests'

on: [push, pull_request]

Expand Down

0 comments on commit 35c976d

Please sign in to comment.