Install the workflow that publishes accepted milestones #104

Merged
Tirsvad merged 1 commits from sync-milestones-action into main 2026-10-11 06:43:10 +02:00
Owner

Installs the workflow that publishes accepted milestones, as requested by S01 (the template was supplied in chat).

  • .gitea/workflows/sync-milestones.yml: on a push to main that changes docs/milestones/** or docs/sqa/reviews/**, runs sync-project.sh --accepted-only --apply; a manual run is a dry run unless dry_run is switched off. Adapted from the template in two ways: the secret is the bare TOKEN_FOR_GITEA (this project no longer uses a JSON secret), and the job declares permissions: contents: read.
  • framework is bumped from v0.3.1-2 to v0.5.2 (and framework/qc with it): --accepted-only exists from v0.5.0 and the script computes the project root from its own location, so the mounted framework must have it. The flat qc/ layout is unchanged in v0.5.2, so no document link breaks; 305 tests pass.
  • Home (README, Danish and Malay pages): the workflow table lists it and a PlantUML diagram shows its flow (a test requires every workflow to be listed and drawn).

What merging this does: installing the file is the standing authorization to publish. After the merge, every later push to main that changes the milestones or their reviews creates or updates milestones and issues for the accepted ones; Proposed milestones are skipped (MIL-007 is Proposed on main right now, so it is skipped until its latest row is Accepted).

Open points before it can work:

  • TOKEN_FOR_GITEA must be allowed to write issues and milestones and to read the framework repository TirSystem/SQA-QC-Framework (submodule over HTTPS). I cannot read the scope of an organization secret; the first manual dry run will show whether the checkout works, and a real run whether writes are allowed.
  • Run it once by hand with dry_run on after the merge.

Wiki pages changed: Home (en, da, ms).

No issue closed: requested by the user.

Installs the workflow that publishes accepted milestones, as requested by S01 (the template was supplied in chat). - `.gitea/workflows/sync-milestones.yml`: on a push to `main` that changes `docs/milestones/**` or `docs/sqa/reviews/**`, runs `sync-project.sh --accepted-only --apply`; a manual run is a dry run unless `dry_run` is switched off. Adapted from the template in two ways: the secret is the bare `TOKEN_FOR_GITEA` (this project no longer uses a JSON secret), and the job declares `permissions: contents: read`. - `framework` is bumped from v0.3.1-2 to v0.5.2 (and `framework/qc` with it): `--accepted-only` exists from v0.5.0 and the script computes the project root from its own location, so the mounted framework must have it. The flat `qc/` layout is unchanged in v0.5.2, so no document link breaks; 305 tests pass. - Home (README, Danish and Malay pages): the workflow table lists it and a PlantUML diagram shows its flow (a test requires every workflow to be listed and drawn). **What merging this does:** installing the file is the standing authorization to publish. After the merge, every later push to `main` that changes the milestones or their reviews creates or updates milestones and issues for the accepted ones; Proposed milestones are skipped (MIL-007 is Proposed on `main` right now, so it is skipped until its latest row is Accepted). **Open points before it can work:** - `TOKEN_FOR_GITEA` must be allowed to write issues and milestones and to read the framework repository `TirSystem/SQA-QC-Framework` (submodule over HTTPS). I cannot read the scope of an organization secret; the first manual dry run will show whether the checkout works, and a real run whether writes are allowed. - Run it once by hand with `dry_run` on after the merge. Wiki pages changed: Home (en, da, ms). No issue closed: requested by the user.
Tirsvad added 1 commit 2026-10-11 06:39:10 +02:00
Install the workflow that publishes accepted milestones and bump the framework to v0.5.2
TirSystem/github-action: Publish wiki / publish-wiki (push) Skipped
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Skipped
Validate workflows / validate (pull_request) Successful in 17s
23a5a7ec7f
Task: MIL-007#1
Tirsvad merged commit ac6925e21a into main 2026-10-11 06:43:10 +02:00
Tirsvad deleted branch sync-milestones-action 2026-10-11 06:43:10 +02:00
Sign in to join this conversation.