Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ‘½οΈ Update to Bitbucket Server 9.2 #15

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"preopenapi-typescript:cloud": "curl --output ./src/cloud/openapi/swagger.v3.json https://dac-static.atlassian.com/cloud/bitbucket/swagger.v3.json",
"openapi-typescript:cloud": "openapi-typescript ./src/cloud/openapi/swagger.v3.json --output ./src/cloud/openapi/openapi-typescript.ts --immutable --empty-objects-unknown --alphabetize --root-types",
"postopenapi-typescript:cloud": "ts-autofix ./src/cloud/openapi && pnpm run lint:fix",
"preopenapi-typescript:server": "curl --output ./src/server/openapi/swagger.v3.json https://dac-static.atlassian.com/server/bitbucket/9.1.swagger.v3.json",
"preopenapi-typescript:server": "curl --output ./src/server/openapi/swagger.v3.json https://dac-static.atlassian.com/server/bitbucket/9.2.swagger.v3.json",
"openapi-typescript:server": "openapi-typescript ./src/server/openapi/swagger.v3.json --output ./src/server/openapi/openapi-typescript.ts --immutable --empty-objects-unknown --alphabetize --root-types",
"postopenapi-typescript:server": "ts-autofix ./src/server/openapi && pnpm run lint:fix"
},
Expand Down
33 changes: 32 additions & 1 deletion src/cloud/openapi/openapi-typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10368,6 +10368,11 @@ export interface paths {
headers: Readonly<Record<string, unknown>>
content?: never
}
/** @description Unable to merge because one of the refs involved changed while attempting to merge */
readonly 409: {
headers: Readonly<Record<string, unknown>>
content?: never
}
/** @description If the merge took too long and timed out.
* In this case the caller should retry the request later */
readonly 555: {
Expand Down Expand Up @@ -10491,6 +10496,11 @@ export interface paths {
headers: Readonly<Record<string, unknown>>
content?: never
}
/** @description Unable to merge because one of the refs involved changed while attempting to merge */
readonly 409: {
headers: Readonly<Record<string, unknown>>
content?: never
}
}
}
readonly put?: never
Expand Down Expand Up @@ -18949,6 +18959,9 @@ export interface components {
readonly merge_strategies?: readonly (
| "fast_forward"
| "merge_commit"
| "rebase_fast_forward"
| "rebase_merge"
| "squash_fast_forward"
| "squash"
)[]
})
Expand Down Expand Up @@ -22044,6 +22057,9 @@ export interface components {
readonly merge_strategies?: readonly (
| "fast_forward"
| "merge_commit"
| "rebase_fast_forward"
| "rebase_merge"
| "squash_fast_forward"
| "squash"
)[]
readonly name?: string
Expand All @@ -22066,7 +22082,13 @@ export interface components {
* @default merge_commit
* @enum {string}
*/
readonly merge_strategy?: "fast_forward" | "merge_commit" | "squash"
readonly merge_strategy?:
| "fast_forward"
| "merge_commit"
| "rebase_fast_forward"
| "rebase_merge"
| "squash_fast_forward"
| "squash"
/** @description The commit message that will be used on the resulting commit. Note that the size of the message is limited to 128 KiB. */
readonly message?: string
readonly type: string
Expand Down Expand Up @@ -22826,6 +22848,15 @@ export interface components {
(Readonly<Record<string, unknown>> & {
/** Format: date-time */
readonly created_on?: string
/**
* @description Controls the rules for forking repositories within this workspace.
*
* * **allow_forks**: unrestricted forking
* * **internal_only**: prevents forking of private repositories outside the workspace or to public repositories
*
* @enum {string}
*/
readonly forking_mode?: "allow_forks" | "internal_only"
/** @description Indicates whether the workspace enforces private content, or whether it allows public content. */
readonly is_privacy_enforced?: boolean
/** @description Indicates whether the workspace is publicly accessible, or whether it is
Expand Down
50 changes: 44 additions & 6 deletions src/cloud/openapi/swagger.v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -14571,6 +14571,9 @@
"202": {
"description": "In the Location header, the URL to poll for the pull request merge status"
},
"409": {
"description": "Unable to merge because one of the refs involved changed while attempting to merge"
},
"555": {
"description": "If the merge took too long and timed out.\nIn this case the caller should retry the request later",
"content": {
Expand Down Expand Up @@ -14668,6 +14671,9 @@
},
"403": {
"description": "The user making the request does not have permission to the repo and is different from the user who queued the task"
},
"409": {
"description": "Unable to merge because one of the refs involved changed while attempting to merge"
}
},
"security": [
Expand Down Expand Up @@ -15821,7 +15827,10 @@
"merge_strategies": [
"merge_commit",
"squash",
"fast_forward"
"fast_forward",
"squash_fast_forward",
"rebase_fast_forward",
"rebase_merge"
],
"type": "branch",
"target": {
Expand Down Expand Up @@ -16133,7 +16142,10 @@
"merge_strategies": [
"merge_commit",
"squash",
"fast_forward"
"fast_forward",
"squash_fast_forward",
"rebase_fast_forward",
"rebase_merge"
],
"type": "branch",
"target": {
Expand Down Expand Up @@ -24659,7 +24671,7 @@
"description": "A workspace is where you create repositories, collaborate on\nyour code, and organize different streams of work in your Bitbucket\nCloud account. Workspaces replace the use of teams and users in API\ncalls.\n"
}
],
"x-revision": "33b035ea9108",
"x-revision": "6e8ad69baf7f",
"x-atlassian-narrative": {
"documents": [
{
Expand Down Expand Up @@ -29978,7 +29990,14 @@
"merge_strategy": {
"type": "string",
"description": "The merge strategy that will be used to merge the pull request.",
"enum": ["merge_commit", "squash", "fast_forward"],
"enum": [
"merge_commit",
"squash",
"fast_forward",
"squash_fast_forward",
"rebase_fast_forward",
"rebase_merge"
],
"default": "merge_commit"
}
},
Expand All @@ -30004,7 +30023,14 @@
"description": "Available merge strategies, when this endpoint is the destination of the pull request.",
"items": {
"type": "string",
"enum": ["merge_commit", "squash", "fast_forward"]
"enum": [
"merge_commit",
"squash",
"fast_forward",
"squash_fast_forward",
"rebase_fast_forward",
"rebase_merge"
]
}
},
"default_merge_strategy": {
Expand Down Expand Up @@ -31914,6 +31940,11 @@
"type": "boolean",
"description": "Indicates whether the workspace enforces private content, or whether it allows public content."
},
"forking_mode": {
"type": "string",
"description": "Controls the rules for forking repositories within this workspace.\n\n* **allow_forks**: unrestricted forking\n* **internal_only**: prevents forking of private repositories outside the workspace or to public repositories\n",
"enum": ["allow_forks", "internal_only"]
},
"created_on": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -32362,7 +32393,14 @@
"description": "Available merge strategies for pull requests targeting this branch.",
"items": {
"type": "string",
"enum": ["merge_commit", "squash", "fast_forward"]
"enum": [
"merge_commit",
"squash",
"fast_forward",
"squash_fast_forward",
"rebase_fast_forward",
"rebase_merge"
]
}
},
"default_merge_strategy": {
Expand Down
Loading