Skip to content

Commit 15e45c4

Browse files
runningcodeclaude
andcommitted
test: Update help snapshots and add changelog entry
- Update build upload help test snapshots to include new --git-metadata and --no-git-metadata flags - Add changelog entry for the new feature 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 743e0f0 commit 15e45c4

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- Add `--git-metadata` flag with CI auto-detection to `sentry-cli build upload` command ([#2974](https://github.com/getsentry/sentry-cli/pull/2974))
8+
- Git metadata is now automatically collected only when running in CI environments (GitHub Actions, GitLab CI, Jenkins, etc.)
9+
- Local development builds no longer trigger GitHub status checks by default
10+
- Users can force enable with `--git-metadata` or disable with `--git-metadata=false`
11+
512
### Improvements
613

714
- The `sentry-cli build upload` command now automatically detects the correct branch or tag reference in non-PR GitHub Actions workflows ([#2976](https://github.com/getsentry/sentry-cli/pull/2976)). Previously, `--head-ref` was only auto-detected for pull request workflows. Now it works for push, release, and other workflow types by using the `GITHUB_REF_NAME` environment variable.

tests/integration/_cases/build/build-upload-help-macos.trycmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ Options:
5353
be used.
5454
--release-notes <release_notes>
5555
The release notes to use for the upload.
56+
--git-metadata [<git_metadata>]
57+
Controls whether to collect and send git metadata (branch, commit, etc.). Use
58+
--git-metadata to force enable, --git-metadata=false or --no-git-metadata to force
59+
disable. If not specified, git metadata is automatically collected only when running in a
60+
CI environment. [possible values: true, false]
61+
--no-git-metadata
62+
Disable collection of git metadata. Equivalent to --git-metadata=false.
5663
-h, --help
5764
Print help
5865

tests/integration/_cases/build/build-upload-help-not-macos.trycmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ Options:
5252
be used.
5353
--release-notes <release_notes>
5454
The release notes to use for the upload.
55+
--git-metadata [<git_metadata>]
56+
Controls whether to collect and send git metadata (branch, commit, etc.). Use
57+
--git-metadata to force enable, --git-metadata=false or --no-git-metadata to force
58+
disable. If not specified, git metadata is automatically collected only when running in a
59+
CI environment. [possible values: true, false]
60+
--no-git-metadata
61+
Disable collection of git metadata. Equivalent to --git-metadata=false.
5562
-h, --help
5663
Print help
5764

0 commit comments

Comments
 (0)