diff --git a/.forgejo/workflows/release.yml b/.gitea/workflows/release.yml similarity index 81% rename from .forgejo/workflows/release.yml rename to .gitea/workflows/release.yml index 4c78c5b..073a0a9 100644 --- a/.forgejo/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -6,13 +6,13 @@ on: jobs: release: - runs-on: codeberg-small + runs-on: fedora steps: - - uses: https://data.forgejo.org/actions/checkout@v4 + - uses: actions/checkout@v4 - name: Verify tag and extract CHANGELOG section env: - VERSION: ${{ forgejo.ref_name }} + VERSION: ${{ gitea.ref_name }} run: | set -euo pipefail @@ -40,7 +40,7 @@ jobs: - name: Create release env: - FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }} + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: | set -euo pipefail @@ -56,13 +56,13 @@ jobs: BODY="\"${BODY}\"" response=$(curl -sS -w '\n%{http_code}' \ - -H "Authorization: token ${FORGEJO_TOKEN}" \ + -H "Authorization: token ${GITEA_TOKEN}" \ -H "Content-Type: application/json" \ -X POST \ - "${FORGEJO_SERVER_URL}/api/v1/repos/${FORGEJO_REPOSITORY}/releases" \ + "${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases" \ -d "{ - \"tag_name\": \"${FORGEJO_REF_NAME}\", - \"name\": \"${FORGEJO_REF_NAME}\", + \"tag_name\": \"${GITEA_REF_NAME}\", + \"name\": \"${GITEA_REF_NAME}\", \"body\": ${BODY}, \"draft\": false, \"prerelease\": false @@ -78,4 +78,4 @@ jobs: fi RELEASE_ID=$(echo "$payload" | grep -oE '"id"[[:space:]]*:[[:space:]]*[0-9]+' | head -1 | grep -oE '[0-9]+') - echo "Release ${FORGEJO_REF_NAME} is live (ID=${RELEASE_ID})." + echo "Release ${GITEA_REF_NAME} is live (ID=${RELEASE_ID})." diff --git a/.forgejo/workflows/test.yml b/.gitea/workflows/test.yml similarity index 73% rename from .forgejo/workflows/test.yml rename to .gitea/workflows/test.yml index 579490f..308700c 100644 --- a/.forgejo/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -8,11 +8,11 @@ on: jobs: vet: - runs-on: codeberg-small + runs-on: fedora steps: - - uses: https://data.forgejo.org/actions/checkout@v4 + - uses: actions/checkout@v4 - - uses: https://data.forgejo.org/actions/setup-go@v5 + - uses: actions/setup-go@v5 with: go-version: "1.26" @@ -30,12 +30,12 @@ jobs: run: go vet ./... test: - runs-on: codeberg-small + runs-on: fedora needs: vet steps: - - uses: https://data.forgejo.org/actions/checkout@v4 + - uses: actions/checkout@v4 - - uses: https://data.forgejo.org/actions/setup-go@v5 + - uses: actions/setup-go@v5 with: go-version: "1.26" @@ -46,12 +46,12 @@ jobs: run: go build ./examples/... toml-test: - runs-on: codeberg-small + runs-on: fedora needs: vet steps: - - uses: https://data.forgejo.org/actions/checkout@v4 + - uses: actions/checkout@v4 - - uses: https://data.forgejo.org/actions/setup-go@v5 + - uses: actions/setup-go@v5 with: go-version: "1.26" diff --git a/CHANGELOG.md b/CHANGELOG.md index d66203c..7f199e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to **interpres** are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] — 2026-07-26 + +### Changed + +- **Project** + - Migrate from Codeberg to sourcedock.dev (module path, imports, CI). + ## [1.1.0] — 2026-06-26 Adds TOML emission to the previously read-only library, completing the @@ -88,3 +95,7 @@ the standard library and passes the entire JSON on stdout). - A runnable example, a Go test suite, and a `just` task set (`install`, `run`, `build`, `test`, `coverage`, `uninstall`). + +[1.1.1]: https://sourcedock.dev/petrbalvin/interpres/releases/tag/v1.1.1 +[1.1.0]: https://codeberg.org/petrbalvin/interpres/releases/tag/v1.1.0 +[1.0.0]: https://codeberg.org/petrbalvin/interpres/releases/tag/v1.0.0 diff --git a/README.md b/README.md index 854e162..d3b1575 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Go programs that still want their configuration in TOML. ## Install ```sh -go get codeberg.org/petrbalvin/interpres +go get sourcedock.dev/petrbalvin/interpres ``` Requires Go 1.26 or newer. The module imports only the standard library. @@ -27,7 +27,7 @@ package main import ( "fmt" - "codeberg.org/petrbalvin/interpres" + "sourcedock.dev/petrbalvin/interpres" ) type Config struct { diff --git a/cmd/interpres-decode/main.go b/cmd/interpres-decode/main.go index af05534..fffcbc0 100644 --- a/cmd/interpres-decode/main.go +++ b/cmd/interpres-decode/main.go @@ -16,7 +16,7 @@ import ( "strconv" "time" - "codeberg.org/petrbalvin/interpres" + "sourcedock.dev/petrbalvin/interpres" ) func main() { diff --git a/examples/basic/main.go b/examples/basic/main.go index 9a5926c..be1b1a6 100644 --- a/examples/basic/main.go +++ b/examples/basic/main.go @@ -6,7 +6,7 @@ import ( "fmt" "log" - "codeberg.org/petrbalvin/interpres" + "sourcedock.dev/petrbalvin/interpres" ) const document = ` diff --git a/go.mod b/go.mod index 0d9271b..438cc74 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module codeberg.org/petrbalvin/interpres +module sourcedock.dev/petrbalvin/interpres go 1.26