Skip to content

Commit

Permalink
chore(ci): introducing pull request meta workflow
Browse files Browse the repository at this point in the history
  * auto assigning the author of the PR
  * auto assigning the labels base on conventional naming
  • Loading branch information
literat committed Feb 4, 2025
1 parent 00896d0 commit 59d8ab1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/auto_assign.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
addAssignees: author
runOnDraft: true
6 changes: 6 additions & 0 deletions .github/pr-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BC: ['bc/*', 'break/*']
feature: ['feature/*', 'feat/*']
bug: ['fix/*', 'bugfix/*']
refactoring: ['refactor/*', 'refactoring/*']
documentation: ['docs/*', 'documentation/*']
maintenance: ['maintenance/*', 'chore/*']
23 changes: 23 additions & 0 deletions .github/workflows/pr-meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull Request Meta

on:
pull_request:
types: [opened, reopened]

permissions:
pull-requests: write

jobs:
process_pr_meta:
name: Process PR meta
runs-on: ubuntu-24.04
steps:
- name: Assign to author
uses: toshimaru/auto-author-assign@16f0022cf3d7970c106d8d1105f75a1165edb516 # v2.1.1

- name: Add labels
uses: TimonVS/[email protected]
with:
configuration-path: .github/pr-labeler.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 59d8ab1

Please sign in to comment.