Skip to content

Conversation

@bikmazefe
Copy link
Member

Add create comparison endpoint for branches

https://phrase.atlassian.net/browse/SCD-549

@bikmazefe bikmazefe force-pushed the scd-549 branch 2 times, most recently from 5b48b1d to 93ec4fc Compare November 13, 2025 15:24
@bikmazefe bikmazefe marked this pull request as ready for review November 13, 2025 15:26
@bikmazefe bikmazefe requested review from forelabs and jablan November 13, 2025 15:26
}
],
"responses": {
"200": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does API ever return 200 here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah it used to, but not anymore since we dropped the async switch param. Good catch, thanks!

}
],
"requestBody": {
"required": true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this required, considering that the only parameter is optional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not , but the pipeline is failing when this is set to false, I don't remember the exact location of the failure but I can trigger it again. I think that's why we don't have any required: false under requestBody in .yml files (at least I don't see any). I guess we'd need to check this separately 😬

summary: Create comparison (async.)
description: |
Create a branch comparison asynchronously.
operationId: branch/create_comparison
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command looks a bit different than our other commands. Maybe branch/comparison/create would work too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants