Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mkusaka/circli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.106
Choose a base ref
...
head repository: mkusaka/circli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Dec 19, 2023

  1. Copy the full SHA
    2dca437 View commit details
  2. Merge pull request #130 from mkusaka/update-20231219T000253

    update 20231219T000253
    mkusaka authored Dec 19, 2023
    Copy the full SHA
    232368c View commit details

Commits on Jan 6, 2024

  1. Copy the full SHA
    c2f3ac2 View commit details
  2. Merge pull request #131 from mkusaka/update-20240106T000247

    update 20240106T000247
    mkusaka authored Jan 6, 2024
    Copy the full SHA
    ad460a3 View commit details

Commits on Jan 13, 2024

  1. Copy the full SHA
    9f749ad View commit details
  2. Merge pull request #136 from mkusaka/update-20240113T000242

    update 20240113T000242
    mkusaka authored Jan 13, 2024
    Copy the full SHA
    aa5c8a3 View commit details

Commits on Jan 23, 2024

  1. Copy the full SHA
    64f4f8a View commit details
  2. Merge pull request #137 from mkusaka/update-20240123T000258

    update 20240123T000258
    mkusaka authored Jan 23, 2024
    Copy the full SHA
    d2b1b52 View commit details

Commits on Jan 25, 2024

  1. Copy the full SHA
    19c99b4 View commit details
  2. Merge pull request #138 from mkusaka/update-20240125T000256

    update 20240125T000256
    mkusaka authored Jan 25, 2024
    Copy the full SHA
    42ea7d0 View commit details

Commits on Feb 9, 2024

  1. Copy the full SHA
    c6cd097 View commit details
  2. Merge pull request #139 from mkusaka/update-20240209T000251

    update 20240209T000251
    mkusaka authored Feb 9, 2024
    Copy the full SHA
    8d6d09a View commit details

Commits on Feb 15, 2024

  1. Copy the full SHA
    0d3e429 View commit details

Commits on Feb 17, 2024

  1. Merge pull request #140 from mkusaka/update-20240215T000248

    update 20240215T000248
    mkusaka authored Feb 17, 2024
    Copy the full SHA
    5e9e715 View commit details

Commits on Mar 9, 2024

  1. Copy the full SHA
    4e893ed View commit details
  2. Merge pull request #151 from mkusaka/update-20240309T000233

    update 20240309T000233
    mkusaka authored Mar 9, 2024
    Copy the full SHA
    8dd1747 View commit details

Commits on Mar 16, 2024

  1. Copy the full SHA
    7dc890e View commit details
  2. Merge pull request #155 from mkusaka/update-20240316T000227

    update 20240316T000227
    mkusaka authored Mar 16, 2024
    Copy the full SHA
    e4bb98a View commit details

Commits on Apr 20, 2024

  1. Copy the full SHA
    73b1883 View commit details
  2. Merge pull request #157 from mkusaka/update-20240420T000239

    update 20240420T000239
    mkusaka authored Apr 20, 2024
    Copy the full SHA
    ac9d404 View commit details

Commits on Apr 30, 2024

  1. Copy the full SHA
    281a73c View commit details
  2. Merge pull request #158 from mkusaka/update-20240430T000243

    update 20240430T000243
    mkusaka authored Apr 30, 2024
    Copy the full SHA
    2b3bb91 View commit details

Commits on May 1, 2024

  1. Copy the full SHA
    f5734ac View commit details
  2. Copy the full SHA
    75b41a8 View commit details

Commits on May 2, 2024

  1. Copy the full SHA
    8e45be1 View commit details

Commits on May 3, 2024

  1. Copy the full SHA
    ae8a140 View commit details

Commits on May 11, 2024

  1. Merge pull request #160 from mkusaka/update-20240502T000309

    update 20240502T000309
    mkusaka authored May 11, 2024
    Copy the full SHA
    098dc5e View commit details

Commits on Jun 11, 2024

  1. Copy the full SHA
    a74cca7 View commit details

Commits on Jun 12, 2024

  1. Copy the full SHA
    aec51df View commit details
  2. Merge pull request #171 from mkusaka/update-20240612T000309

    update 20240612T000309
    mkusaka authored Jun 12, 2024
    Copy the full SHA
    3ac3a31 View commit details

Commits on Jun 23, 2024

  1. Copy the full SHA
    59161fc View commit details
  2. Merge pull request #174 from mkusaka/update-20240623T000314

    update 20240623T000314
    mkusaka authored Jun 23, 2024
    Copy the full SHA
    1e60d4f View commit details

Commits on Jun 27, 2024

  1. Copy the full SHA
    514fb39 View commit details
  2. Merge pull request #176 from mkusaka/update-20240627T000300

    update 20240627T000300
    mkusaka authored Jun 27, 2024
    Copy the full SHA
    374c16d View commit details

Commits on Aug 12, 2024

  1. Copy the full SHA
    3145e51 View commit details
  2. Merge pull request #181 from mkusaka/update-20240812T000310

    update 20240812T000310
    mkusaka authored Aug 12, 2024
    Copy the full SHA
    473a19c View commit details

Commits on Aug 14, 2024

  1. Copy the full SHA
    0d7f474 View commit details
  2. Copy the full SHA
    8e521d9 View commit details

Commits on Aug 27, 2024

  1. Copy the full SHA
    79acef2 View commit details
  2. Copy the full SHA
    f63cccc View commit details

Commits on Sep 29, 2024

  1. Copy the full SHA
    80cf7ee View commit details
  2. Merge pull request #191 from mkusaka/update-20240929T000342

    update 20240929T000342
    mkusaka authored Sep 29, 2024
    Copy the full SHA
    4cb95fc View commit details

Commits on Oct 26, 2024

  1. Copy the full SHA
    e3fd360 View commit details
  2. Copy the full SHA
    9e0d83f View commit details

Commits on Nov 2, 2024

  1. Copy the full SHA
    670f328 View commit details
  2. Merge pull request #200 from mkusaka/update-20241102T000312

    update 20241102T000312
    mkusaka authored Nov 2, 2024
    Copy the full SHA
    d0eba27 View commit details

Commits on Nov 13, 2024

  1. Copy the full SHA
    17e7fcb View commit details
  2. Merge pull request #201 from mkusaka/update-20241113T000332

    update 20241113T000332
    mkusaka authored Nov 13, 2024
    Copy the full SHA
    32b5317 View commit details

Commits on Nov 14, 2024

  1. Copy the full SHA
    8d6dcb2 View commit details
  2. Merge pull request #202 from mkusaka/update-20241114T000333

    update 20241114T000333
    mkusaka authored Nov 14, 2024
    Copy the full SHA
    b32197b View commit details
9 changes: 9 additions & 0 deletions client/index.ts
Original file line number Diff line number Diff line change
@@ -5,13 +5,21 @@ export type { OpenAPIConfig } from "./core/OpenAPI.ts";
export type { BundleDiff } from "./models/BundleDiff.ts";
export type { BundlePayload } from "./models/BundlePayload.ts";
export type { ClaimResponse } from "./models/ClaimResponse.ts";
export type { context_project_restrictions_list } from "./models/context_project_restrictions_list.ts";
export type { Decision } from "./models/Decision.ts";
export type { DecisionLog } from "./models/DecisionLog.ts";
export type { DecisionSettings } from "./models/DecisionSettings.ts";
export type { get_usage_export_job_status } from "./models/get_usage_export_job_status.ts";
export type { JSONDuration } from "./models/JSONDuration.ts";
export type { PatchClaimsRequest } from "./models/PatchClaimsRequest.ts";
export type { pipeline } from "./models/pipeline.ts";
export type { pipelineRequest } from "./models/pipelineRequest.ts";
export type { Policy } from "./models/Policy.ts";
export type { PolicyBundle } from "./models/PolicyBundle.ts";
export type { project_settings } from "./models/project_settings.ts";
export type { restriction_created } from "./models/restriction_created.ts";
export type { restriction_deleted } from "./models/restriction_deleted.ts";
export type { usage_export_job } from "./models/usage_export_job.ts";
export type { Violation } from "./models/Violation.ts";
export { ContextService } from "./services/ContextService.ts";
export { InsightsService } from "./services/InsightsService.ts";
@@ -21,6 +29,7 @@ export { PipelineService } from "./services/PipelineService.ts";
export { PolicyManagementService } from "./services/PolicyManagementService.ts";
export { ProjectService } from "./services/ProjectService.ts";
export { ScheduleService } from "./services/ScheduleService.ts";
export { UsageService } from "./services/UsageService.ts";
export { UserService } from "./services/UserService.ts";
export { WebhookService } from "./services/WebhookService.ts";
export { WorkflowService } from "./services/WorkflowService.ts";
10 changes: 10 additions & 0 deletions client/models/context_project_restrictions_list.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type context_project_restrictions_list = {
items?: Array<any>;
/**
* Token that can be used to retrieve next page of results
*/
next_page_token?: string | null;
};
12 changes: 12 additions & 0 deletions client/models/get_usage_export_job_status.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type get_usage_export_job_status = {
/**
* A list of pre signed urls that the client can use to download the results of a Usage Export.
*/
download_urls: Array<string>;
error_reason?: string;
state: "created" | "processing" | "failed" | "completed";
usage_export_job_id: string;
};
9 changes: 9 additions & 0 deletions client/models/pipeline.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type pipeline = {
created_at?: string;
id?: string;
number?: number;
state?: "created" | "errored" | "setup-pending" | "setup" | "pending";
};
46 changes: 46 additions & 0 deletions client/models/pipelineRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type pipelineRequest = {
checkout?: {
/**
* The branch that should be used to check out code on a checkout step.
* Note that branch and tag are mutually exclusive.
* To trigger a pipeline for a PR by number use pull/<number>/head for the PR ref or pull/<number>/merge for the merge ref (GitHub only)
*
*/
branch?: string;
/**
* The tag that should be used to check out code on a checkout step.
* The commit that this tag points to is used for the pipeline. Note that branch and tag are mutually exclusive.
*
*/
tag?: string;
};
config?: {
/**
* The branch that should be used to fetch the config file.
* Note that branch and tag are mutually exclusive.
* To trigger a pipeline for a PR by number use pull/<number>/head for the PR ref or pull/<number>/merge for the merge ref (GitHub only)
*
*/
branch?: string;
/**
* The tag that should be used to fetch the config file.
* The commit that this tag points to is used for the pipeline.
* Note that branch and tag are mutually exclusive.
*
*/
tag?: string;
};
/**
* The unique id for the pipeline definition. This can be found in the page Project Settings > Pipelines.
*/
definition_id?: string;
/**
* An object containing pipeline parameters and their values.
* Pipeline parameters have the following size limits: 100 max entries, 128 maximum key length, 512 maximum value length.
*
*/
parameters?: any;
};
47 changes: 47 additions & 0 deletions client/models/project_settings.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type project_settings = {
advanced?: {
/**
* Except for the default branch, cancel running pipelines on a branch when a new pipeline starts on that branch.
*/
autocancel_builds?: boolean;
/**
* Run builds for pull requests from forks.
*/
build_fork_prs?: boolean;
/**
* Once enabled, we will only build branches that have associated pull requests open.
*/
build_prs_only?: boolean;
/**
* When set to true, job re-runs with SSH debugging access will be disabled for the project.
*/
disable_ssh?: boolean;
/**
* Run builds for forked pull requests with this project's configuration, environment variables, and secrets.
*/
forks_receive_secret_env_vars?: boolean;
/**
* Free and Open Source. Enabling this grants additional credits, and lets others see your builds, both through the web UI and the API.
*/
oss?: boolean;
/**
* This field is used in conjunction with the `build_prs_only`, it allows you to specify a list of branches that will always triger a build. The value passed will overwrite the existing value.
*/
pr_only_branch_overrides?: Array<string>;
/**
* Report the status of every pushed commit to GitHub's status API. Updates reported per job.
*/
set_github_status?: boolean;
/**
* Enabling allows you to conditionally trigger configurations outside of the primary `.circleci` parent directory.
*/
setup_workflows?: boolean;
/**
* Whether updating these settings requires a user to be an organization administrator. When disabled, updating settings can be done by any member.
*/
write_settings_requires_admin?: boolean;
};
};
4 changes: 4 additions & 0 deletions client/models/restriction_created.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type restriction_created = {};
4 changes: 4 additions & 0 deletions client/models/restriction_deleted.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type restriction_deleted = {};
13 changes: 13 additions & 0 deletions client/models/usage_export_job.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type usage_export_job = {
/**
* A list of pre signed urls that the client can use to download the results of a Usage Export.
*/
download_urls: Array<string>;
end: string;
start: string;
state: "created" | "processing" | "failed" | "completed";
usage_export_job_id: string;
};
115 changes: 115 additions & 0 deletions client/services/ContextService.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import type { context_project_restrictions_list } from "../models/context_project_restrictions_list.ts";
import type { restriction_created } from "../models/restriction_created.ts";
import type { restriction_deleted } from "../models/restriction_deleted.ts";
import type { CancelablePromise } from "../core/CancelablePromise.ts";
import { OpenAPI } from "../core/OpenAPI.ts";
import { request as __request } from "../core/request.ts";
@@ -327,4 +330,116 @@ export class ContextService {
mediaType: "application/json",
});
}
/**
* 🧪 Get context restrictions
* [__EXPERIMENTAL__] Gets a list of project restrictions associated with a context.
* @returns context_project_restrictions_list Successful response.
* @throws ApiError
*/
public static getContextRestrictions({
contextId,
}: {
/**
* An opaque identifier of a context.
*/
contextId: string;
}): CancelablePromise<context_project_restrictions_list> {
return __request(OpenAPI, {
method: "GET",
url: "/context/{context_id}/restrictions",
path: {
context_id: contextId,
},
errors: {
400: `Context ID provided is invalid.`,
401: `Credentials provided are invalid.`,
404: `Entity not found.`,
429: `API rate limits exceeded.`,
500: `Internal server error.`,
},
});
}
/**
* 🧪 Create context restriction
* [__EXPERIMENTAL__] Creates project restriction on a context.
* @returns restriction_created Successful response.
* @throws ApiError
*/
public static createContextRestriction({
contextId,
requestBody,
}: {
/**
* An opaque identifier of a context.
*/
contextId: string;
requestBody: {
/**
* Deprecated - Use "restriction_type" and "restriction_value"
* instead.
*
* The project ID to use for a project restriction. This is
* mutually exclusive with restriction_type and restriction_value
* and implies restriction_type is "project".
*
* @deprecated
*/
project_id?: string;
restriction_type?: string;
restriction_value?: string;
};
}): CancelablePromise<restriction_created> {
return __request(OpenAPI, {
method: "POST",
url: "/context/{context_id}/restrictions",
path: {
context_id: contextId,
},
body: requestBody,
mediaType: "application/json",
errors: {
400: `Bad request.`,
401: `Credentials provided are invalid.`,
404: `Entity not found.`,
409: `Request conflict.`,
429: `API rate limits exceeded.`,
500: `Internal server error.`,
},
});
}
/**
* 🧪 Delete context restriction
* [__EXPERIMENTAL__] Deletes a project restriction on a context.
* @returns restriction_deleted Successful response.
* @throws ApiError
*/
public static deleteContextRestriction({
contextId,
restrictionId,
}: {
/**
* An opaque identifier of a context.
*/
contextId: string;
/**
* An opaque identifier of a context restriction.
*/
restrictionId: string;
}): CancelablePromise<restriction_deleted> {
return __request(OpenAPI, {
method: "DELETE",
url: "/context/{context_id}/restrictions/{restriction_id}",
path: {
context_id: contextId,
restriction_id: restrictionId,
},
errors: {
400: `Context restriction ID provided is invalid.`,
401: `Credentials provided are invalid.`,
404: `Entity not found.`,
429: `API rate limits exceeded.`,
500: `Internal server error.`,
},
});
}
}
23 changes: 21 additions & 2 deletions client/services/InsightsService.ts
Original file line number Diff line number Diff line change
@@ -520,7 +520,20 @@ export class InsightsService {
* The name of a workflow. If not passed we will scope the API call to the project.
*/
workflowName?: string;
}): CancelablePromise<any> {
}): CancelablePromise<{
/**
* A list of all the branches for a given project.
*/
branches: Array<string>;
/**
* The unique ID of the organization
*/
org_id: any;
/**
* The unique ID of the project
*/
project_id: any;
}> {
return __request(OpenAPI, {
method: "GET",
url: "/insights/{project-slug}/branches",
@@ -587,7 +600,7 @@ export class InsightsService {
/**
* The date and time when workflow was created.
*/
"workflow-created-at": any;
"workflow-created-at": string;
/**
* The ID of the workflow associated with the provided test counts
*/
@@ -867,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).
@@ -897,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.
@@ -987,6 +1005,7 @@ export class InsightsService {
"all-branches": allBranches,
branch: branch,
"reporting-window": reportingWindow,
"job-name": jobName,
},
});
}
Loading