profile = "vcs/pull-requests@2.0"
provider = "mock"

"""
PullRequests mock map
"""
map PullRequests{
  identifier = Math.floor(Math.random() * 10) + 1
  map result {
    pullRequests: [{
      title: 'Test',
      id: identifier,
      url: `https://gitlab.com/${input.owner}/${input.repo}/-/merge_requests/${identifier}`,
      sha: Math.random().toString(16),
    }]
  }
}