Compare commits
107 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
386b81cd48
|
|||
|
f2f4392be4
|
|||
|
de7d5caba0
|
|||
|
375d47e0be
|
|||
|
1d49b5a208
|
|||
|
07e3a80db8
|
|||
|
de2e3b26b0
|
|||
|
d8068b40cb
|
|||
|
b6a28a0f5e
|
|||
|
ad63a33a8b
|
|||
|
89df683ec2
|
|||
|
99b86bcbc8
|
|||
|
6a4a60bfe4
|
|||
|
e33e4764c6
|
|||
|
8f1ef120cd
|
|||
|
477667f7dd
|
|||
|
88d2eed2c1
|
|||
|
5e29c5ade9
|
|||
|
471e61f177
|
|||
|
504f400789
|
|||
|
93c0dd120c
|
|||
| 2b3cbb4978 | |||
|
208356f9db
|
|||
|
95e5b61607
|
|||
|
ac1428a65e
|
|||
|
4a7553b68e
|
|||
|
faee4ab40f
|
|||
|
ce70420ce7
|
|||
|
bd1409e77b
|
|||
|
2de3086819
|
|||
|
61d7b1d8f7
|
|||
|
1d9e63a84c
|
|||
|
aedf49b0f3
|
|||
|
606aeb20d3
|
|||
|
8b9a94e28f
|
|||
|
11f252fb12
|
|||
|
3b5ebf6c27
|
|||
|
776f01a672
|
|||
|
eaebf686eb
|
|||
|
83b84d2687
|
|||
|
66b3b03290
|
|||
|
9e65f48123
|
|||
|
bd101f9e0a
|
|||
|
6a5fa42239
|
|||
|
b4a1f798bd
|
|||
|
e4be7f6516
|
|||
|
27118d5826
|
|||
| 3ea9d963b0 | |||
|
e945d38418
|
|||
|
013c0cdd88
|
|||
|
04e175dfb8
|
|||
| 30e3f59a11 | |||
|
2c25474f2e
|
|||
|
874a37f269
|
|||
|
ae9ccbf83e
|
|||
| a3ac272787 | |||
|
f3a00ccb1c
|
|||
|
87e2078b3c
|
|||
|
da8d686357
|
|||
| 4ea1898232 | |||
|
5b2472a391
|
|||
|
6505bf3bd5
|
|||
|
b02c906a79
|
|||
| 0922ad361e | |||
|
6a5b1d13a8
|
|||
|
9d12dee06b
|
|||
|
4ea8a21ad4
|
|||
| 5d87f69603 | |||
|
0fd17eaddb
|
|||
|
dbbef44530
|
|||
|
ded9df64b1
|
|||
| ce1d145b49 | |||
|
108afd6b19
|
|||
|
c65a5e8c15
|
|||
|
ab22aaacb3
|
|||
|
0ebe97a116
|
|||
|
87b5548690
|
|||
|
31c1e92935
|
|||
|
d771a60b9e
|
|||
|
943015b0a1
|
|||
| c59a710352 | |||
|
94eb4f63cb
|
|||
|
2ddb1fd386
|
|||
| 285811d18d | |||
| 3feaaff790 | |||
| 406fe1185b | |||
| c1acb90180 | |||
| 8f88f5ac4c | |||
| 0391802f1b | |||
| f642eb5b06 | |||
| 75f0bc3fef | |||
| 2cbfeaf6c1 | |||
| 22a2476194 | |||
| 342bb23a8a | |||
| 5d8e00c396 | |||
| 6d3d8da80c | |||
|
6b0c286749
|
|||
|
e8196f2e02
|
|||
| 2383627b93 | |||
| e17b15f9b8 | |||
|
c2829e51d2
|
|||
| 697bed098c | |||
| 3bdc1064e4 | |||
| 674980cd67 | |||
| ab724c7a4f | |||
| baf1dc59e3 | |||
| 0125f02699 |
@@ -1,14 +1,17 @@
|
|||||||
{{ range .Versions }}
|
{{ with index .Versions 0 }}
|
||||||
<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 }}
|
||||||
|
[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }})
|
||||||
### test
|
{{ else }}
|
||||||
|
{{ .Tag.Name }}
|
||||||
|
{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
|
||||||
|
|
||||||
{{ range .CommitGroups -}}
|
{{ range .CommitGroups -}}
|
||||||
### {{ .Title }}
|
### {{ .Title }}
|
||||||
|
|
||||||
{{ range .Commits -}}
|
{{ range .Commits -}}
|
||||||
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
||||||
|
[{{ .Hash | truncate 7 }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash }})
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
@@ -37,4 +40,4 @@
|
|||||||
{{ 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,53 +1,93 @@
|
|||||||
name: Build Changelog and Release
|
name: Create Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*' # Nur bei Tags wie v1.0.0, v2.0.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Enable debug output
|
||||||
uses: actions/checkout@v3
|
run: set -x
|
||||||
|
|
||||||
- name: Install git-chglog
|
- name: Checkout full history including tags
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
fetch-tags: true
|
||||||
|
|
||||||
|
- 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)
|
||||||
|
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: Setup Locale
|
- name: Determine current and previous tag
|
||||||
|
id: tags
|
||||||
run: |
|
run: |
|
||||||
sudo locale-gen en_US.UTF-8 || true
|
CURRENT_TAG="${GITHUB_REF##*/}"
|
||||||
export LANG=en_US.UTF-8
|
PREVIOUS_TAG=$(git describe --tags --abbrev=0 "${CURRENT_TAG}^" 2>/dev/null || true)
|
||||||
export LC_ALL=en_US.UTF-8
|
|
||||||
|
|
||||||
- name: Generate changelog
|
echo "CURRENT_TAG=$CURRENT_TAG"
|
||||||
|
echo "PREVIOUS_TAG=$PREVIOUS_TAG"
|
||||||
|
|
||||||
|
echo "CURRENT_TAG=$CURRENT_TAG" >> $GITHUB_ENV
|
||||||
|
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Generate CHANGELOG.md
|
||||||
|
run: |
|
||||||
|
# Optional: kompletter Changelog (nicht für Release-Body)
|
||||||
|
git-chglog -o CHANGELOG.md
|
||||||
|
|
||||||
|
# Nur der relevante Abschnitt zwischen Tags
|
||||||
|
if [ -n "$PREVIOUS_TAG" ]; then
|
||||||
|
git-chglog "$PREVIOUS_TAG..$CURRENT_TAG" > RELEASE_BODY.md
|
||||||
|
else
|
||||||
|
git-chglog "$CURRENT_TAG" > RELEASE_BODY.md
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Release changelog content:"
|
||||||
|
cat RELEASE_BODY.md
|
||||||
|
|
||||||
|
- name: Create Gitea Release via API
|
||||||
env:
|
env:
|
||||||
LANG: en_US.UTF-8
|
TOKEN: ${{ secrets.TOKEN }}
|
||||||
LC_ALL: en_US.UTF-8
|
OWNER: ${{ env.OWNER }}
|
||||||
|
REPO: ${{ env.REPO }}
|
||||||
|
CURRENT_TAG: ${{ env.CURRENT_TAG }}
|
||||||
run: |
|
run: |
|
||||||
git-chglog $(git describe --tags --abbrev=0) > RELEASE_NOTES.md
|
# Base64-encode und sicher escapen für JSON
|
||||||
|
BODY=$(base64 -w0 RELEASE_BODY.md)
|
||||||
|
DECODED_BODY=$(echo "$BODY" | base64 -d | jq -Rs .)
|
||||||
|
|
||||||
- name: Create Release on Gitea
|
echo "Creating release for tag $CURRENT_TAG"
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
|
||||||
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" \
|
curl -s -X POST "https://dev.ksite.de/api/v1/repos/${OWNER}/${REPO}/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": "${CURRENT_TAG}",
|
||||||
\"draft\": false,
|
"name": "${CURRENT_TAG}",
|
||||||
\"prerelease\": false
|
"body": ${DECODED_BODY}
|
||||||
}"
|
}
|
||||||
|
EOF
|
||||||
|
|||||||
77
README.md
77
README.md
@@ -4,5 +4,80 @@
|
|||||||
Das ist ein Test
|
Das ist ein Test
|
||||||
Test 01
|
Test 01
|
||||||
|
|
||||||
test 03
|
Test 03
|
||||||
|
|
||||||
|
Test 04
|
||||||
|
|
||||||
|
Test 05
|
||||||
|
|
||||||
|
Test 06
|
||||||
|
|
||||||
|
Test 07
|
||||||
|
|
||||||
|
dLlIj2EY
|
||||||
|
tR0o43E3
|
||||||
|
7eNev7oo
|
||||||
|
x3Gpbeek
|
||||||
|
kLtteV0j
|
||||||
|
VUKfUEJZ
|
||||||
|
ikA2H9a3
|
||||||
|
e3RCS218
|
||||||
|
XXFRCMIz
|
||||||
|
J5seL5Zg
|
||||||
|
fTe39pUu
|
||||||
|
cDZc6Ibn
|
||||||
|
Ifv2JztG
|
||||||
|
Lw7O38L4
|
||||||
|
ewY0zmF6
|
||||||
|
um3vnKHA
|
||||||
|
XBHbBQLK
|
||||||
|
pmkxkEqY
|
||||||
|
SnrTGYfO
|
||||||
|
st63VH3N
|
||||||
|
fplShaNq
|
||||||
|
DYDaz9Tr
|
||||||
|
8msBEIxm
|
||||||
|
mxNdbHzm
|
||||||
|
FUlNIQKk
|
||||||
|
nfMmqgR2
|
||||||
|
hT0eHTsv
|
||||||
|
VOfcmwh4
|
||||||
|
NSpeZu7J
|
||||||
|
UVjx6TQj
|
||||||
|
l8Hgk0XW
|
||||||
|
w12pw7xZ
|
||||||
|
SSgqTQLE
|
||||||
|
JCh80wIn
|
||||||
|
TDEZGpBC
|
||||||
|
YHCfK5DV
|
||||||
|
KexTNSMP
|
||||||
|
RkvODk4K
|
||||||
|
861uEy6f
|
||||||
|
5JMWa9i3
|
||||||
|
ThZEYUjn
|
||||||
|
Ijvpwkek
|
||||||
|
33ibipFg
|
||||||
|
11sK5cBR
|
||||||
|
LRyWVE5y
|
||||||
|
mE9aBNXB
|
||||||
|
2D7AuOhE
|
||||||
|
egoogksx
|
||||||
|
djK6QdEp
|
||||||
|
spY8Urh2
|
||||||
|
ojfoKm2n
|
||||||
|
BMV5qiY4
|
||||||
|
8tdpQolk
|
||||||
|
r719JiPt
|
||||||
|
eyz331ef
|
||||||
|
EEb56q5d
|
||||||
|
s7yMcd1e
|
||||||
|
8ix4vhr8
|
||||||
|
yVN07HR1
|
||||||
|
QWL9FePY
|
||||||
|
AdKhF1rn
|
||||||
|
7HzymPqy
|
||||||
|
85hfE7Un
|
||||||
|
YiKnfPp8
|
||||||
|
AxK2LTuK
|
||||||
|
gDCXl7AL
|
||||||
|
A8xzDwwB
|
||||||
|
|||||||
56
autopost.sh
Executable file
56
autopost.sh
Executable file
@@ -0,0 +1,56 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Sicherstellen, dass wir uns in einem Git-Repo befinden
|
||||||
|
if ! git rev-parse --is-inside-work-tree &>/dev/null; then
|
||||||
|
echo "Dieses Skript muss in einem Git-Repository ausgeführt werden."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
README_FILE="README.md"
|
||||||
|
|
||||||
|
# Aktuelles höchstes semver-Tag im Format vX.Y.Z finden
|
||||||
|
latest_tag=$(git tag | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -n 1)
|
||||||
|
|
||||||
|
if [[ $latest_tag =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
|
||||||
|
major=${BASH_REMATCH[1]}
|
||||||
|
# Version erhöhen (nur Major erhöhen, Minor & Patch = 0)
|
||||||
|
new_major=$((major + 1))
|
||||||
|
else
|
||||||
|
new_major=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
new_tag="v${new_major}.0.0"
|
||||||
|
|
||||||
|
# Drei zufällige Änderungen durchführen
|
||||||
|
#for i in {1..3}; do
|
||||||
|
# random_string=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8)
|
||||||
|
# echo "Zufallsstring $i: $random_string"
|
||||||
|
# echo "$random_string" >> "$README_FILE"
|
||||||
|
#
|
||||||
|
# git add "$README_FILE"
|
||||||
|
# git commit -m "feat($random_string): Auto-Update Zufallsstring $random_string"
|
||||||
|
# git push
|
||||||
|
#done
|
||||||
|
|
||||||
|
TYPES=(chore docs feat fix refactor style test)
|
||||||
|
|
||||||
|
for type in "${TYPES[@]}"; do
|
||||||
|
for i in {1..3}; do
|
||||||
|
random_string=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8)
|
||||||
|
echo "Zufallsstring $i für Typ '$type': $random_string"
|
||||||
|
echo "$random_string" >> "$README_FILE"
|
||||||
|
|
||||||
|
git add "$README_FILE"
|
||||||
|
git commit -m "$type($random_string): Auto-Update Zufallsstring $random_string"
|
||||||
|
git push
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# Tag erstellen und pushen
|
||||||
|
git tag "$new_tag"
|
||||||
|
git push origin "$new_tag"
|
||||||
|
|
||||||
|
echo "Fertig! Neues semver-Tag erstellt: $new_tag"
|
||||||
Reference in New Issue
Block a user