You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
* nest setCommits options for clarity
* Modify setCommits tests to support nesting
* Rename setCommits title & add required for repo++
* Make room for old implementation of setCommits
This makes it possible to use both nested and non-nested setOptions
* Add table section for setCommits
* add `options.` prefix on header
* Add new tests for nested and flat setCommits
Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
* Fix linter issues
Copy file name to clipboardExpand all lines: README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,8 +59,8 @@ Also, check the [example](example) directory.
59
59
60
60
#### Options
61
61
62
-
Option | Type | Required | Description |
63
-
-------|------|----------|-------------
62
+
|Option | Type | Required | Description |
63
+
---------|------|----------|-------------
64
64
release | `string` | optional | unique name of a release, must be a `string`, should uniquely identify your release, defaults to `sentry-cli releases propose-version` command which should always return the correct version (**requires access to `git` CLI and root directory to be a valid repository**).
65
65
include | `string`/`array` | required | one or more paths that Sentry CLI should scan recursively for sources. It will upload all `.map` files and match associated `.js` files |
66
66
entries | `array`/`RegExp`/`function(key: string): bool` | optional | a filter for entry points that should be processed. By default, the release will be injected into all entry points. |
@@ -79,13 +79,17 @@ entries | `array`/`RegExp`/`function(key: string): bool` | optional | a filter f
79
79
| debug |`boolean`| optional | print some useful debug information |
80
80
| silent |`boolean`| optional | if `true`, all logs are suppressed (useful for `--json` option) |
81
81
| errorHandler |`function(err: Error, invokeErr: function(): void): void`| optional | when Cli error occurs, plugin calls this function. webpack compilation failure can be chosen by calling `invokeErr` callback or not. default `(err, invokeErr) => { invokeErr()}`|
82
+
| setCommits |`Object`| optional | Adds commits to sentry - [see own table below](#setCommits) for more details |
82
83
83
84
84
-
set-commits options:
85
-
*`commit [optional]` - `string`, the current (last) commit in the release
86
-
*`previousCommit [optional]` - `string`, the commit before the beginning of this release (in other words, the last commit of the previous release). If omitted, this will default to the last commit of the previous release in Sentry. If there was no previous release, the last 10 commits will be used
87
-
*`repo [optional]` - `string`, the full repo name as defined in Sentry
88
-
*`auto [optional]` - `boolean`, automatically choose the associated commit (uses the current commit). Overrides other options
85
+
#### <aname="setCommits"></a>options.setCommits:
86
+
87
+
| Option | Type | Required | Description |
88
+
---------|------|----------|-------------
89
+
| repo |`string`| required | the full git repo name as defined in Sentry |
90
+
| commit |`string`| optional/required | the current (last) commit in the release |
91
+
| previousCommit |`string`| optional | the commit before the beginning of this release (in other words, the last commit of the previous release). If omitted, this will default to the last commit of the previous release in Sentry. If there was no previous release, the last 10 commits will be used |
92
+
| auto |`boolean`| optional/required | automatically choose the associated commit (uses the current commit). Overrides other options |
89
93
90
94
You can find more information about these options in our official docs:
0 commit comments