mirror of
https://github.com/hanzoai/forge.git
synced 2026-10-30 15:00:39 +00:00
Every identifier this project owns is renamed Gitea -> Git: GiteaContext,
GiteaLogger, GiteaBackend, GiteaSiteURL, GiteaUpdateChecker, GiteaLocalUploader,
onGiteaRun (168 call sites), the gitea_context / gitea_ctx / gitea_html /
gitealog / giteautil import aliases, the template and lock and test-root
helpers. Files follow: gitea_uploader.go -> git_uploader.go, the devtest
template and its route, tests/gitea-{repositories,lfs}-meta.
Two collisions had to be named rather than mapped:
PullRequestGitea -> PullRequestNative. PullRequestGit already exists and
means the AGit push flow; this constant is the PR created in the forge. It is
an iota, so the stored value is unchanged.
GiteaHooks{New,Edit}Post -> NativeHooks{New,Edit}Post. GitHooks{Edit}Post
already exists and means the pre-receive hook editor; these are the webhook
provider handlers, which is a different thing on a nearby route.
Deliberately NOT renamed, because renaming would make them lie:
GiteaDownloader / NewGiteaDownloader / GiteaDownloaderFactory / gitea_sdk /
convertGiteaLabel / gitea_downloader.go — these migrate repositories FROM an
external Gitea instance and sit beside GitlabDownloader and GogsDownloader.
The name is the service, not our branding.
RenameGiteaThemesToHanzo — a migration whose entire job is legacy gitea theme
values.
tests/integration/migration-test/gitea-v1.6.*.sql.gz — real dumps of real
Gitea releases, used to test upgrading from them.
Build, vet, the integration compile gate, and models/modules/services/routers
all green.
Co-authored-by: Hanzo Dev <[email protected]>
144 lines
4.1 KiB
YAML
144 lines
4.1 KiB
YAML
name: files-changed
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
backend:
|
|
value: ${{ jobs.detect.outputs.backend }}
|
|
frontend:
|
|
value: ${{ jobs.detect.outputs.frontend }}
|
|
docs:
|
|
value: ${{ jobs.detect.outputs.docs }}
|
|
actions:
|
|
value: ${{ jobs.detect.outputs.actions }}
|
|
templates:
|
|
value: ${{ jobs.detect.outputs.templates }}
|
|
docker:
|
|
value: ${{ jobs.detect.outputs.docker }}
|
|
dockerfile:
|
|
value: ${{ jobs.detect.outputs.dockerfile }}
|
|
swagger:
|
|
value: ${{ jobs.detect.outputs.swagger }}
|
|
yaml:
|
|
value: ${{ jobs.detect.outputs.yaml }}
|
|
json:
|
|
value: ${{ jobs.detect.outputs.json }}
|
|
e2e:
|
|
value: ${{ jobs.detect.outputs.e2e }}
|
|
shell:
|
|
value: ${{ jobs.detect.outputs.shell }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
detect:
|
|
runs-on: hanzo-build-linux-amd64
|
|
timeout-minutes: 3
|
|
outputs:
|
|
backend: ${{ steps.changes.outputs.backend }}
|
|
frontend: ${{ steps.changes.outputs.frontend }}
|
|
docs: ${{ steps.changes.outputs.docs }}
|
|
actions: ${{ steps.changes.outputs.actions }}
|
|
templates: ${{ steps.changes.outputs.templates }}
|
|
docker: ${{ steps.changes.outputs.docker }}
|
|
dockerfile: ${{ steps.changes.outputs.dockerfile }}
|
|
swagger: ${{ steps.changes.outputs.swagger }}
|
|
yaml: ${{ steps.changes.outputs.yaml }}
|
|
json: ${{ steps.changes.outputs.json }}
|
|
e2e: ${{ steps.changes.outputs.e2e }}
|
|
shell: ${{ steps.changes.outputs.shell }}
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
|
|
- uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
backend:
|
|
- "**/*.go"
|
|
- "templates/**/*.tmpl"
|
|
- "assets/emoji.json"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- "Makefile"
|
|
- ".golangci.yml"
|
|
- ".editorconfig"
|
|
- "options/locale/locale_en-US.json"
|
|
- "models/fixtures/**"
|
|
- "tests/*.ini.tmpl"
|
|
- "tests/git-repositories-meta/**"
|
|
- "tests/testdata/**"
|
|
- "tools/test-integration.sh"
|
|
|
|
frontend:
|
|
- "*.ts"
|
|
- "web_src/**"
|
|
- "tools/generate-svg.ts"
|
|
- "tools/generate-svg-vscode-extensions.json"
|
|
- "tsconfig.json"
|
|
- "assets/emoji.json"
|
|
- "package.json"
|
|
- "pnpm-lock.yaml"
|
|
- "pnpm-workspace.yaml"
|
|
- "Makefile"
|
|
|
|
docs:
|
|
- "**/*.md"
|
|
- ".markdownlint.yaml"
|
|
- "package.json"
|
|
- "pnpm-lock.yaml"
|
|
- "pnpm-workspace.yaml"
|
|
|
|
actions:
|
|
- ".hanzo/workflows/*"
|
|
- ".github/workflows/*"
|
|
- ".github/actions/**"
|
|
- "Makefile"
|
|
|
|
templates:
|
|
- "tools/lint-templates-*.ts"
|
|
- "templates/**/*.tmpl"
|
|
- "pyproject.toml"
|
|
- "uv.lock"
|
|
|
|
docker:
|
|
- ".hanzo/workflows/pull-docker-dryrun.yml"
|
|
- ".github/actions/docker-dryrun/**"
|
|
- "Dockerfile"
|
|
- "Dockerfile.rootless"
|
|
- "docker/**"
|
|
- "Makefile"
|
|
|
|
dockerfile:
|
|
- "Dockerfile"
|
|
- "Dockerfile.rootless"
|
|
|
|
swagger:
|
|
- "templates/swagger/v1_json.tmpl"
|
|
- "templates/swagger/v1_input.json"
|
|
- "Makefile"
|
|
- "package.json"
|
|
- "pnpm-lock.yaml"
|
|
- "pnpm-workspace.yaml"
|
|
- ".spectral.yaml"
|
|
|
|
yaml:
|
|
- "**/*.yml"
|
|
- "**/*.yaml"
|
|
- ".yamllint.yaml"
|
|
- "pyproject.toml"
|
|
|
|
json:
|
|
- "**/*.json"
|
|
- "**/*.json5"
|
|
- "eslint.json.config.ts"
|
|
|
|
e2e:
|
|
- "tests/e2e/**"
|
|
- "tools/test-e2e.sh"
|
|
- "playwright.config.ts"
|
|
|
|
shell:
|
|
- "**/*.sh"
|
|
- ".shellcheckrc"
|