-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Pre release script #7145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre release script #7145
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,77 @@ | ||||||
| #!/bin/bash | ||||||
| set -euo pipefail | ||||||
|
|
||||||
| # VIBE CODED: AVERT YOUR EYES | ||||||
|
|
||||||
| REPO="${GOOSE_REPO:-$(git remote get-url origin | sed 's|.*github.com[:/]||;s|\.git$||')}" | ||||||
| DEST="$HOME/Downloads" | ||||||
|
|
||||||
| # Find release PR | ||||||
| if [[ $# -gt 0 ]]; then | ||||||
| SEARCH="chore(release): release version $1" | ||||||
| else | ||||||
| SEARCH="chore(release): release version" | ||||||
| fi | ||||||
|
|
||||||
| PR=$(gh pr list --repo "$REPO" --search "$SEARCH in:title" --state all --limit 1 --json number,title) | ||||||
| PR_NUMBER=$(echo "$PR" | jq -r '.[0].number // empty') | ||||||
| VERSION=$(echo "$PR" | jq -r '.[0].title // empty' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') | ||||||
|
|
||||||
| if [[ -z "$PR_NUMBER" ]]; then | ||||||
| echo "No matching release PR found." | ||||||
| exit 1 | ||||||
| fi | ||||||
| echo "Found PR #$PR_NUMBER - version $VERSION" | ||||||
|
|
||||||
| # Grab the last nightly.link download URL from PR comments | ||||||
| DOWNLOAD_URL=$(gh api "repos/$REPO/issues/$PR_NUMBER/comments" \ | ||||||
| --jq '[.[].body | capture("(?<url>https://nightly\\.link/[^)]+\\.zip)") | .url] | last // empty') | ||||||
|
||||||
| --jq '[.[].body | capture("(?<url>https://nightly\\.link/[^)]+\\.zip)") | .url] | last // empty') | |
| --jq '[.[].body | select(test("https://nightly\\.link/[^)]+\\.zip")) | capture("(?<url>https://nightly\\.link/[^)]+\\.zip)") | .url] | last // empty') |
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script creates a temp directory and entitlements plist but never cleans them up, which will leave files behind on success or failure; add a trap to remove $TMPDIR and $PLIST on EXIT (similar to scripts/test_providers.sh).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also seems nice to fix up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I actually removed this so I could see what it was doing, will put it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GOOSE_REPOis used elsewhere in this repo as a filesystem path (e.g., documentation/automation/recipe-schema-tracking/scripts/*), but here it’s treated as a GitHubowner/reposlug forgh --repo, so settingGOOSE_REPOwill break this script; use a different env var name (e.g.,GOOSE_GITHUB_REPO) or accept a separateGOOSE_REPO_PATHelsewhere.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems maybe worth addressing?