Skip to content

Commit

Permalink
Merge pull request #181 from mkusaka/update-20240812T000310
Browse files Browse the repository at this point in the history
update 20240812T000310
  • Loading branch information
mkusaka authored Aug 12, 2024
2 parents 374c16d + 3145e51 commit 473a19c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions client/services/InsightsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ export class InsightsService {
allBranches,
branch,
reportingWindow,
jobName,
}: {
/**
* Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped. For projects that use GitLab or GitHub App, use `circleci` as the `vcs-slug`, replace `org-name` with the organization ID (found in Organization Settings), and replace `repo-name` with the project ID (found in Project Settings).
Expand Down Expand Up @@ -910,6 +911,10 @@ export class InsightsService {
| "last-24-hours"
| "last-30-days"
| "last-60-days";
/**
* The name of the jobs you would like to filter from your workflow. If not specified, all workflow jobs will be returned. The job name can either be the full job name or just a substring of the job name.
*/
jobName?: string;
}): CancelablePromise<{
/**
* Job summary metrics.
Expand Down Expand Up @@ -1000,6 +1005,7 @@ export class InsightsService {
"all-branches": allBranches,
branch: branch,
"reporting-window": reportingWindow,
"job-name": jobName,
},
});
}
Expand Down
4 changes: 2 additions & 2 deletions client/services/JobService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ export class JobService {
});
}
/**
* Cancel job
* Cancel job by job number
* Cancel job with a given job number.
* @returns any
* @throws ApiError
*/
public static cancelJob({
public static cancelJobByJobNumber({
jobNumber,
projectSlug,
}: {
Expand Down
Loading

0 comments on commit 473a19c

Please sign in to comment.