// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`modules/platform/gitlab/index > getBranchPr(branchName) > should return the PR object 1`] = `
{
  "bodyStruct": {
    "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  },
  "createdAt": "2025-05-19T12:00:00.000Z",
  "hasAssignees": false,
  "number": 91,
  "sourceBranch": "some-branch",
  "state": "open",
  "targetBranch": "master",
  "title": "some change",
}
`;

exports[`modules/platform/gitlab/index > getBranchPr(branchName) > should strip deprecated draft prefix from title 1`] = `
{
  "bodyStruct": {
    "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  },
  "createdAt": "2025-05-19T12:00:00.000Z",
  "hasAssignees": false,
  "isDraft": true,
  "number": 91,
  "sourceBranch": "some-branch",
  "state": "open",
  "targetBranch": "master",
  "title": "some change",
}
`;

exports[`modules/platform/gitlab/index > getBranchPr(branchName) > should strip draft prefix from title 1`] = `
{
  "bodyStruct": {
    "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  },
  "createdAt": "2025-05-19T12:00:00.000Z",
  "hasAssignees": false,
  "isDraft": true,
  "number": 91,
  "sourceBranch": "some-branch",
  "state": "open",
  "targetBranch": "master",
  "title": "some change",
}
`;

exports[`modules/platform/gitlab/index > getPr(prNo) > removes deprecated draft prefix from returned title 1`] = `
{
  "bodyStruct": {
    "hash": "23f41dbec0785a6c77457dd6ebf99ae5970c5fffc9f7a8ad7f66c1b8eeba5b90",
  },
  "createdAt": "2025-05-19T12:00:00.000Z",
  "hasAssignees": false,
  "isDraft": true,
  "number": 12345,
  "sourceBranch": "some-branch",
  "state": "merged",
  "targetBranch": "master",
  "title": "do something",
}
`;

exports[`modules/platform/gitlab/index > getPr(prNo) > removes draft prefix from returned title 1`] = `
{
  "bodyStruct": {
    "hash": "23f41dbec0785a6c77457dd6ebf99ae5970c5fffc9f7a8ad7f66c1b8eeba5b90",
  },
  "createdAt": "2025-05-19T12:00:00.000Z",
  "hasAssignees": false,
  "isDraft": true,
  "number": 12345,
  "sourceBranch": "some-branch",
  "state": "merged",
  "targetBranch": "master",
  "title": "do something",
}
`;

exports[`modules/platform/gitlab/index > getPr(prNo) > returns the PR 1`] = `
{
  "bodyStruct": {
    "hash": "23f41dbec0785a6c77457dd6ebf99ae5970c5fffc9f7a8ad7f66c1b8eeba5b90",
  },
  "createdAt": "2025-05-19T12:00:00.000Z",
  "hasAssignees": false,
  "number": 12345,
  "sourceBranch": "some-branch",
  "state": "merged",
  "targetBranch": "master",
  "title": "do something",
}
`;

exports[`modules/platform/gitlab/index > getPr(prNo) > returns the PR with nonexisting branch 1`] = `
{
  "bodyStruct": {
    "hash": "23f41dbec0785a6c77457dd6ebf99ae5970c5fffc9f7a8ad7f66c1b8eeba5b90",
  },
  "createdAt": "2025-05-19T12:00:00.000Z",
  "hasAssignees": true,
  "number": 12345,
  "sourceBranch": "some-branch",
  "state": "open",
  "targetBranch": "master",
  "title": "do something",
}
`;

exports[`modules/platform/gitlab/index > getPr(prNo) > returns the mergeable PR 1`] = `
{
  "bodyStruct": {
    "hash": "23f41dbec0785a6c77457dd6ebf99ae5970c5fffc9f7a8ad7f66c1b8eeba5b90",
  },
  "createdAt": "2025-05-19T12:00:00.000Z",
  "hasAssignees": true,
  "number": 12345,
  "sourceBranch": "some-branch",
  "state": "open",
  "targetBranch": "master",
  "title": "do something",
}
`;

exports[`modules/platform/gitlab/index > initPlatform() > should accept custom endpoint 1`] = `
{
  "endpoint": "https://gitlab.renovatebot.com/",
  "gitAuthor": "Renovate Bot <a@b.com>",
}
`;

exports[`modules/platform/gitlab/index > initPlatform() > should default to gitlab.com 1`] = `
{
  "endpoint": "https://gitlab.com/api/v4/",
  "gitAuthor": "Renovate Bot <a@b.com>",
}
`;

exports[`modules/platform/gitlab/index > initRepo > should fall back respecting when GITLAB_IGNORE_REPO_URL is set 1`] = `
[
  [
    {
      "cloneSubmodules": undefined,
      "cloneSubmodulesFilter": undefined,
      "defaultBranch": "master",
      "ignorePrAuthor": undefined,
      "mergeMethod": "merge",
      "mergeTrainsEnabled": false,
      "repository": "some%2Frepo%2Fproject",
      "url": "http://oauth2:123test@mycompany.com/gitlab/some/repo/project.git",
    },
  ],
]
`;

exports[`modules/platform/gitlab/index > initRepo > should use ssh_url_to_repo if gitUrl is set to ssh 1`] = `
[
  [
    {
      "cloneSubmodules": undefined,
      "cloneSubmodulesFilter": undefined,
      "defaultBranch": "master",
      "ignorePrAuthor": undefined,
      "mergeMethod": "merge",
      "mergeTrainsEnabled": false,
      "repository": "some%2Frepo%2Fproject",
      "url": "ssh://git@gitlab.com/some%2Frepo%2Fproject.git",
    },
  ],
]
`;

exports[`modules/platform/gitlab/index > massageMarkdown(input) > returns updated pr body 1`] = `
"https://github.com/foo/bar/issues/5 plus also [a link](https://github.com/foo/bar/issues/5

  Merge Requests are the best, here are some MRs.

  ## Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

 - [ ] <!-- rebase-branch=renovate/major-got-packages -->[build(deps): update got packages (major)](!2433) (\`gh-got\`, \`gl-got\`, \`got\`)
"
`;
