refactor: centralize ci-issue-reporter into MokoCLI + reusable workflow #701
Reference in New Issue
Block a user
Delete Branch "feature/edit-token-scopes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
automation/ci-issue-reporter.shto MokoCLI (cli/ci_issue_reporter.sh) as centralized CLI toolci-issue-reporter.ymlreusable workflow (workflow_call) in all 5 template repospr-check.ymlandrepo-health.ymlto use the reusable workflow instead of sparse-checkout + inline scriptGITEA_TOKEN/GITEA_URL→MOKOGITEA_TOKEN/MOKOGITEA_URL) across 65+ workflow filesChanges
.mokogitea/workflows/pr-check.yml— replaced 19-line inline reporter job withuses: ./.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 RemovedREADME.md— added API Token Scope Editing feature, fixed formattingTest plan
ci-issue-reporter.ymlreusable workflow exists in all 5 template reposcli/ci_issue_reporter.shexists in MokoCLIci-issue-reporter.ymlto downstream reposAdd 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.