Skip to content

Commit 4cf9ccd

Browse files
committed
fixup! feat: Support missing calls with multi-project the options
1 parent 0060a64 commit 4cf9ccd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/releases/__tests__/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ describe('SentryCli releases', () => {
150150
await cli.releases.newDeploy('my-version', { env: 'production' });
151151

152152
expect(mockExecute).toHaveBeenCalledWith(
153-
['releases', 'deploys', 'my-version', 'new', '--env', 'production'],
153+
['deploys', 'new', '--release', 'my-version', '--env', 'production'],
154154
null,
155155
false,
156156
undefined,
@@ -166,14 +166,14 @@ describe('SentryCli releases', () => {
166166

167167
expect(mockExecute).toHaveBeenCalledWith(
168168
[
169-
'releases',
170169
'deploys',
170+
'new',
171171
'-p',
172172
'proj-a',
173173
'-p',
174174
'proj-b',
175+
'--release',
175176
'my-version',
176-
'new',
177177
'--env',
178178
'production',
179179
],

lib/releases/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ export class Releases {
214214
if (!options || !options.env) {
215215
throw new Error('options.env must be a valid name');
216216
}
217-
const args = ['releases', 'deploys']
217+
const args = ['deploys', 'new']
218218
.concat(helper.getProjectFlagsFromOptions(options))
219-
.concat([release, 'new']);
219+
.concat(['--release', release]);
220220
return this.execute(helper.prepareCommand(args, DEPLOYS_OPTIONS, options), null);
221221
}
222222

lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export type SentryCliNewDeployOptions = {
168168
*/
169169
url?: string;
170170
/**
171-
* The projects to deploy the release to. If not provided, the deployment will be created for the default project.
171+
* The projects to deploy the release to. If not provided, the deployment will be created for all projects associated with the release.
172172
*/
173173
projects?: string[];
174174
}

0 commit comments

Comments
 (0)