func getCommonPullRequest()

in cmd/release/pull_request/pr_input.go [42:52]


func getCommonPullRequest(branchBase string, input PullRequestInputBase) (PullRequest, error) {
	convertedFilePaths, err := convertFilePaths(input.FilePaths())
	if err != nil {
		return PullRequest{}, fmt.Errorf("failed to make new pull request due to error with file paths: %v", err)
	}
	return PullRequest{
		branch:     formatBranch(branchBase),
		filesPaths: convertedFilePaths,
		isBot:      input.IsBot(),
	}, nil
}