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
41 changes: 0 additions & 41 deletions .github/prompts/classify-pr.prompt.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/prompts/detect-breaking.prompt.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/prompts/summarize-changelog.prompt.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/ai-labeler.yml

This file was deleted.

72 changes: 1 addition & 71 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ jobs:
permissions:
contents: write
id-token: write
models: read
attestations: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -145,68 +144,6 @@ jobs:
- name: Install Syft
uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0

- name: Build changelog context
run: |
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
DIFF_FILE=/tmp/diff.txt
if [ -z "$PREV_TAG" ]; then
COMMITS=$(git log --oneline --no-decorate)
git diff --stat 4b825dc642cb6eb9a060e54bf899d69f82a3ef17 HEAD > "$DIFF_FILE"
else
COMMITS=$(git log --oneline --no-decorate "${PREV_TAG}..HEAD")
git diff "${PREV_TAG}..HEAD" -- '*.go' 'go.mod' > "$DIFF_FILE"
fi
{
echo "Commits:"
echo "$COMMITS"
echo ""
echo "Diff summary:"
head -c 80000 "$DIFF_FILE"
} > /tmp/user-message.txt
# Splice into prompt YAML
python3 -c "
with open('.github/prompts/summarize-changelog.prompt.yml') as f:
lines = f.readlines()
with open('/tmp/user-message.txt') as f:
user_msg = f.read()
insert_at = len(lines)
for i, line in enumerate(lines):
if i == 0: continue
if line.strip() and not line[0].isspace():
insert_at = i
break
entry = [' - role: user\n', ' content: |\n']
for ln in user_msg.splitlines():
entry.append(' ' + ln + '\n')
lines[insert_at:insert_at] = entry
with open('/tmp/prompt.yml', 'w') as f:
f.writelines(lines)
try:
import yaml
doc = yaml.safe_load(open('/tmp/prompt.yml'))
assert doc['messages'][-1]['role'] == 'user', 'prompt splice failed'
except ImportError:
pass
"
continue-on-error: true

- name: Generate AI changelog
id: ai-changelog
uses: actions/ai-inference@a7805884c80886efc241e94a5351df715968a0ad # v2.1.1
continue-on-error: true
with:
prompt-file: /tmp/prompt.yml

- name: Set changelog path
id: changelog
env:
RESPONSE_FILE: ${{ steps.ai-changelog.outputs.response-file }}
run: |
if [ -n "$RESPONSE_FILE" ] && [ -f "$RESPONSE_FILE" ]; then
sed -i '/^```\(markdown\)\?$/d' "$RESPONSE_FILE"
echo "file=$RESPONSE_FILE" >> "$GITHUB_OUTPUT"
fi

- name: Verify macOS signing secrets
if: github.repository == 'basecamp/basecamp-cli'
run: |
Expand Down Expand Up @@ -288,7 +225,6 @@ jobs:

- name: Run GoReleaser
env:
CHANGELOG_FILE: ${{ steps.changelog.outputs.file }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ steps.sdk-token.outputs.token }}
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
Expand All @@ -304,13 +240,7 @@ jobs:
# DigiCert ONE certificate ID (not the keypair alias) for the OV cert
# CN=37signals LLC, expires 2027-04-30. Keep in sync with bc3-desktop.
SIGN_ALIAS: 1346fa41-d9f0-4580-b7b9-a95cf5674354
run: |
RELEASE_CHANGELOG=""
if [ -n "$CHANGELOG_FILE" ] && [ -f "$CHANGELOG_FILE" ]; then
RELEASE_CHANGELOG=$(cat "$CHANGELOG_FILE")
fi
export RELEASE_CHANGELOG
goreleaser release --clean
run: goreleaser release --clean

- name: Clean up Windows signing material
if: always()
Expand Down
2 changes: 0 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ release:
extra_files:
- glob: .release-extra/basecamp_installer.ps1
name_template: "{{.ProjectName}} v{{.Version}}"
header: |
{{ if .Env.RELEASE_CHANGELOG }}{{ .Env.RELEASE_CHANGELOG }}{{ end }}

homebrew_casks:
- name: basecamp-cli
Expand Down
1 change: 0 additions & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ make release VERSION=0.2.0 DRY_RUN=1
6. GitHub Actions [release workflow](.github/workflows/release.yml) runs:
- Security scan + full test suite + CLI surface compatibility check
- Collects PGO profile from benchmarks
- Generates AI changelog from commit history
- Builds binaries for all platforms (darwin, linux, windows, freebsd, openbsd × amd64/arm64)
- Builds `.deb`, `.rpm`, `.apk` Linux packages (amd64 + arm64)
- Signs and notarizes macOS binaries via GoReleaser's built-in notarize (embedded quill)
Expand Down
Loading