spork-create: enable Actions on fork after creation
Forks from mirror repos have has_actions disabled by default. PATCH the repo settings to enable it so the mirror-sync workflow runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
007b4fecdd
commit
21b465bf18
1 changed files with 12 additions and 0 deletions
|
|
@ -296,6 +296,18 @@ def main(
|
|||
fork_mirror(client, token, repo_name)
|
||||
console.print(f"[green]Created fork:[/green] {OWNER}/{repo_name}")
|
||||
|
||||
# Enable Actions (forks from mirrors have it disabled by default)
|
||||
console.print("Enabling Actions...")
|
||||
resp = forge_api(
|
||||
client,
|
||||
"PATCH",
|
||||
f"/repos/{OWNER}/{repo_name}",
|
||||
token,
|
||||
json_data={"has_actions": True},
|
||||
)
|
||||
resp.raise_for_status()
|
||||
console.print("[green]Actions enabled[/green]")
|
||||
|
||||
# 3. Clone to temp dir, create blumeops branch with workflow
|
||||
console.print("Setting up blumeops branch...")
|
||||
import tempfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue