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

Closed
jmiller wants to merge 0 commits from dev into main
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 in all template repos + MokoCLI
  • Licensing API token scope: read:licensing / write:licensing scope for licensing endpoints
  • Workflow sync fixes: added workflow_dispatch trigger, fixed if-condition, added PHP install step

Key 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 in all template repos + MokoCLI - **Licensing API token scope**: `read:licensing` / `write:licensing` scope for licensing endpoints - **Workflow sync fixes**: added `workflow_dispatch` trigger, fixed if-condition, added PHP install step ## Key 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 2 commits 2026-06-25 17:36:02 +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
jmiller closed this pull request 2026-06-25 17:38:01 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.