Tentacat v1.6.0 Tentacat.Repositories.Merges View Source
Link to this section Summary
Functions
Merge a branch into another
Link to this section Functions
Link to this function
merge(client, owner, repo, base, head, commit_message)
View Source
merge(client, owner, repo, base, head, commit_message)
View Source
merge(Tentacat.Client.t(), binary(), binary(), binary(), binary(), binary()) ::
Tentacat.response()
merge(Tentacat.Client.t(), binary(), binary(), binary(), binary(), binary()) :: Tentacat.response()
Merge a branch into another
You can use both branch names and/or a commit SHA1. When the commit message is empty, Github will apply the default commit message.
Example
Tentacat.Repositories.Merges.merge client, "elixir-lang", "elixir", "master", "123-another-feature", ""
Tentacat.Repositories.Merges.merge client, "elixir-lang", "elixir", "master", "123-another-feature", "not the default commit_message"
Tentacat.Repositories.Merges.merge client, "elixir-lang", "elixir", "8e50d79f2ba0d665b9966908cbf22c6f463228d6", "bafdae8b93e74738c12515c14c7cf9acc652650a", ""
More info at: https://developer.github.com/v3/repos/merging/#perform-a-merge