Compare commits

..

9 Commits

Author SHA1 Message Date
6d3d8da80c .gitea/workflows/release.yml aktualisiert
Some checks failed
Release / release (push) Failing after 1m21s
2025-05-29 11:48:29 +02:00
6b0c286749 feat(2): test1 hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 11:18:09 +02:00
e8196f2e02 feat(1): test1 hinzugefügt 2025-05-29 11:17:31 +02:00
2383627b93 .chglog/CHANGELOG.tpl.md aktualisiert
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-29 11:15:59 +02:00
e17b15f9b8 .chglog/CHANGELOG.tpl.md aktualisiert
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-29 11:13:20 +02:00
c2829e51d2 feat(test1): test1 hinzugefügt
Some checks failed
Build Changelog and Release / release (push) Failing after 6s
2025-05-29 11:10:47 +02:00
697bed098c .chglog/CHANGELOG.tpl.md aktualisiert
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 11:08:06 +02:00
3bdc1064e4 .chglog/CHANGELOG.tpl.md aktualisiert
Some checks failed
Build Changelog and Release / release (push) Failing after 7s
2025-05-29 11:05:09 +02:00
674980cd67 .chglog/config.yml aktualisiert 2025-05-29 11:04:31 +02:00
4 changed files with 76 additions and 63 deletions

View File

@ -1,40 +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 }}) ## BlueMastoFeed {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
### test {{ if .CommitGroups }}
### Changes
{{ range .CommitGroups -}} {{ range .CommitGroups }}
### {{ .Title }} #### {{ .Title }}
{{ range .Commits }}
{{ range .Commits -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} {{ end }}
{{ end }} {{ end }}
{{ end -}}
{{- if .RevertCommits -}}
### Reverts
{{ range .RevertCommits -}}
* {{ .Revert.Header }}
{{ end }} {{ end }}
{{ end -}}
{{- if .MergeCommits -}} {{ if .MergeCommits }}
### Pull Requests ### Pull Requests
{{ range .MergeCommits -}} {{ range .MergeCommits }}
* {{ .Header }} - {{ .Header }}
{{ end }}
{{ end }} {{ end }}
{{ end -}}
{{- if .NoteGroups -}} {{ if .RevertCommits }}
{{ range .NoteGroups -}} ### Reverts
### {{ .Title }}
{{ range .RevertCommits }}
- {{ .Revert.Header }}
{{ end }}
{{ end }}
{{ if .NoteGroups }}
### Notes
{{ range .NoteGroups }}
#### {{ .Title }}
{{ range .Notes }} {{ range .Notes }}
{{ .Body }} - {{ .Body }}
{{ end }}
{{ end }}
{{ end }}
{{ end }} {{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

View File

@ -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

View File

@ -1,44 +1,43 @@
name: Build Changelog and Release name: Release
on: on:
push: push:
tags: tags:
- 'v*.*.*' - 'v*' # Reagiere auf Tags wie v1.0.0
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Go (required for git-chglog)
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install git-chglog - name: Install git-chglog
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 curl -sSL https://github.com/git-chglog/git-chglog/releases/latest/download/git-chglog_linux_amd64 -o git-chglog
chmod +x git-chglog
sudo mv git-chglog /usr/local/bin/ sudo mv git-chglog /usr/local/bin/
- name: Generate changelog - name: Generate CHANGELOG.md for current tag
run: | run: |
git-chglog $(git describe --tags --abbrev=0) > RELEASE_NOTES.md VERSION=$(git describe --tags --abbrev=0)
git-chglog -o CHANGELOG.md "$VERSION"
- name: Create Release on Gitea - name: Extract repository info
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
run: | run: |
TAG=$(git describe --tags) echo "REPO=${GITEA_REPOSITORY#*/}" >> $GITEA_ENV
REPO=${GITEA_REPOSITORY#*/} echo "OWNER=${GITEA_REPOSITORY%/*}" >> $GITEA_ENV
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" \
-d "{
\"tag_name\": \"$TAG\",
\"name\": \"$TAG\",
\"body\": $BODY,
\"draft\": false,
\"prerelease\": false
}"
- name: Create Gitea release
uses: https://gitea.com/actions/release-action@main
with:
api_key: ${{ secrets.TOKEN }}
owner: ${{ env.OWNER }}
repo: ${{ env.REPO }}
tag: ${{ github.ref_name }}
body_file: CHANGELOG.md

3
test1.txt Normal file
View File

@ -0,0 +1,3 @@
1
2