Skip to content

Commit

Permalink
ci: Update Labels and Release workflows (#471)
Browse files Browse the repository at this point in the history
## 📝 Description

**What does this PR do and why is this change necessary?**

Updates to use githubs built in release notes and using the following labels.

`**NOTE**: The labeler job is dry running on the PR to show what it will do, doesn't execute until we merge.`

### ⚠️  Breaking Change
breaking-change: any changes that break end users or downstream workflows
### 🐛 Bug Fixes
bugfix: changes that fix a existing bug
### 🚀 New Features
new-feature: changes that add new features such as endpoints or tools
### 💡 Improvements
improvement: changes that improve existing features or reflect small API changes
### 🧪 Testing Improvements
testing: improvements to the testing workflows
### ⚙️  Repo/CI Improvements
repo-ci-improvement: improvements to the CI workflow, like this PR!
### 📖 Documentation
documentation: updates to the package/repo documentation or wiki
### 📦 Dependency Updates
dependencies: Used by dependabot mostly
### Ignore For Release
ignore-for-release: for PRs you dont want rendered in the changelog, usually the release merge to main
  • Loading branch information
jriddle-linode committed Mar 18, 2024
1 parent 74a7135 commit 7cb710b
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 81 deletions.
48 changes: 21 additions & 27 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
- name: added-feature
- name: new-feature
description: for new features in the changelog.
color: a2eeef
- name: changed
description: for changes in existing functionality in the changelog.
color: a2eeef
- name: deprecated
description: for soon-to-be removed features in the changelog.
color: e4e669
- name: removed
description: for now removed features in the changelog.
color: e4e669
color: 225fee
- name: improvement
description: for improvements in existing functionality in the changelog.
color: 22ee47
- name: repo-ci-improvement
description: for improvements in the repository or CI workflow in the changelog.
color: c922ee
- name: bugfix
description: for any bug fixes in the changelog.
color: d73a4a
- name: security
description: for vulnerabilities in the changelog.
color: dd4739
- name: bug
description: Something isn't working in this issue.
color: d73a4a
- name: enhancement
description: New feature request in this issue.
color: a2eeef
- name: good first issue
description: Low hanging fruit.
color: 7057ff
- name: help wanted
description: I need some help.
color: 008672
color: ed8e21
- name: documentation
description: for updates to the documentation in the changelog.
color: d3e1e6
- name: testing
description: for updates to the testing suite in the changelog.
color: 933ac9
- name: breaking-change
description: for breaking changes in the changelog.
color: ff0000
- name: ignore-for-release
description: PRs you do not want to render in the changelog
color: 7b8eac
21 changes: 0 additions & 21 deletions .github/release-drafter.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
changelog:
exclude:
labels:
- ignore-for-release
categories:
- title: ⚠️ Breaking Change
labels:
- breaking-change
- title: 🐛 Bug Fixes
labels:
- bugfix
- title: 🚀 New Features
labels:
- new-feature
- title: 💡 Improvements
labels:
- improvement
- title: 🧪 Testing Improvements
labels:
- testing
- title: ⚙️ Repo/CI Improvements
labels:
- repo-ci-improvement
- title: 📖 Documentation
labels:
- documentation
- title: 📦 Dependency Updates
labels:
- dependencies
- title: Other Changes
labels:
- "*"
17 changes: 0 additions & 17 deletions .github/workflows/label-sync.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: labeler

on:
push:
branches:
- 'main'
paths:
- '.github/labels.yml'
- '.github/workflows/labeler.yml'
pull_request:
paths:
- '.github/labels.yml'
- '.github/workflows/labeler.yml'

jobs:
labeler:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Run Labeler
uses: crazy-max/ghaction-github-labeler@de749cf181958193cb7debf1a9c5bb28922f3e1b
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
dry-run: ${{ github.event_name == 'pull_request' }}
exclude: |
help*
*issue
16 changes: 0 additions & 16 deletions .github/workflows/release-drafter.yml

This file was deleted.

0 comments on commit 7cb710b

Please sign in to comment.