Skip to content

Commit 916b996

Browse files
authored
Workflow: added release drafter (#4443)
* bumped version * added release-drafter.yml * updated labeler.yml * removed auto-labeler related triggers * updated label [skip ci] * shorter badge [skip ci]
1 parent d4901af commit 916b996

File tree

4 files changed

+73
-2
lines changed

4 files changed

+73
-2
lines changed

.github/labeler.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,15 @@
868868
'Documentation':
869869
- changed-files:
870870
- any-glob-to-any-file: [
871-
'*.md'
871+
docs/*.md
872+
docs/**/*.md
873+
docs_includes/*.md
874+
]
875+
876+
'README':
877+
- changed-files:
878+
- any-glob-to-any-file: [
879+
README.md
872880
]
873881

874882
'PHPStorm':

.github/release-drafter.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'enhancement'
7+
- 'new feature'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: '📖 Documentation'
14+
labels:
15+
- 'Documentation'
16+
- title: '↗️ Dependencies'
17+
labels:
18+
- 'dependencies'
19+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
20+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
21+
version-resolver:
22+
major:
23+
labels:
24+
- 'major'
25+
minor:
26+
labels:
27+
- 'minor'
28+
patch:
29+
labels:
30+
- 'patch'
31+
default: patch
32+
template: |
33+
## Changes
34+
35+
$CHANGES

.github/workflows/release-drafter.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
- next
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
update_release_draft:
15+
permissions:
16+
# write permission is required to create a github release
17+
contents: write
18+
# write permission is required for autolabeler
19+
# otherwise, read permission is required at least
20+
pull-requests: write
21+
runs-on: ubuntu-latest
22+
steps:
23+
# Drafts your next Release notes as Pull Requests are merged into "master"
24+
- uses: release-drafter/release-drafter@v6
25+
with:
26+
disable-autolabeler: true
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![https://packagist.org/packages/openmage/magento-lts](https://poser.pugx.org/openmage/magento-lts/d/total.svg)
44
![https://github.com/openmage/magento-lts/actions/workflows/security-php.yml](https://github.com/openmage/magento-lts/actions/workflows/security-php.yml/badge.svg)
55
![https://github.com/OpenMage/magento-lts/actions/workflows/workflow.yml](https://github.com/OpenMage/magento-lts/actions/workflows/workflow.yml/badge.svg)
6-
![https://www.php-fig.org/per/coding-style/](https://img.shields.io/badge/Coding%20standard-PER2.0-white.svg)
6+
![https://www.php-fig.org/per/coding-style/](https://img.shields.io/badge/Code-PER2.0-white.svg)
77

88
# Magento - Long Term Support
99

0 commit comments

Comments
 (0)