Compare commits

...
7 Commits
Author SHA1 Message Date
fraujulian 40404781a9 docs: replace GitHub references with Gitea
Build Validation / build (push) Successful in 57s
2026-07-22 22:43:05 +02:00
fraujulian be478902db chore(package): update repository URLs 2026-07-22 22:43:04 +02:00
fraujulian 8c842b15a2 chore(package): exclude Gitea metadata 2026-07-22 22:43:02 +02:00
fraujulian 60a607a39b ci(gitea): migrate release workflow 2026-07-22 22:43:01 +02:00
fraujulian 4a23b46e54 ci(gitea): migrate validation workflow 2026-07-22 22:42:59 +02:00
fraujulian 641065dc58 chore(gitea): remove GitHub-only metadata 2026-07-22 22:42:58 +02:00
fraujulian 0b30982f04 chore(gitea): migrate issue templates 2026-07-22 22:41:53 +02:00
15 changed files with 31 additions and 46 deletions

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -9,6 +9,7 @@ permissions:
env: env:
VERSION_MAJOR: '1' VERSION_MAJOR: '1'
VERSION_MINOR: '1' VERSION_MINOR: '1'
VERSION_PATCH: ${{ gitea.run_number }}
jobs: jobs:
build: build:
@@ -39,7 +40,7 @@ jobs:
id: release_version id: release_version
run: | run: |
package_version="$(node -p "require('./package.json').version")" package_version="$(node -p "require('./package.json').version")"
echo "tag=${package_version}" >> "$GITHUB_OUTPUT" echo "tag=${package_version}" >> "$GITEA_OUTPUT"
- name: Run Build - name: Run Build
run: npm run build run: npm run build
@@ -49,24 +50,29 @@ jobs:
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub release - name: Create Gitea release
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_API_URL: ${{ gitea.api_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_SHA: ${{ gitea.sha }}
RELEASE_TAG: v${{ steps.release_version.outputs.tag }} RELEASE_TAG: v${{ steps.release_version.outputs.tag }}
run: | run: |
git fetch --force --tags git fetch --force --tags
previous_tag="$(gh api repos/${{ github.repository }}/releases --paginate --jq '.[] | select(.draft == false) | .tag_name' | grep -Fxv "$RELEASE_TAG" | head -n 1 || true)" releases_url="${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases"
previous_tag="$(curl --fail --silent --show-error --header "Authorization: token ${GITEA_TOKEN}" "${releases_url}?limit=50" | jq -r --arg tag "$RELEASE_TAG" '[.[] | select(.draft == false and .tag_name != $tag)][0].tag_name // empty')"
if [ -n "$previous_tag" ]; then if [ -n "$previous_tag" ]; then
if git rev-parse --verify --quiet "${previous_tag}^{commit}" >/dev/null; then if git rev-parse --verify --quiet "${previous_tag}^{commit}" >/dev/null; then
commit_messages="$(git log --reverse --format='- %s' "${previous_tag}..${GITHUB_SHA}")" commit_messages="$(git log --reverse --format='- %s' "${previous_tag}..${GITEA_SHA}")"
else else
commit_messages="$(git log --reverse --format='- %s' "${GITHUB_SHA}")" commit_messages="$(git log --reverse --format='- %s' "${GITEA_SHA}")"
fi fi
full_changelog="https://github.com/${{ github.repository }}/compare/${previous_tag}...${RELEASE_TAG}" full_changelog="${GITEA_SERVER_URL}/${GITEA_REPOSITORY}/compare/${previous_tag}...${RELEASE_TAG}"
else else
commit_messages="$(git log --reverse --format='- %s' "${GITHUB_SHA}")" commit_messages="$(git log --reverse --format='- %s' "${GITEA_SHA}")"
full_changelog="" full_changelog=""
fi fi
@@ -84,8 +90,13 @@ jobs:
fi fi
} > release-notes.md } > release-notes.md
if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then jq -n --arg tag "$RELEASE_TAG" --arg target "$GITEA_SHA" --rawfile body release-notes.md \
gh release edit "$RELEASE_TAG" --title "$RELEASE_TAG" --notes-file release-notes.md '{tag_name: $tag, target_commitish: $target, name: $tag, body: $body, draft: false, prerelease: false}' > release.json
release_id="$(curl --silent --header "Authorization: token ${GITEA_TOKEN}" "${releases_url}/tags/${RELEASE_TAG}" | jq -r '.id // empty')"
if [ -n "$release_id" ]; then
curl --fail-with-body --request PATCH --header "Authorization: token ${GITEA_TOKEN}" --header 'Content-Type: application/json' --data @release.json "${releases_url}/${release_id}"
else else
gh release create "$RELEASE_TAG" --target "${GITHUB_SHA}" --title "$RELEASE_TAG" --notes-file release-notes.md curl --fail-with-body --request POST --header "Authorization: token ${GITEA_TOKEN}" --header 'Content-Type: application/json' --data @release.json "$releases_url"
fi fi
File renamed without changes.
-15
View File
@@ -1,15 +0,0 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: FrauJulian
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
-11
View File
@@ -1,11 +0,0 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: 'daily'
+1 -1
View File
@@ -1,4 +1,4 @@
.github .gitea
.git .git
.idea .idea
+4 -4
View File
@@ -1,8 +1,8 @@
# Discord Audio Stream # Discord Audio Stream
[![npm](https://img.shields.io/npm/dw/discord-audio-stream)](http://npmjs.org/package/discord-audio-stream) [![npm](https://img.shields.io/npm/dw/discord-audio-stream)](http://npmjs.org/package/discord-audio-stream)
![latest release](https://img.shields.io/badge/dynamic/json?label=release&query=$.name&url=https%3A%2F%2Fapi.github.com%2Frepos%2FFrauJulian%2Fdiscord-audio-stream%2Freleases%2Flatest&color=blue) ![latest release](https://img.shields.io/gitea/v/release/FrauJulian/Discord-Audio-Stream?gitea_url=https%3A%2F%2Fgit.lechner-systems.at&color=blue)
![GitHub Repo stars](https://img.shields.io/github/stars/FrauJulian/discord-audio-stream?style=social) ![Gitea Repo stars](https://img.shields.io/gitea/stars/FrauJulian/Discord-Audio-Stream?gitea_url=https%3A%2F%2Fgit.lechner-systems.at&style=social)
`discord-audio-stream` is a small TypeScript library for managed Discord voice playback through `discord-audio-stream` is a small TypeScript library for managed Discord voice playback through
`@discordjs/voice` and ffmpeg. `@discordjs/voice` and ffmpeg.
@@ -13,7 +13,7 @@ reused.
## Support ## Support
Create an [issue](https://github.com/FrauJulian/Discord-Audio-Stream/issues) on GitHub or contact Create an [issue](https://git.lechner-systems.at/FrauJulian/Discord-Audio-Stream/issues) on Gitea or contact
[`fraujulian`](https://discord.com/users/860206216893693973) on Discord. [`fraujulian`](https://discord.com/users/860206216893693973) on Discord.
## Installation ## Installation
@@ -204,4 +204,4 @@ npm run build
## Enjoy the package? ## Enjoy the package?
Give it a star on [GitHub](https://github.com/FrauJulian/discord-audio-stream)! Give it a star on [Gitea](https://git.lechner-systems.at/FrauJulian/Discord-Audio-Stream)!
+1 -1
View File
@@ -14,7 +14,7 @@ If a vulnerability is fixed, the fix will generally be released only for the cur
## Reporting a Vulnerability ## Reporting a Vulnerability
Do not open a public GitHub issue for security vulnerabilities. Do not open a public Gitea issue for security vulnerabilities.
Report vulnerabilities privately by email to `fraujulian@lechner.top`. Report vulnerabilities privately by email to `fraujulian@lechner.top`.
+2 -2
View File
@@ -43,9 +43,9 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/FrauJulian/Discord-Audio-Stream.git" "url": "git+https://git.lechner-systems.at/FrauJulian/Discord-Audio-Stream.git"
}, },
"bugs": "https://github.com/FrauJulian/Discord-Audio-Stream/issues", "bugs": "https://git.lechner-systems.at/FrauJulian/Discord-Audio-Stream/issues",
"funding": "https://ko-fi.com/FrauJulian", "funding": "https://ko-fi.com/FrauJulian",
"keywords": [ "keywords": [
"discord", "discord",
+1 -1
View File
@@ -76,7 +76,7 @@ function fixPlaceholder() {
function getCiVersion() { function getCiVersion() {
const major = process.env.VERSION_MAJOR; const major = process.env.VERSION_MAJOR;
const minor = process.env.VERSION_MINOR; const minor = process.env.VERSION_MINOR;
const patch = process.env.VERSION_PATCH ?? process.env.GITHUB_RUN_NUMBER; const patch = process.env.VERSION_PATCH;
const segments = { major, minor, patch }; const segments = { major, minor, patch };
for (const [name, value] of Object.entries(segments)) { for (const [name, value] of Object.entries(segments)) {