Skip to content

👽️ Update to Bitbucket Server 9.2 #15

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

Merged
merged 2 commits into from
Oct 17, 2024
Merged
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
@@ -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"
},
33 changes: 32 additions & 1 deletion src/cloud/openapi/openapi-typescript.ts
Original file line number Diff line number Diff line change
@@ -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: {
@@ -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
@@ -18949,6 +18959,9 @@ export interface components {
readonly merge_strategies?: readonly (
| "fast_forward"
| "merge_commit"
| "rebase_fast_forward"
| "rebase_merge"
| "squash_fast_forward"
| "squash"
)[]
})
@@ -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
@@ -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
@@ -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
50 changes: 44 additions & 6 deletions src/cloud/openapi/swagger.v3.json
Original file line number Diff line number Diff line change
@@ -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": {
@@ -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": [
@@ -15821,7 +15827,10 @@
"merge_strategies": [
"merge_commit",
"squash",
"fast_forward"
"fast_forward",
"squash_fast_forward",
"rebase_fast_forward",
"rebase_merge"
],
"type": "branch",
"target": {
@@ -16133,7 +16142,10 @@
"merge_strategies": [
"merge_commit",
"squash",
"fast_forward"
"fast_forward",
"squash_fast_forward",
"rebase_fast_forward",
"rebase_merge"
],
"type": "branch",
"target": {
@@ -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": [
{
@@ -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"
}
},
@@ -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": {
@@ -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"
@@ -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": {
436 changes: 427 additions & 9 deletions src/server/openapi/openapi-typescript.ts

Large diffs are not rendered by default.

7,713 changes: 4,141 additions & 3,572 deletions src/server/openapi/swagger.v3.json

Large diffs are not rendered by default.