release: token scope editing, ci-reporter refactor, workflow standardization #703

Merged
jmiller merged 5 commits from dev into main 2026-06-25 19:44:22 +00:00
Owner

Summary

  • API token scope editing: PATCH /users/{username}/tokens/{id} endpoint + web UI edit button for modifying token scopes after creation
  • CI issue reporter centralized: moved automation/ci-issue-reporter.sh to MokoCLI (cli/ci_issue_reporter.sh), created ci-issue-reporter.yml reusable workflow in all 5 template repos
  • Workflow token standardization: renamed all GA_TOKEN/GITEA_TOKEN/GITEA_URL env vars to MOKOGITEA_TOKEN/MOKOGITEA_URL across 65+ workflow files
  • Licensing API token scope: read:licensing / write:licensing scope for licensing endpoints
  • Workflow sync fixes: workflow_dispatch trigger, if-condition fix, PHP install step

Changes

  • routers/api/v1/user/app.go — PATCH endpoint for token scope editing with ownership verification
  • routers/web/user/setting/applications.go — Web UI handler for scope editing modal
  • .mokogitea/workflows/pr-check.yml — uses ci-issue-reporter.yml reusable workflow
  • .mokogitea/workflows/repo-health.yml — split into report-scripts + report-health reusable workflow calls
  • automation/ci-issue-reporter.sh — deleted (moved to MokoCLI)

Test plan

  • Verify token scope editing via API (PATCH endpoint)
  • Verify token scope editing via web UI (edit button in settings)
  • Verify empty scope update returns 400
  • Verify ci-issue-reporter reusable workflow fires on CI failure
  • Verify licensing scope gates licensing API endpoints
## Summary - **API token scope editing**: PATCH `/users/{username}/tokens/{id}` endpoint + web UI edit button for modifying token scopes after creation - **CI issue reporter centralized**: moved `automation/ci-issue-reporter.sh` to MokoCLI (`cli/ci_issue_reporter.sh`), created `ci-issue-reporter.yml` reusable workflow in all 5 template repos - **Workflow token standardization**: renamed all `GA_TOKEN`/`GITEA_TOKEN`/`GITEA_URL` env vars to `MOKOGITEA_TOKEN`/`MOKOGITEA_URL` across 65+ workflow files - **Licensing API token scope**: `read:licensing` / `write:licensing` scope for licensing endpoints - **Workflow sync fixes**: `workflow_dispatch` trigger, if-condition fix, PHP install step ## Changes - `routers/api/v1/user/app.go` — PATCH endpoint for token scope editing with ownership verification - `routers/web/user/setting/applications.go` — Web UI handler for scope editing modal - `.mokogitea/workflows/pr-check.yml` — uses `ci-issue-reporter.yml` reusable workflow - `.mokogitea/workflows/repo-health.yml` — split into `report-scripts` + `report-health` reusable workflow calls - `automation/ci-issue-reporter.sh` — deleted (moved to MokoCLI) ## Test plan - [ ] Verify token scope editing via API (PATCH endpoint) - [ ] Verify token scope editing via web UI (edit button in settings) - [ ] Verify empty scope update returns 400 - [ ] Verify ci-issue-reporter reusable workflow fires on CI failure - [ ] Verify licensing scope gates licensing API endpoints
jmiller added 3 commits 2026-06-25 17:42:25 +00:00
refactor: move ci-issue-reporter to MokoCLI, use reusable workflow
Universal: Auto Version Bump / Version Bump (push) Successful in 10s
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
PR RC Release / Build RC Release (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 6s
Universal: PR Check / Secret Scan (pull_request) Successful in 33s
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
86e1db1dc8
Moved automation/ci-issue-reporter.sh to MokoCLI (cli/ci_issue_reporter.sh)
as a centralized CLI tool. pr-check and repo-health now call the new
ci-issue-reporter.yml reusable workflow instead of sparse-checkout + inline.
Merge pull request 'refactor: centralize ci-issue-reporter into MokoCLI + reusable workflow' (#701) from feature/edit-token-scopes into dev
Universal: Auto Version Bump / Version Bump (push) Has been skipped
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 28s
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Universal: PR Check / Validate PR (pull_request) Failing after 8s
Universal: PR Check / Secret Scan (pull_request) Failing after 1m17s
PR RC Release / Build RC Release (pull_request) Failing after 1m17s
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Has been skipped
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
6131739e39
merge: incorporate workflow sync from main into dev
Universal: Auto Version Bump / Version Bump (push) Successful in 12s
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Universal: PR Check / Validate PR (pull_request) Failing after 8s
PR RC Release / Build RC Release (pull_request) Failing after 38s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 49s
Deploy MokoGitea (Dev) / Build & Deploy to Dev (push) Failing after 1m10s
Universal: PR Check / Secret Scan (pull_request) Successful in 54s
Universal: Build & Release / Promote to RC (pull_request) Failing after 11s
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
03547194a4
Resolved conflicts in pr-check.yml and repo-health.yml by keeping
the reusable workflow pattern from the feature branch (the workflow
sync ran before the Template-Generic update).
jmiller added 1 commit 2026-06-25 17:48:01 +00:00
jmiller added 1 commit 2026-06-25 17:48:08 +00:00
fix: sync repo-health.yml from Template-Generic (MOKOGITEA_URL + reusable workflow) [skip ci]
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Failing after 1m21s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 7m45s
02ff660912
jmiller merged commit a25a673d0c into main 2026-06-25 19:44:22 +00:00
Sign in to join this conversation.