refactor: centralize ci-issue-reporter into MokoCLI + reusable workflow #701

Merged
jmiller merged 17 commits from feature/edit-token-scopes into dev 2026-06-25 17:35:29 +00:00
Owner

Summary

  • Moved automation/ci-issue-reporter.sh to MokoCLI (cli/ci_issue_reporter.sh) as centralized CLI tool
  • Created ci-issue-reporter.yml reusable workflow (workflow_call) in all 5 template repos
  • Updated pr-check.yml and repo-health.yml to use the reusable workflow instead of sparse-checkout + inline script
  • Standardized env var names (GITEA_TOKEN/GITEA_URLMOKOGITEA_TOKEN/MOKOGITEA_URL) across 65+ workflow files
  • Added API token scope editing (PATCH endpoint + web UI edit button)
  • Fixed empty scope update returning 200 instead of 400

Changes

  • .mokogitea/workflows/pr-check.yml — replaced 19-line inline reporter job with uses: ./.mokogitea/workflows/ci-issue-reporter.yml
  • .mokogitea/workflows/repo-health.yml — replaced 30-line inline reporter job with two declarative reusable workflow calls (report-scripts + report-health)
  • automation/ci-issue-reporter.shdeleted (moved to MokoCLI)
  • CHANGELOG.md — added entries under Changed and Removed
  • README.md — added API Token Scope Editing feature, fixed formatting

Test plan

  • Verify ci-issue-reporter.yml reusable workflow exists in all 5 template repos
  • Verify cli/ci_issue_reporter.sh exists in MokoCLI
  • Trigger a PR check failure to confirm the reusable workflow reports issues correctly
  • Confirm workflow sync propagates ci-issue-reporter.yml to downstream repos
## Summary - Moved `automation/ci-issue-reporter.sh` to MokoCLI (`cli/ci_issue_reporter.sh`) as centralized CLI tool - Created `ci-issue-reporter.yml` reusable workflow (`workflow_call`) in all 5 template repos - Updated `pr-check.yml` and `repo-health.yml` to use the reusable workflow instead of sparse-checkout + inline script - Standardized env var names (`GITEA_TOKEN`/`GITEA_URL` → `MOKOGITEA_TOKEN`/`MOKOGITEA_URL`) across 65+ workflow files - Added API token scope editing (PATCH endpoint + web UI edit button) - Fixed empty scope update returning 200 instead of 400 ## Changes - `.mokogitea/workflows/pr-check.yml` — replaced 19-line inline reporter job with `uses: ./.mokogitea/workflows/ci-issue-reporter.yml` - `.mokogitea/workflows/repo-health.yml` — replaced 30-line inline reporter job with two declarative reusable workflow calls (`report-scripts` + `report-health`) - `automation/ci-issue-reporter.sh` — **deleted** (moved to MokoCLI) - `CHANGELOG.md` — added entries under Changed and Removed - `README.md` — added API Token Scope Editing feature, fixed formatting ## Test plan - [ ] Verify `ci-issue-reporter.yml` reusable workflow exists in all 5 template repos - [ ] Verify `cli/ci_issue_reporter.sh` exists in MokoCLI - [ ] Trigger a PR check failure to confirm the reusable workflow reports issues correctly - [ ] Confirm workflow sync propagates `ci-issue-reporter.yml` to downstream repos
jmiller added 17 commits 2026-06-25 17:33:10 +00:00
chore: remove security-audit.yml -- handled by MokoGitea
Deploy MokoGitea / Verify dev environment is healthy (push) Failing after 2s
Deploy MokoGitea / deploy (push) Has been cancelled
22c2a99f8b
Merge pull request 'feat: wiki search, metadata deploy fields, workflow cleanup' (#694) from dev into main
Deploy MokoGitea / Verify dev environment is healthy (push) Failing after 2s
Deploy MokoGitea / deploy (push) Has been cancelled
9106cfe254
Merge PR #694: wiki search, metadata deploy fields, workflow cleanup
fix: correct dev health URL to git.dev.mokoconsulting.tech
Universal: PR Check / Branch Policy (pull_request) Failing after 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 9s
PR RC Release / Build RC Release (pull_request) Failing after 59s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 1m22s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Failing after 1s
Universal: PR Check / Secret Scan (pull_request) Successful in 1m20s
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 Issues (pull_request) Has been cancelled
8780ec7c5f
Was dev.git.mokoconsulting.tech which doesn't exist. The dev instance
runs at git.dev.mokoconsulting.tech (port 3090 behind nginx).
Merge pull request 'fix: correct dev health URL to git.dev.mokoconsulting.tech' (#695) from fix/dev-deploy-hostname into main
Deploy MokoGitea / Verify dev environment is healthy (push) Successful in 2s
Deploy MokoGitea / deploy (push) Has been cancelled
7d28fe522d
fix: correct dev health URL to git.dev.mokoconsulting.tech (#695)
feat: add licensing API token scope (#697)
Universal: Auto Version Bump / Version Bump (push) Successful in 17s
PR RC Release / Build RC Release (pull_request) Successful in 3s
Universal: PR Check / Branch Policy (pull_request) Failing after 2s
Universal: PR Check / Validate PR (pull_request) Failing after 11s
Universal: PR Check / Secret Scan (pull_request) Successful in 43s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 3s
Universal: Build & Release / Build & Release Pipeline (pull_request) Failing after 1m13s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 4m6s
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
49f6380fa4
Add read:licensing / write:licensing token scope category so licensing
endpoints are guarded by the same permission system as all other API
endpoints. Public-only tokens are rejected for licensing endpoints.
Merge pull request 'feat: add licensing API token scope' (#698) from feature/api-token-scopes into main
Deploy MokoGitea / Verify dev environment is healthy (push) Successful in 2s
Deploy MokoGitea / deploy (push) Has been cancelled
3eb0dfd011
feat: add licensing API token scope (#697)
Add PATCH /users/{username}/tokens/{id} API endpoint and web UI edit
button so token scopes can be modified after creation without having
to delete and recreate the token.
fix: reject empty token update requests with 400
Universal: PR Check / Branch Policy (pull_request) Failing after 3s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 11s
Universal: Auto Version Bump / Version Bump (push) Successful in 17s
PR RC Release / Build RC Release (pull_request) Failing after 1m5s
Universal: PR Check / Secret Scan (pull_request) Successful in 1m7s
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
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 57s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 3m52s
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 Issues (pull_request) Has been cancelled
f7c2b205c5
Replace all GA_TOKEN secret references with MOKOGITEA_TOKEN across 7
workflow files. Fixes pr-check.yml pre-release dispatch which set env
var GA_TOKEN but curl referenced GITEA_TOKEN, silently failing auth.
Also removes duplicate fallback chains in deploy-manual, repo-health,
and version-set.
docs: add changelog entries for token standardization and validation fix
Universal: Auto Version Bump / Version Bump (push) Successful in 14s
Universal: PR Check / Branch Policy (pull_request) Failing after 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 8s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Failing after 1s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 4s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
PR RC Release / Build RC Release (pull_request) Failing after 1m18s
Universal: PR Check / Secret Scan (pull_request) Successful in 1m18s
Universal: Build & Release / Build & Release Pipeline (pull_request) Failing after 59s
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 Issues (pull_request) Has been cancelled
5c1b4e6509
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.
jmiller merged commit 6131739e39 into dev 2026-06-25 17:35:29 +00:00
jmiller deleted branch feature/edit-token-scopes 2026-06-25 17:35:30 +00:00
Sign in to join this conversation.