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

refactor(platform/gitlab): fix api reponse type in createPr fn #32428

Merged
merged 6 commits into from
Nov 22, 2024
Merged
Changes from 4 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
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": {
Loading