Skip to content

Commit

Permalink
ci: initial release drafter commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Apr 11, 2024
1 parent 26f57ef commit b07f912
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 0 deletions.
91 changes: 91 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name-template: 'lagoon-core v$NEXT_MINOR_VERSION'
tag-template: 'v$NEXT_MINOR_VERSION'
categories:
- title: 'New Features'
label: 'feat'
- title: 'Bug Fixes'
label: 'fix'
- title: 'Performance Improvements'
label: 'perf'
- title: 'Code Refactors'
label: 'refactor'
- title: 'Code Style and Formatting'
label: 'style'
- title: 'Build and dependency updates'
label: 'build'
- title: 'Other minor changes'
label: 'chore'
- title: 'Continuous Integration updates'
label: 'ci'
- title: 'Test additions and improvements'
label: 'test'
- title: 'Documentation only changes'
label: 'docs'
- title: 'A change that reverts a previously committed change'
label: 'revert'
exclude-labels:
- 'skip-changelog'
autolabeler:
- label: 'feat'
title:
- '/feat:/i'
- label: 'fix'
title:
- '/fix:/i'
branch:
- '/hotfix\/.+/'
- label: 'perf'
title:
- '/perf:/i'
- label: 'refactor'
title:
- '/refactor:/i'
- label: 'style'
title:
- '/style:/i'
- label: 'build'
title:
- '/build:/i'
- label: 'chore'
title:
- '/chore:/i'
- label: 'ci'
title:
- '/ci:/i'
branch:
- '/testing\/.+/'
- label: 'test'
title:
- '/test:/i'
- label: 'docs'
branch:
- '/docs\/.+/'
title:
- '/docs:/i'
files:
- 'docs/**/*.md'
- label: 'revert'
title:
- '/revert:/i'

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
header: |
# Welcome to the lagoon-core $NEXT_MINOR_VERSION release
template: |
## Notable changes
## Full list of changes in this release
$CHANGES
footer: |
## Linked Releases:
- lagoon-ui: [https://github.com/uselagoon/lagoon-ui/releases/tag/core-$NEXT_MINOR_VERSION](https://github.com/uselagoon/lagoon-ui/releases/tag/core-$NEXT_MINOR_VERSION)
- lagoon-build-deploy: [https://github.com/uselagoon/build-deploy-tool/releases/tag/core-$NEXT_MINOR_VERSION](https://github.com/uselagoon/build-deploy-tool/releases/tag/core-$NEXT_MINOR_VERSION)
- lagoon-core: [https://github.com/uselagoon/lagoon-charts/releases/tag/lagoon-core-x.XX.x](https://github.com/uselagoon/lagoon-charts/releases/tag/lagoon-core-x.XX.x)
- lagoon-remote: [https://github.com/uselagoon/lagoon-charts/releases/tag/lagoon-remote-x.XX.x](https://github.com/uselagoon/lagoon-charts/releases/tag/lagoon-remote-x.XX.x)
- lagoon-test: [https://github.com/uselagoon/lagoon-charts/releases/tag/lagoon-test-x.XX.x](https://github.com/uselagoon/lagoon-charts/releases/tag/lagoon-test-x.XX.x)
## Full Changelog:
- [https://docs.lagoon.sh/releases/$NEXT_MINOR_VERSION](https://docs.lagoon.sh/releases/$NEXT_MINOR_VERSION)
- https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEXT_MINOR_VERSION
32 changes: 32 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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]
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
types: [opened, reopened, synchronize]

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:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b07f912

Please sign in to comment.