Ejemplo n.º 1
0
func createCommitMessage(message string) github.RepositoryCommit {
	repoCommit := new(github.RepositoryCommit)
	commit := new(github.Commit)
	commit.Message = &message
	repoCommit.Commit = commit
	return *repoCommit
}
func createGHCommit(message string, sha string) *github.RepositoryCommit {
	repoCommit := new(github.RepositoryCommit)
	commit := new(github.Commit)
	commit.Message = &message
	commit.SHA = &sha
	repoCommit.SHA = &sha
	repoCommit.Commit = commit
	return repoCommit
}