Compare commits
26 Commits
Author | SHA1 | Date | |
---|---|---|---|
0391802f1b | |||
f642eb5b06 | |||
75f0bc3fef | |||
2cbfeaf6c1 | |||
22a2476194 | |||
342bb23a8a | |||
5d8e00c396 | |||
6d3d8da80c | |||
6b0c286749
|
|||
e8196f2e02
|
|||
2383627b93 | |||
e17b15f9b8 | |||
c2829e51d2
|
|||
697bed098c | |||
3bdc1064e4 | |||
674980cd67 | |||
ab724c7a4f | |||
baf1dc59e3 | |||
0125f02699 | |||
a1328dc32e | |||
733f16c90c | |||
034b3208c6 | |||
623ef5dc12 | |||
4fc79db1c4 | |||
08121dec64
|
|||
f1e9fa1a0a
|
@ -1,54 +1,42 @@
|
|||||||
{{ range .Versions }}
|
{{ range .Versions }}
|
||||||
<a name="{{ .Tag.Name }}"></a>
|
<a name="{{ .Tag.Name }}"></a>
|
||||||
|
## BlueMastoFeed {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
|
||||||
|
|
||||||
## {{ if .Tag.Previous }}
|
{{ if .CommitGroups }}
|
||||||
[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }})
|
### Changes
|
||||||
{{ else }}
|
|
||||||
{{ .Tag.Name }}
|
|
||||||
{{ end }}
|
|
||||||
<small><em>{{ datetime "2006-01-02" .Tag.Date }}</em></small>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
{{- if .CommitGroups }}
|
|
||||||
|
|
||||||
{{ range .CommitGroups }}
|
{{ range .CommitGroups }}
|
||||||
### 🚀 {{ .Title }}
|
#### {{ .Title }}
|
||||||
|
|
||||||
{{ range .Commits }}
|
{{ range .Commits }}
|
||||||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- if .RevertCommits }}
|
{{ if .MergeCommits }}
|
||||||
### 🔁 Reverts
|
### Pull Requests
|
||||||
|
|
||||||
{{ range .RevertCommits }}
|
|
||||||
- {{ .Revert.Header }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{- if .MergeCommits }}
|
|
||||||
### 🔀 Pull Requests (Merges)
|
|
||||||
|
|
||||||
{{ range .MergeCommits }}
|
{{ range .MergeCommits }}
|
||||||
- {{ .Header }}
|
- {{ .Header }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- if .NoteGroups }}
|
{{ if .RevertCommits }}
|
||||||
|
### Reverts
|
||||||
|
|
||||||
|
{{ range .RevertCommits }}
|
||||||
|
- {{ .Revert.Header }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .NoteGroups }}
|
||||||
|
### Notes
|
||||||
|
|
||||||
{{ range .NoteGroups }}
|
{{ range .NoteGroups }}
|
||||||
|
#### {{ .Title }}
|
||||||
### ⚠️ {{ .Title }}
|
|
||||||
|
|
||||||
{{ range .Notes }}
|
{{ range .Notes }}
|
||||||
- {{ .Body }}
|
- {{ .Body }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -1,28 +1,37 @@
|
|||||||
style: github
|
style: github
|
||||||
template: CHANGELOG.tpl.md
|
template: CHANGELOG.tpl.md
|
||||||
|
|
||||||
info:
|
info:
|
||||||
title: CHANGELOG
|
title: CHANGELOG
|
||||||
repository_url: https://dev.ksite.de/ralf.kirchner/demo
|
repository_url: https://dev.ksite.de/ralf.kirchner/demo
|
||||||
|
|
||||||
options:
|
options:
|
||||||
commits:
|
commits:
|
||||||
# filters:
|
sort_by: "date" # Optional, default is OK too
|
||||||
# Type:
|
exclude_merge_commits: false
|
||||||
# - feat
|
|
||||||
# - fix
|
|
||||||
# - perf
|
|
||||||
# - refactor
|
|
||||||
commit_groups:
|
commit_groups:
|
||||||
# title_maps:
|
group_by: "Type"
|
||||||
# feat: Features
|
title_maps:
|
||||||
# fix: Bug Fixes
|
feat: Features
|
||||||
# perf: Performance Improvements
|
fix: Bug Fixes
|
||||||
# refactor: Code Refactoring
|
perf: Performance Improvements
|
||||||
|
refactor: Code Refactoring
|
||||||
|
docs: Documentation
|
||||||
|
chore: Maintenance
|
||||||
|
test: Tests
|
||||||
|
build: Build System
|
||||||
|
ci: Continuous Integration
|
||||||
|
style: Code Style
|
||||||
|
|
||||||
header:
|
header:
|
||||||
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
|
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
|
||||||
pattern_maps:
|
pattern_maps:
|
||||||
- Type
|
- Type
|
||||||
- Scope
|
- Scope
|
||||||
- Subject
|
- Subject
|
||||||
|
|
||||||
notes:
|
notes:
|
||||||
keywords:
|
keywords:
|
||||||
- BREAKING CHANGE
|
- BREAKING CHANGE
|
||||||
|
- DEPRECATED
|
||||||
|
@ -1,44 +1,73 @@
|
|||||||
name: Build Changelog and Release
|
name: Create Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*' # Nur bei Tags wie v1.0.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Enable debug output
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
- name: Checkout source
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install git-chglog
|
- name: Show environment variables for debugging
|
||||||
run: |
|
run: |
|
||||||
curl -sSL https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz | tar -xz
|
echo "GIT_REMOTE_URL=$(git config --get remote.origin.url)"
|
||||||
|
echo "GITHUB_REF=$GITHUB_REF"
|
||||||
|
|
||||||
|
- name: Extract OWNER and REPO from git remote URL
|
||||||
|
id: repo-info
|
||||||
|
run: |
|
||||||
|
REMOTE_URL=$(git config --get remote.origin.url)
|
||||||
|
echo "Remote URL: $REMOTE_URL"
|
||||||
|
|
||||||
|
OWNER=$(echo "$REMOTE_URL" | sed -E 's#.*/([^/]+)/([^/]+)(\.git)?#\1#')
|
||||||
|
REPO=$(echo "$REMOTE_URL" | sed -E 's#.*/([^/]+)/([^/]+)(\.git)?#\2#')
|
||||||
|
|
||||||
|
echo "OWNER=$OWNER" >> $GITHUB_ENV
|
||||||
|
echo "REPO=$REPO" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Install git-chglog binary (no Go needed)
|
||||||
|
run: |
|
||||||
|
GIT_CHGLOG_VERSION="0.15.1"
|
||||||
|
curl -sSL "https://github.com/git-chglog/git-chglog/releases/download/v${GIT_CHGLOG_VERSION}/git-chglog_${GIT_CHGLOG_VERSION}_linux_amd64.tar.gz" -o git-chglog.tar.gz
|
||||||
|
tar -xzf git-chglog.tar.gz
|
||||||
|
chmod +x git-chglog
|
||||||
sudo mv git-chglog /usr/local/bin/
|
sudo mv git-chglog /usr/local/bin/
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Show git-chglog version
|
||||||
run: |
|
run: git-chglog --version
|
||||||
git-chglog $(git describe --tags --abbrev=0) > RELEASE_NOTES.md
|
|
||||||
|
|
||||||
- name: Create Release on Gitea
|
- name: Generate CHANGELOG.md for current tag
|
||||||
|
run: |
|
||||||
|
TAG=${GITHUB_REF##*/} # z.B. v1.0.0
|
||||||
|
echo "Generating changelog for tag: $TAG"
|
||||||
|
git-chglog -o CHANGELOG.md "$TAG"
|
||||||
|
echo "Changelog generated:"
|
||||||
|
cat CHANGELOG.md
|
||||||
|
|
||||||
|
- name: Create Gitea Release via API (no Go required)
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
TOKEN: ${{ secrets.TOKEN }}
|
||||||
|
OWNER: ${{ env.OWNER }}
|
||||||
|
REPO: ${{ env.REPO }}
|
||||||
|
TAG: ${GITHUB_REF##*/}
|
||||||
run: |
|
run: |
|
||||||
TAG=$(git describe --tags)
|
echo "Creating release for tag $TAG in repo $OWNER/$REPO"
|
||||||
REPO=${GITEA_REPOSITORY#*/}
|
curl -X POST "https://dev.ksite.de/api/v1/repos/${OWNER}/${REPO}/releases" \
|
||||||
OWNER=${GITEA_REPOSITORY%/*}
|
|
||||||
BODY=$(cat RELEASE_NOTES.md | jq -Rs .)
|
|
||||||
|
|
||||||
curl -X POST "https://dev.ksite.de/api/v1/repos/ralf.kirchner/demo/releases" \
|
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{
|
-H "Authorization: token $TOKEN" \
|
||||||
\"tag_name\": \"$TAG\",
|
-d @- <<EOF
|
||||||
\"name\": \"$TAG\",
|
{
|
||||||
\"body\": $BODY,
|
"tag_name": "${TAG}",
|
||||||
\"draft\": false,
|
"name": "${TAG}",
|
||||||
\"prerelease\": false
|
"body": "$(sed 's/"/\\"/g' CHANGELOG.md)"
|
||||||
}"
|
}
|
||||||
|
EOF
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
## Test
|
## Test
|
||||||
Das ist ein Test
|
Das ist ein Test
|
||||||
Test 01
|
Test 01
|
||||||
test 02
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
test 03
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user