Skip to content

Commit f547290

Browse files
authored
Merge pull request #2023 from PyCQA/ci/add-release-drafter
Add GH release helpers
2 parents cfec337 + 34b5e91 commit f547290

File tree

4 files changed

+130
-0
lines changed

4 files changed

+130
-0
lines changed

.github/labels.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
# Labels names are important as they are used by Release Drafter to decide
3+
# regarding where to record them in changelog or if to skip them.
4+
#
5+
# The repository labels will be automatically configured using this file and
6+
# the GitHub Action https://github.com/marketplace/actions/github-labeler.
7+
- name: breaking
8+
description: Breaking Changes
9+
color: "bfd4f2"
10+
- name: bug
11+
description: Something isn't working
12+
color: "d73a4a"
13+
- name: build
14+
description: Build System and Dependencies
15+
color: "bfdadc"
16+
- name: ci
17+
description: Continuous Integration
18+
color: "4a97d6"
19+
- name: dependencies
20+
description: Pull requests that update a dependency file
21+
color: "0366d6"
22+
- name: documentation
23+
description: Improvements or additions to documentation
24+
color: "0075ca"
25+
- name: duplicate
26+
description: This issue or pull request already exists
27+
color: "cfd3d7"
28+
- name: enhancement
29+
description: New feature or request
30+
color: "a2eeef"
31+
- name: github_actions
32+
description: Pull requests that update Github_actions code
33+
color: "000000"
34+
- name: good first issue
35+
description: Good for newcomers
36+
color: "7057ff"
37+
- name: help wanted
38+
description: Extra attention is needed
39+
color: "008672"
40+
- name: invalid
41+
description: This doesn't seem right
42+
color: "e4e669"
43+
- name: performance
44+
description: Performance
45+
color: "016175"
46+
- name: python
47+
description: Pull requests that update Python code
48+
color: "2b67c6"
49+
- name: question
50+
description: Further information is requested
51+
color: "d876e3"
52+
- name: refactoring
53+
description: Refactoring
54+
color: "ef67c4"
55+
- name: removal
56+
description: Removals and Deprecations
57+
color: "9ae7ea"
58+
- name: style
59+
description: Style
60+
color: "c120e5"
61+
- name: testing
62+
description: Testing
63+
color: "b1fc6f"
64+
- name: wontfix
65+
description: This will not be worked on
66+
color: "ffffff"

.github/release-drafter.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
categories:
2+
- title: ":boom: Breaking Changes"
3+
label: "breaking"
4+
- title: ":rocket: Features"
5+
label: "enhancement"
6+
- title: ":fire: Removals and Deprecations"
7+
label: "removal"
8+
- title: ":beetle: Fixes"
9+
label: "bug"
10+
- title: ":raising_hand: Help wanted"
11+
label: "help wanted"
12+
- title: ":racehorse: Performance"
13+
label: "performance"
14+
- title: ":rotating_light: Testing"
15+
label: "testing"
16+
- title: ":construction_worker: Continuous Integration"
17+
label: "ci"
18+
- title: ":books: Documentation"
19+
label: "documentation"
20+
- title: ":hammer: Refactoring"
21+
label: "refactoring"
22+
- title: ":lipstick: Style"
23+
label: "style"
24+
- title: ":package: Dependencies"
25+
labels:
26+
- "dependencies"
27+
- "build"
28+
template: |
29+
## Changes
30+
31+
$CHANGES

.github/workflows/labeler.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Labeler
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
labeler:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repository
13+
uses: actions/checkout@v3
14+
15+
- name: Run Labeler
16+
uses: crazy-max/ghaction-github-labeler@v4
17+
with:
18+
skip-delete: true

.github/workflows/release-drafter.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Release Drafter
3+
4+
"on":
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
draft_release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: release-drafter/release-drafter@v5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)