Skip to content

Commit

Permalink
refactor(platform/gitlab): fix api reponse type in createPr fn (#32428
Browse files Browse the repository at this point in the history
)
  • Loading branch information
RahulGautamSingh authored Nov 22, 2024
1 parent e9588f1 commit e3b97c1
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 146 deletions.
62 changes: 0 additions & 62 deletions lib/modules/platform/gitlab/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,67 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`modules/platform/gitlab/index createPr(branchName, title, body) raises with squash enabled when repository squash option is always 1`] = `
{
"id": 1,
"iid": 12345,
"number": 12345,
"sourceBranch": "some-branch",
"title": "some title",
}
`;

exports[`modules/platform/gitlab/index createPr(branchName, title, body) raises with squash enabled when repository squash option is default_on 1`] = `
{
"id": 1,
"iid": 12345,
"number": 12345,
"sourceBranch": "some-branch",
"title": "some title",
}
`;

exports[`modules/platform/gitlab/index createPr(branchName, title, body) returns the PR 1`] = `
{
"id": 1,
"iid": 12345,
"number": 12345,
"sourceBranch": "some-branch",
"title": "some title",
}
`;

exports[`modules/platform/gitlab/index createPr(branchName, title, body) supports draftPR on < 13.2 1`] = `
{
"id": 1,
"iid": 12345,
"isDraft": true,
"number": 12345,
"sourceBranch": "some-branch",
"title": "some title",
}
`;

exports[`modules/platform/gitlab/index createPr(branchName, title, body) supports draftPR on >= 13.2 1`] = `
{
"id": 1,
"iid": 12345,
"isDraft": true,
"number": 12345,
"sourceBranch": "some-branch",
"title": "some title",
}
`;

exports[`modules/platform/gitlab/index createPr(branchName, title, body) uses default branch 1`] = `
{
"id": 1,
"iid": 12345,
"number": 12345,
"sourceBranch": "some-branch",
"title": "some title",
}
`;

exports[`modules/platform/gitlab/index getBranchPr(branchName) should return the PR object 1`] = `
{
"bodyStruct": {
Expand Down
Loading

0 comments on commit e3b97c1

Please sign in to comment.