Skip to content

Commit 50e7cd9

Browse files
martinsifraclaude
andcommitted
feat: Add autoMerge support to MergeRequest API
- DMD-1081 - Expose the MergeRequest::$autoMergeStrategy and autoMergeAt through the create and update merge request endpoints. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4db3e8f commit 50e7cd9

1 file changed

Lines changed: 29 additions & 2 deletions

File tree

apiary.apib

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9902,6 +9902,11 @@ other buckets (production buckets or buckets belongs the other development branc
99029902
+ title (required, string) - title of the merge request
99039903
+ description (optional, string) - description of the merge request
99049904
+ externalId (optional, string) - identifier of the merge request in an external system
9905+
+ autoMergeStrategy (optional, enum[string]) - auto-merge strategy
9906+
+ Members
9907+
+ `immediately`
9908+
+ `scheduled`
9909+
+ autoMergeAt (optional, string) - ISO 8601 datetime for scheduled auto-merge, required when autoMergeStrategy is "scheduled" (e.g. "2026-04-01T12:00:00+00:00")
99059910
99069911
+ Request (application/json)
99079912
@@ -9916,7 +9921,9 @@ other buckets (production buckets or buckets belongs the other development branc
99169921
"branchIntoId": 123,
99179922
"title": "Refactor DB extractors",
99189923
"description": "DB exctractor have new columns now",
9919-
"externalId": "ticket-123"
9924+
"externalId": "ticket-123",
9925+
"autoMergeStrategy": "scheduled",
9926+
"autoMergeAt": "2026-04-01T12:00:00+00:00"
99209927
}
99219928
99229929
+ Response 201 (application/json)
@@ -9942,6 +9949,8 @@ other buckets (production buckets or buckets belongs the other development branc
99429949
"mergerName": ""
99439950
},
99449951
"externalId": "ticket-123",
9952+
"autoMergeStrategy": "scheduled",
9953+
"autoMergeAt": "2026-04-01T12:00:00+00:00",
99459954
"approvals": [
99469955
{
99479956
"approverId": 123,
@@ -9959,6 +9968,11 @@ other buckets (production buckets or buckets belongs the other development branc
99599968
+ title (required, string) - title of the merge request
99609969
+ description (optional, string) - description of the merge request
99619970
+ externalId (optional, string) - identifier of the merge request in an external system
9971+
+ autoMergeStrategy (optional, enum[string]) - auto-merge strategy
9972+
+ Members
9973+
+ `immediately`
9974+
+ `scheduled`
9975+
+ autoMergeAt (optional, string) - ISO 8601 datetime for scheduled auto-merge, required when autoMergeStrategy is "scheduled" (e.g. "2026-04-01T12:00:00+00:00")
99629976
99639977
+ Request (application/json)
99649978
@@ -9971,7 +9985,8 @@ other buckets (production buckets or buckets belongs the other development branc
99719985
{
99729986
"title": "New title",
99739987
"description": "New desc",
9974-
"externalId": "ticket-123"
9988+
"externalId": "ticket-123",
9989+
"autoMergeStrategy": "immediately"
99759990
}
99769991
99779992
+ Response 200 (application/json)
@@ -9997,6 +10012,8 @@ other buckets (production buckets or buckets belongs the other development branc
999710012
"mergerName": ""
999810013
},
999910014
"externalId": "ticket-123",
10015+
"autoMergeStrategy": "immediately",
10016+
"autoMergeAt": null,
1000010017
"approvals": [
1000110018
{
1000210019
"approverId": 123,
@@ -10041,6 +10058,8 @@ List all merge requests available in the project defined by token.
1004110058
"mergerName": ""
1004210059
},
1004310060
"externalId": "ticket-123",
10061+
"autoMergeStrategy": "scheduled",
10062+
"autoMergeAt": "2026-04-01T12:00:00+00:00",
1004410063
"approvals": [
1004510064
{
1004610065
"approverId": 123,
@@ -10105,6 +10124,8 @@ Detail of Merge request also contains `content` of changed objects.
1010510124
"mergerName": ""
1010610125
},
1010710126
"externalId": "ticket-123",
10127+
"autoMergeStrategy": "scheduled",
10128+
"autoMergeAt": "2026-04-01T12:00:00+00:00",
1010810129
"approvals": [
1010910130
{
1011010131
"approverId": 123,
@@ -10166,6 +10187,8 @@ Will move Merge request state `development` -> `in_review`. If branch has an ope
1016610187
"mergerName": ""
1016710188
},
1016810189
"externalId": "ticket-123",
10190+
"autoMergeStrategy": "scheduled",
10191+
"autoMergeAt": "2026-04-01T12:00:00+00:00",
1016910192
"approvals": [
1017010193
{
1017110194
"approverId": 123,
@@ -10228,6 +10251,8 @@ Each project has defined required number of approvals. If the last approval arri
1022810251
"mergerName": ""
1022910252
},
1023010253
"externalId": "ticket-123",
10254+
"autoMergeStrategy": "scheduled",
10255+
"autoMergeAt": "2026-04-01T12:00:00+00:00",
1023110256
"approvals": [
1023210257
{
1023310258
"approverId": 123,
@@ -10320,6 +10345,8 @@ Requesting changes will remove all approvals and move the Merge request to `deve
1032010345
"mergerName": ""
1032110346
},
1032210347
"externalId": "ticket-123",
10348+
"autoMergeStrategy": "scheduled",
10349+
"autoMergeAt": "2026-04-01T12:00:00+00:00",
1032310350
"approvals": [
1032410351
{
1032510352
"approverId": 123,

0 commit comments

Comments
 (0)