Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/claim-notice.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Plugin Claim Notice

on:
pull_request:
pull_request_target:
types:
- closed
paths:
Expand Down
4 changes: 4 additions & 0 deletions scripts/generate_plugins_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
"yarn.lock",
".codexignore",
".agents/plugins/marketplace.json",
"SKILL.md",
".github/dependabot.yml",
"codex.mcp.json",
".mcp.json",
)
METADATA_ONLY_MIRROR_REPOS = {
# EOC's repo-root Codex plugin references a large skills/commands catalog.
Expand Down
18 changes: 16 additions & 2 deletions scripts/post-claim-notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,22 @@ def main():
# 5. Check which PR repos are in the registry
matched = pr_repos & registry_repos
if not matched:
print(" Skipping: none of the PR repos are in the registry")
return 0
# Fallback: check local README.md — the plugin may have just been merged
# and the registry sync hasn't completed yet
print(" Not in registry yet, checking local README.md...")
readme_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "README.md")
if os.path.exists(readme_path):
readme_content = open(readme_path, encoding="utf-8").read().lower()
readme_matched = {r for r in pr_repos if r.lower() in readme_content}
if readme_matched:
print(f" Found in README (pending registry sync): {', '.join(readme_matched)}")
matched = readme_matched
else:
print(" Skipping: none of the PR repos are in the registry or README")
return 0
else:
print(" Skipping: README.md not found and repos not in registry")
return 0

print(f" Matched in registry: {', '.join(matched)}")

Expand Down
Loading