Skip to content

Commit

Permalink
Merge pull request #6 from urcomputeringpal/main
Browse files Browse the repository at this point in the history
Pull main into release
  • Loading branch information
jnewland authored May 31, 2023
2 parents f23dcc7 + decb0ef commit 2478e13
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'Features'
labels:
- 'Feature'
- title: 'Fixes'
labels:
- 'Fix'
- title: '🧰 Maintenance'
labels:
- 'Internal'
- 'Trivial'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&@`' # Disables mentions and codeblocks
template: |
## Changes
$CHANGES
# Automatically bump the version in this fashion by adding these labels to your PR.
version-resolver:
major:
labels:
- 'major'
- major
minor:
labels:
- 'minor'
- minor
patch:
labels:
- 'patch'
- patch
# By default, bump the patch version
default: patch
template: |
## Changes
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'

$CHANGES
# These labels are enforced with the require-labels workflow
exclude-labels:
- Internal
- Trivial
categories:
- title: Features
labels:
- Feature
- title: Fixes
labels:
- Fix
18 changes: 18 additions & 0 deletions .github/workflows/require-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pull Request Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize, ready_for_review]
branches: [main, release]

jobs:
label:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: mheap/github-action-required-labels@v3
with:
mode: exactly
count: 1
labels: "Fix, Feature, Internal, Trivial"
add_comment: true
message: "This PR is being prevented from merging because you are missing one of the required labels: {{ provided }}."
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@

- Feature 1
- Feature 2
- Feature 3

0 comments on commit 2478e13

Please sign in to comment.