-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding release drafter for more information, see https://pre-commit.ci * Added instructions to contributing.md * Added instructions for releaser for more information, see https://pre-commit.ci * PR title
- Loading branch information
1 parent
18079ea
commit a09268f
Showing
4 changed files
with
126 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
exclude-labels: | ||
# When PR will not be classified if it has these labels | ||
- skip changelog | ||
- release | ||
name-template: 'Sparse v$RESOLVED_VERSION' | ||
|
||
change-template: '- $TITLE (#$NUMBER)' | ||
|
||
autolabeler: | ||
- label: breaking | ||
title: | ||
# Example: feat!: ... | ||
- '/^(build|chore|ci|depr|docs|feat|fix|perf|refactor|release|test)(\(.*\))?\!\: /' | ||
- label: build | ||
title: | ||
- '/^(build)/' | ||
- label: internal | ||
title: | ||
- '/^(chore|ci|refactor|test)/' | ||
- label: deprecation | ||
title: | ||
- '/^depr/' | ||
- label: documentation | ||
title: | ||
- '/^(docs|docstring)/' | ||
- label: enhancement | ||
title: | ||
- '/^feat/' | ||
- label: fix | ||
title: | ||
- '/^fix/' | ||
- label: performance | ||
title: | ||
- '/^perf/' | ||
- label: release | ||
title: | ||
- '/^release/' | ||
- label: 'skip changelog' | ||
title: | ||
- '/^\[pre-commit.ci\]/' | ||
categories: | ||
- title: Highlights | ||
labels: highlight | ||
- title: Breaking changes | ||
labels: | ||
- breaking | ||
- breaking python | ||
- title: Deprecations | ||
labels: deprecation | ||
- title: Performance improvements | ||
labels: performance | ||
- title: Enhancements | ||
labels: enhancement | ||
- title: Bug fixes | ||
labels: fix | ||
- title: Documentation | ||
labels: documentation | ||
- title: Build system | ||
labels: build | ||
- title: Other improvements | ||
labels: internal | ||
|
||
template: | | ||
## Changes | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- main | ||
# pull_request event is required only for autolabeler | ||
pull_request: | ||
# Only following types are handled by the action, but one can default to all as well | ||
types: [opened, reopened, synchronize, edited] | ||
# pull_request_target event is required for autolabeler to support PRs from forks | ||
pull_request_target: | ||
types: [opened, reopened, synchronize, edited] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update_release_draft: | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
# write permission is required for autolabeler | ||
# otherwise, read permission is required at least | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
# (Optional) GitHub Enterprise requires GHE_HOST variable set | ||
#- name: Set GHE_HOST | ||
# run: | | ||
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV | ||
|
||
# Drafts your next Release notes as Pull Requests are merged into "main" | ||
- uses: release-drafter/release-drafter@v6 | ||
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | ||
# with: | ||
# config-name: my-config.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters