Use release drafter to draft releases
This commit is contained in:
parent
e22ad6b464
commit
4e98e7af4c
8
.github/ISSUE_TEMPLATE.md
vendored
8
.github/ISSUE_TEMPLATE.md
vendored
|
@ -4,11 +4,15 @@
|
|||
|
||||
### What actually happened?
|
||||
|
||||
### What versions of OS, Python and pylast are you using?
|
||||
### What versions are you using?
|
||||
|
||||
* OS:
|
||||
* Python:
|
||||
* pylast:
|
||||
|
||||
Please include **code** that reproduces the issue.
|
||||
|
||||
The [best reproductions](https://stackoverflow.com/help/mcve) are [self-contained scripts](https://ericlippert.com/2014/03/05/how-to-debug-small-programs/) with minimal dependencies.
|
||||
The [best reproductions](https://stackoverflow.com/help/minimal-reproducible-example) are [self-contained scripts](https://ericlippert.com/2014/03/05/how-to-debug-small-programs/) with minimal dependencies.
|
||||
|
||||
```python
|
||||
code goes here
|
||||
|
|
96
.github/labels.yml
vendored
Normal file
96
.github/labels.yml
vendored
Normal file
|
@ -0,0 +1,96 @@
|
|||
# Default GitHub labels
|
||||
- color: d73a4a
|
||||
description: "Something isn't working"
|
||||
name: bug
|
||||
- color: cfd3d7
|
||||
description: "This issue or pull request already exists"
|
||||
name: duplicate
|
||||
- color: a2eeef
|
||||
description: "New feature or request"
|
||||
name: enhancement
|
||||
- color: 7057ff
|
||||
description: "Good for newcomers"
|
||||
name: good first issue
|
||||
- color: 008672
|
||||
description: "Extra attention is needed"
|
||||
name: help wanted
|
||||
- color: e4e669
|
||||
description: "This doesn't seem right"
|
||||
name: invalid
|
||||
- color: d876e3
|
||||
description: "Further information is requested"
|
||||
name: question
|
||||
- color: ffffff
|
||||
description: "This will not be worked on"
|
||||
name: wontfix
|
||||
|
||||
# Keep a Changelog labels
|
||||
# https://keepachangelog.com/en/1.0.0/
|
||||
- color: 0e8a16
|
||||
description: "For new features"
|
||||
name: "changelog: Added"
|
||||
- color: af99e5
|
||||
description: "For changes in existing functionality"
|
||||
name: "changelog: Changed"
|
||||
- color: FFA500
|
||||
description: "For soon-to-be removed features"
|
||||
name: "changelog: Deprecated"
|
||||
- color: 00A800
|
||||
description: "For any bug fixes"
|
||||
name: "changelog: Fixed"
|
||||
- color: ff0000
|
||||
description: "For now removed features"
|
||||
name: "changelog: Removed"
|
||||
- color: 045aa0
|
||||
description: "In case of vulnerabilities"
|
||||
name: "changelog: Security"
|
||||
- color: fbca04
|
||||
description: "Exclude PR from release draft"
|
||||
name: "changelog: skip"
|
||||
|
||||
# Other labels
|
||||
- color: e11d21
|
||||
description: ""
|
||||
name: Last.fm bug
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: Milestone-0.3
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: Performance
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: Priority-High
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: Priority-Low
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: Priority-Medium
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: Type-Other
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: Type-Patch
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: Usability
|
||||
- color: 64c1c0
|
||||
description: ""
|
||||
name: backwards incompatible
|
||||
- color: fef2c0
|
||||
description: ""
|
||||
name: build
|
||||
- color: e99695
|
||||
description: Feature that will be removed in the future
|
||||
name: deprecation
|
||||
- color: FFFFFF
|
||||
description: ""
|
||||
name: imported
|
||||
- color: b60205
|
||||
description: Removal of a feature, usually done in major releases
|
||||
name: removal
|
||||
- color: fef2c0
|
||||
description: ""
|
||||
name: test
|
28
.github/release-drafter.yml
vendored
Normal file
28
.github/release-drafter.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name-template: "$NEXT_PATCH_VERSION"
|
||||
tag-template: "$NEXT_PATCH_VERSION"
|
||||
|
||||
categories:
|
||||
- title: "Added"
|
||||
labels:
|
||||
- "changelog: Added"
|
||||
- "enhancement"
|
||||
- title: "Changed"
|
||||
label: "changelog: Changed"
|
||||
- title: "Deprecated"
|
||||
label: "changelog: Deprecated"
|
||||
- title: "Removed"
|
||||
label: "changelog: Removed"
|
||||
- title: "Fixed"
|
||||
labels:
|
||||
- "changelog: Fixed"
|
||||
- "bug"
|
||||
- title: "Security"
|
||||
label: "changelog: Security"
|
||||
|
||||
exclude-labels:
|
||||
- "changelog: skip"
|
||||
|
||||
template: |
|
||||
## Changes
|
||||
|
||||
$CHANGES
|
15
.github/workflows/labels.yml
vendored
Normal file
15
.github/workflows/labels.yml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
name: Sync labels
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- .github/labels.yml
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: micnncim/action-label-syncer@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
17
.github/workflows/release-drafter.yml
vendored
Normal file
17
.github/workflows/release-drafter.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
name: Release drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
# branches to consider in the event; optional, defaults to all
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
if: github.repository == 'pylast/pylast'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Drafts your next release notes as pull requests are merged into "master"
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue