Compare commits

..

25 Commits

Author SHA1 Message Date
0391802f1b .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 12:19:23 +02:00
f642eb5b06 .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 7s
2025-05-29 12:11:29 +02:00
75f0bc3fef .gitea/workflows/release.yml aktualisiert
Some checks failed
Create Release / release (push) Failing after 9s
2025-05-29 12:10:08 +02:00
2cbfeaf6c1 .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 7s
2025-05-29 12:05:36 +02:00
22a2476194 .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 12:03:01 +02:00
342bb23a8a .gitea/workflows/release.yml aktualisiert
Some checks failed
Create Release / release (push) Failing after 8s
2025-05-29 11:57:38 +02:00
5d8e00c396 .gitea/workflows/release.yml aktualisiert
Some checks failed
Create Release / release (push) Failing after 10s
2025-05-29 11:53:51 +02:00
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
ab724c7a4f UTF icons entfernt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:52:05 +02:00
baf1dc59e3 utf packet entfernt 2025-05-29 10:51:34 +02:00
0125f02699 utf packet hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 3m0s
2025-05-29 10:45:38 +02:00
a1328dc32e locale gen hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:39:14 +02:00
733f16c90c lang geändert
All checks were successful
Build Changelog and Release / release (push) Successful in 10s
2025-05-29 10:34:50 +02:00
034b3208c6 icon
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:27:26 +02:00
623ef5dc12 demo
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:22:31 +02:00
4fc79db1c4 .chglog/CHANGELOG.tpl.md aktualisiert 2025-05-29 10:18:36 +02:00
08121dec64 ci(log): Login Funktion hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 00:44:09 +02:00
5 changed files with 97 additions and 68 deletions

View File

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

View File

@ -1,28 +1,37 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://dev.ksite.de/ralf.kirchner/demo
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
sort_by: "date" # Optional, default is OK too
exclude_merge_commits: false
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
group_by: "Type"
title_maps:
feat: Features
fix: Bug Fixes
perf: Performance Improvements
refactor: Code Refactoring
docs: Documentation
chore: Maintenance
test: Tests
build: Build System
ci: Continuous Integration
style: Code Style
header:
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
- BREAKING CHANGE
- DEPRECATED

View File

@ -1,44 +1,73 @@
name: Build Changelog and Release
name: Create Release
on:
push:
tags:
- 'v*.*.*'
- 'v*' # Nur bei Tags wie v1.0.0
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Enable debug output
run: |
set -x
- name: Checkout source
uses: actions/checkout@v3
- name: Install git-chglog
- name: Show environment variables for debugging
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/
- name: Generate changelog
run: |
git-chglog $(git describe --tags --abbrev=0) > RELEASE_NOTES.md
- name: Show git-chglog version
run: git-chglog --version
- 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:
GITEA_TOKEN: ${{ secrets.TOKEN }}
TOKEN: ${{ secrets.TOKEN }}
OWNER: ${{ env.OWNER }}
REPO: ${{ env.REPO }}
TAG: ${GITHUB_REF##*/}
run: |
TAG=$(git describe --tags)
REPO=${GITEA_REPOSITORY#*/}
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" \
echo "Creating release for tag $TAG in repo $OWNER/$REPO"
curl -X POST "https://dev.ksite.de/api/v1/repos/${OWNER}/${REPO}/releases" \
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"$TAG\",
\"name\": \"$TAG\",
\"body\": $BODY,
\"draft\": false,
\"prerelease\": false
}"
-H "Authorization: token $TOKEN" \
-d @- <<EOF
{
"tag_name": "${TAG}",
"name": "${TAG}",
"body": "$(sed 's/"/\\"/g' CHANGELOG.md)"
}
EOF

View File

@ -3,6 +3,6 @@
## Test
Das ist ein Test
Test 01
test 02
test 03

3
test1.txt Normal file
View File

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