Skip to content

Commit 944f655

Browse files
committed
fix: remove About sync from release workflow, requires PAT not available to GITHUB_TOKEN
Made-with: Cursor
1 parent 0b93ca2 commit 944f655

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212

1313
permissions:
1414
contents: write
15-
administration: write
1615

1716
concurrency:
1817
group: release
@@ -73,18 +72,7 @@ jobs:
7372
env:
7473
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7574

76-
- name: Sync repo About section
77-
continue-on-error: true
78-
run: |
79-
TOOLS=$(python3 -c "import json; data=json.load(open('registry.json')); print(len(data))")
80-
SKILLS=$(python3 -c "import json; data=json.load(open('registry.json')); print(sum(t.get('skills',0) for t in data))")
81-
RULES=$(python3 -c "import json; data=json.load(open('registry.json')); print(sum(t.get('rules',0) for t in data))")
82-
MCP=$(python3 -c "import json; data=json.load(open('registry.json')); print(sum(t.get('mcpTools',0) for t in data))")
83-
84-
DESC="Centralized catalog, standards, and scaffolding for ${TOOLS} TMHSDigital developer tools - ${SKILLS} skills, ${RULES} rules, ${MCP} MCP tools"
85-
86-
gh repo edit "${{ github.repository }}" \
87-
--description "$DESC" \
88-
--homepage "https://tmhsdigital.github.io/Developer-Tools-Directory/"
89-
env:
90-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
# About section sync requires a PAT with repo scope.
76+
# Run manually after registry changes:
77+
# python3 -c "import json; d=json.load(open('registry.json')); t=len(d); s=sum(x['skills'] for x in d); r=sum(x['rules'] for x in d); m=sum(x['mcpTools'] for x in d); print(f'{t} tools, {s} skills, {r} rules, {m} MCP tools')"
78+
# gh repo edit TMHSDigital/Developer-Tools-Directory --description "Centralized catalog, standards, and scaffolding for <N> TMHSDigital developer tools - <S> skills, <R> rules, <M> MCP tools"

AGENTS.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ Checks:
5151

5252
Has a concurrency guard -- only one release can run at a time. Commits with `[skip ci]` are ignored.
5353

54-
After creating the release, it syncs the GitHub repository About section (description and homepage) by reading live counts from `registry.json`. **Do not manually edit the repo description** -- the release workflow owns it.
54+
The repo About section (description, homepage, topics) must be updated manually after registry changes since the GITHUB_TOKEN lacks permission for `gh repo edit`. Run locally:
55+
56+
```
57+
gh repo edit TMHSDigital/Developer-Tools-Directory --description "Centralized catalog, standards, and scaffolding for <N> TMHSDigital developer tools - <S> skills, <R> rules, <M> MCP tools"
58+
```
5559

5660
### `release-drafter.yml` (runs on push to main and PR activity)
5761

@@ -188,7 +192,7 @@ Pure documentation -- no code. Each file documents a convention derived from ana
188192

189193
- **`validate.yml`** runs on PR and push to main. It has three jobs: registry validation, docs existence checks, and scaffold syntax + dry-run test. Keep checks fast -- avoid installing unnecessary dependencies.
190194
- **`pages.yml`** deploys to GitHub Pages on push to main when `docs/`, `assets/`, or `registry.json` change. It copies `registry.json` into `docs/` and `assets/` into `docs/assets/` before uploading. Uses `actions/deploy-pages`.
191-
- **`release.yml`** auto-creates a GitHub release on push to main (excluding docs/md/standards changes). It determines the version bump from conventional commit prefixes since the last tag. Has a concurrency guard -- only one release can run at a time. Commits containing `[skip ci]` are ignored. After release, it syncs the repo About section (description with live tool/skill/rule/MCP counts, homepage URL) from `registry.json`. Do not manually edit the repo description.
195+
- **`release.yml`** auto-creates a GitHub release on push to main (excluding docs/md/standards changes). It determines the version bump from conventional commit prefixes since the last tag. Has a concurrency guard -- only one release can run at a time. Commits containing `[skip ci]` are ignored. The repo About section must be updated manually via `gh repo edit` after registry changes (the GITHUB_TOKEN lacks permission for this).
192196
- **`release-drafter.yml`** auto-drafts release notes from merged PR titles/labels. Config is in `.github/release-drafter.yml`. Categories: Features, Standards, Scaffold, Bug Fixes, Documentation, CI/Infrastructure. The autolabeler assigns labels based on changed file paths.
193197
- **`stale.yml`** runs weekly (Sunday midnight UTC). Issues: 60-day stale, 14-day close. PRs: 30-day stale, 14-day close. Labels exempt from staleness: `pinned`, `security`, `enhancement` (issues) and `pinned`, `security` (PRs).
194198
- **`codeql.yml`** runs Python security scanning on push/PR to main and weekly (Monday 06:00 UTC). Uses `github/codeql-action` v3.

0 commit comments

Comments
 (0)