Skip to content

Commit

Permalink
Merge pull request BeastByteAI#6 from VDuchauffour/feature/release-dr…
Browse files Browse the repository at this point in the history
…after

Add release drafter and pull request labeler
  • Loading branch information
iryna-kondr authored May 26, 2023
2 parents 22fcb37 + 431bea9 commit 16ebe89
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
feature: ['features/*', 'feature/*', 'feat/*', 'features-*', 'feature-*', 'feat-*']
fix: ['fixes/*', 'fix/*']
chore: ['chore/*']
dependencies: ['update/*']
40 changes: 40 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "🚀 Features"
labels:
- "feature"
- "enhancement"
- title: "🐛 Bug Fixes"
labels:
- "fix"
- "bugfix"
- "bug"
- title: "🧹 Maintenance"
labels:
- "maintenance"
- "dependencies"
- "refactoring"
- "cosmetic"
- "chore"
- title: "📝️ Documentation"
labels:
- "documentation"
- "docs"
change-template: "- $TITLE (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions
version-resolver:
major:
labels:
- "major"
minor:
labels:
- "minor"
patch:
labels:
- "patch"
default: patch
template: |
## Changes
$CHANGES
20 changes: 20 additions & 0 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Drafts the next Release notes as Pull Requests are merged (or commits are pushed) into "main" or "master"
name: Draft next release

on:
push:
branches: [main, "master"]

permissions:
contents: read

jobs:
update-release-draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ github.token }}
17 changes: 17 additions & 0 deletions .github/workflows/pr_labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This workflow will apply the corresponding label on a pull request
name: PR Labeler

on:
pull_request_target:

permissions:
contents: read
pull-requests: write

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v4
with:
repo-token: ${{ github.token }}

0 comments on commit 16ebe89

Please sign in to comment.