33 Commits

Author SHA1 Message Date
8ce5c1aa1b Merge pull request 'feature: added stuff' (#3) from branch1 into master
This PR introduces a new authentication middleware to validate JWT tokens for protected routes. The middleware ensures that only authenticated users can access secured endpoints.

Changes Made

Added authMiddleware.js to handle JWT verification
Integrated middleware into protected API routes
Added error handling for expired/invalid tokens
Updated environment configuration for JWT secret
2026-02-24 16:36:21 +08:00
4174857ccd Merge branch 'master' into branch1 2026-02-24 16:34:07 +08:00
Tim
aefcd96f8c added stuff 2026-02-24 16:29:37 +08:00
a02212374f Update .gitea/workflows/release.yaml 2026-02-24 16:26:46 +08:00
Tim
0cccf1870e mega patch
Some checks failed
release / release (push) Failing after 1m29s
2026-02-24 16:23:12 +08:00
5edda37114 Update .gitea/workflows/release.yaml 2026-02-24 16:19:18 +08:00
Tim Basten
2b75a624fd feature: This is a mega update
Some checks failed
release / release (push) Failing after 18s
2026-02-06 13:29:40 +08:00
Tim Basten
00242568d0 feature: This is a mega update
Some checks failed
release / release (push) Failing after 3s
2026-02-06 13:28:51 +08:00
Tim Basten
b1650a1738 feature: This is a mega update
Some checks failed
release / release (push) Failing after 4s
2026-02-06 13:27:02 +08:00
Tim Basten
02634dca9b feature: This is a mega update
All checks were successful
release / release (push) Successful in 8s
2026-02-06 12:49:14 +08:00
Tim Basten
90e5ff4b52 feature: This is a mega update
All checks were successful
release / release (push) Successful in 7s
2026-02-06 12:20:38 +08:00
Tim Basten
2902fd0f90 feature: This is a mega update
All checks were successful
release / release (push) Successful in 9s
2026-02-06 12:18:39 +08:00
Tim Basten
4fe21b0430 feature: This is a mega update
All checks were successful
release / release (push) Successful in 6s
2026-02-06 12:16:33 +08:00
Tim Basten
30cc00ca8f feature: This is a mega update
All checks were successful
release / release (push) Successful in 6s
2026-02-06 12:13:49 +08:00
Tim Basten
1b65438e71 feature: This is a mega update
All checks were successful
release / release (push) Successful in 7s
2026-02-06 12:09:48 +08:00
Tim Basten
bbaf5af45c feature: This is a mega update
All checks were successful
release / release (push) Successful in 7s
2026-02-06 12:04:24 +08:00
Tim Basten
3ae14fb1fd Another feature
All checks were successful
release / release (push) Successful in 7s
2026-02-06 11:52:18 +08:00
Tim Basten
5dd6aeb737 Another feature
Some checks failed
release / release (push) Failing after 15s
2026-02-06 11:44:04 +08:00
Tim Basten
307c1bb715 your message
Some checks failed
release / release (push) Failing after 5s
2026-02-06 11:39:23 +08:00
Tim Basten
22e64b6dec feature: add changelog builder
Some checks failed
release / release (push) Failing after 18s
2026-02-06 11:32:23 +08:00
873a4c5237 feature: test-feature 1 (#2)
All checks were successful
release / release (push) Successful in 4s
This feature introduces cool stuff
2026-02-06 11:27:01 +08:00
Tim Basten
ea0511ae49 feature: update 2026-02-06 11:22:14 +08:00
Tim Basten
e9235bb816 update 2026-02-06 11:21:28 +08:00
Tim Basten
888cae3db2 update
All checks were successful
release / release (push) Successful in 5s
2026-02-06 11:20:01 +08:00
Tim Basten
78253e9314 update
Some checks failed
release / release (push) Failing after 3s
2026-02-06 11:14:45 +08:00
Tim Basten
77662b71d2 update
Some checks failed
release / release (push) Failing after 3s
2026-02-06 11:14:02 +08:00
Tim Basten
207f392e80 update
Some checks failed
release / release (push) Failing after 2s
2026-02-06 11:10:57 +08:00
Tim Basten
507a24eb3d update
Some checks failed
Release / release (push) Failing after 2s
2026-02-06 11:06:57 +08:00
4282359e54 Update .gitea/workflows/release.yaml
Some checks failed
release / release (push) Has been cancelled
2026-02-06 11:01:45 +08:00
6d46193f5d Update .gitea/workflows/release.yaml 2026-02-06 11:00:13 +08:00
b8c6ba1355 Update .gitea/workflows/release.yaml
Some checks failed
Release / release (push) Failing after 2s
2026-02-06 10:40:10 +08:00
ef26a9d8ae Merge pull request 'Add .gitea/workflows/release.yaml' (#1) from release into master
Reviewed-on: #1
2026-02-06 10:35:57 +08:00
38adaa07ae Add .gitea/workflows/release.yaml 2026-02-06 10:34:53 +08:00
5 changed files with 143 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
name: release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Install go-gitea/changelog
run: |
wget https://dl.gitea.com/changelog-tool/main/changelog-main-linux-amd64
chmod +x changelog-main-linux-amd64
sudo mv changelog-main-linux-amd64 /usr/local/bin/changelog
- name: Generate changelog
id: changelog
run: |
VERSION="${GITHUB_REF_NAME}"
changelog generate -t="${VERSION}" -c="${GITHUB_WORKSPACE}/changelog.yml" > CHANGELOG.md
echo "changelog<<EOF" >> $GITHUB_OUTPUT
cat CHANGELOG.md >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Generate changelog
id: changelog
env:
CHANGELOG_TOKEN: ${{ secrets.CHANGELOG_TOKEN }}
run: #|
VERSION="${GITHUB_REF_NAME}"
changelog generate \
-t="${VERSION}" \
-m="${VERSION}" \
-c="${GITHUB_WORKSPACE}/changelog.yml" \
--token="${CHANGELOG_TOKEN}" > CHANGELOG.md
echo "changelog<<EOF" >> $GITHUB_OUTPUT
cat CHANGELOG.md >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: "Build Changelog"
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v6.1.0
- name: Create Gitea Release
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.GITEA_TOKEN }}
tag_name: ${{ gitea.ref_name }}
name: ${{ gitea.ref_name }}
body: ${{ steps.changelog.outputs.changelog }}

63
changelog.yml Normal file
View File

@@ -0,0 +1,63 @@
# The full repository name
repo: timmybee/test-release-merging
# Service type (gitea or github)
service: gitea
# Base URL for Gitea instance if using gitea service type (optional)
# Default: https://gitea.com
base-url: https://git.timmybee.xyz
groups:
-
name: BREAKING
labels:
- pr/breaking
-
name: FEATURES
labels:
- type/feature
-
name: API
labels:
- modifies/api
-
name: BUGFIXES
labels:
- type/bug
-
name: ENHANCEMENTS
labels:
- type/enhancement
- type/refactoring
- topic/ui
- topic/ui-interaction
- performance/speed
-
name: SECURITY
labels:
- topic/security
-
name: TESTING
labels:
- type/testing
-
name: TRANSLATION
labels:
- modifies/translation
-
name: BUILD
labels:
- topic/build
- topic/code-linting
-
name: DOCS
labels:
- type/docs
- modifies/docs
-
name: MISC
default: true
# regex indicating which labels to skip for the changelog
skip-labels: skip-changelog|backport\/.+

17
release Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
VERSION="$1"
MESSAGE="$2"
if [ -z "$VERSION" ] || [ -z "$MESSAGE" ]; then
echo "Usage: $0 <version> <commit message>"
exit 1
fi
git add .
git commit -m "$MESSAGE"
git tag -a "$VERSION" -m "$VERSION"
git push
git push --tags

View File

@@ -1 +1 @@
1 t;dosifnvposdifnv1

1
test2.yml Normal file
View File

@@ -0,0 +1 @@
sdf