Skip to content

Commit

Permalink
Rearrange labels
Browse files Browse the repository at this point in the history
  • Loading branch information
tb1337 committed Feb 9, 2024
1 parent 5021d45 commit f6b5b60
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 36 deletions.
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ updates:
schedule:
interval: daily
labels:
- chore
- dependencies
- auto
- no-stale
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: weekly
labels:
- chore
- dependencies
- auto
- no-stale
5 changes: 4 additions & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
- name: "auto"
color: bfdadc
description: "Marks a PR or issue that has been created automatically."
- name: "breaking-change"
color: ee0701
description: "A breaking change for existing users."
Expand Down Expand Up @@ -38,7 +41,7 @@
description: "There has not been activity on this issue or PR for quite some time."
- name: "no-stale"
color: fef2c0
description: "This issue or PR is exempted from the stable bot."
description: "This issue or PR is exempted from the stale bot."

- name: "security"
color: ee0701
Expand Down
58 changes: 37 additions & 21 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,54 @@
---
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.

categories:
- title: '🚀 Features'
- title: '🚨 Breaking changes'
labels:
- 'enhancement'
- 'refactor'
- 'breaking-change'
- title: '✨ New features'
labels:
- 'new-feature'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- 'bugfix'
- title: '🚀 Enhancements'
labels:
- 'enhancement'
- 'refactor'
- 'performance'
- title: '🧰 Maintenance'
label: 'chore'
template: |
## Changes
labels:
- 'maintenance'
- 'ci'
- title: '📚 Documentation'
labels:
- 'documentation'
- title: '⬆️ Dependency updates'
labels:
- 'dependencies'

$CHANGES
version-resolver:
major:
labels:
- 'breaking change'
- 'major'
- 'breaking-change'
minor:
labels:
- 'minor'
- 'new-feature'
patch:
labels:
- 'bugfix'
- 'dependencies'
- 'enhancement'
- 'performance'
- 'refactor'
default: patch
autolabeler:
- label: 'bug'
branch:
- '/fix\/.+/'
title:
- '/fix/i'
- label: 'enhancement'
branch:
- '/feature\/.+/'
- label: 'chore'
branch:
- '/chore\/.+/'

template: |
## Changes
$CHANGES
19 changes: 12 additions & 7 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,28 @@
name: PR Labels

on:
pull_request:
pull_request_target:
types:
- opened
- synchronize
- labeled
- unlabeled
branches:
- master

permissions: {}
workflow_call:

jobs:
pr_labels:
pr-labels:
name: Verify
runs-on: ubuntu-latest
steps:
- name: 🏷 Verify valid PR label
uses: ludeeus/[email protected]
with:
labels: >-
breaking-change, bugfix, chore, dependencies, documentation, enhancement, new-feature, refactor
breaking-change, bugfix,
ci,
dependencies, documentation,
enhancement,
maintenance,
new-feature,
performance,
refactor
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
body: |
Update versions of tools in pre-commit
configs to latest version
labels: dependencies
labels: dependencies, auto, no-stale
10 changes: 6 additions & 4 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# Utilize release drafter action

---
name: Release Drafter

on:
push:
branches:
- master
workflow_dispatch:


jobs:
update_release_draft:
name: 📝 Draft release
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/[email protected]
- name: 🚀 Run Release Drafter
uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f6b5b60

Please sign in to comment.