Skip to content

Commit

Permalink
Merge pull request #329 from gdsfactory/add_labels
Browse files Browse the repository at this point in the history
require labels on PRs
  • Loading branch information
joamatab authored Feb 7, 2024
2 parents 85616a1 + 7792f08 commit 49ca1c7
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 41 deletions.
53 changes: 38 additions & 15 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,61 @@ template: |
categories:
- title: 'Breaking'
label: 'type: breaking'
label: 'breaking'
- title: 'New'
label: 'type: feature'
labels:
- 'feature'
- 'enhancement'
- title: 'Bug Fixes'
label: 'type: bug'
label: 'bug'
- title: 'Maintenance'
label: 'type: maintenance'
labels:
- 'maintenance'
- 'github_actions'
- title: 'Documentation'
label: 'type: docs'
label: 'documentation'
- title: 'Other changes'
- title: 'Dependency Updates'
label: 'type: dependencies'
label: 'dependencies'
collapse-after: 5

version-resolver:
major:
labels:
- 'type: breaking'
- 'breaking'
- 'major'
minor:
labels:
- 'type: feature'
- 'feature'
- 'minor'
- 'enhancement'
patch:
labels:
- 'type: bug'
- 'type: maintenance'
- 'type: docs'
- 'type: dependencies'
- 'type: security'
- 'bug'
- 'maintenance'
- 'github_actions'
- 'documentation'
- 'dependencies'
- 'security'
default: patch

exclude-labels:
- 'skip-changelog'

exclude-contributors:
- 'joamatab'
autolabeler:
- label: 'documentation'
files:
- '*.md'
branch:
- '/docs-.+/'
- label: 'bug'
branch:
- '/fix-.+/'
title:
- '/fix/i'
- label: 'enhancement'
branch:
- '/feature-.+/'
- '/add-.+/'
title:
- '/^add\s/i'
17 changes: 17 additions & 0 deletions .github/workflows/require-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pull Request Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
label:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: mheap/github-action-required-labels@v5
with:
mode: minimum
count: 1
labels: "breaking, bug, github_actions, documentation, dependencies, enhancement, feature, maintenance, security"
add_comment: true
26 changes: 0 additions & 26 deletions .github/workflows/stale.yml

This file was deleted.

0 comments on commit 49ca1c7

Please sign in to comment.