Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem ==== Currently, `Octokit::Client#update_ref` updates a reference with `force: true` option. It works like `git push --force`. I think the behaviour is a problem for two reasons. Firstly, the behaviour is dangerous. Force push destroys pushed commits sometimes. I think dangerous operations should be optional. Secondly, the default value is false in the GitHub API. > Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to false will make sure you're not overwriting work. Default: false > > https://developer.github.com/v3/git/refs/#update-a-reference I think Octokit default value should be same as the GitHub API. Note === It is a breaking change. If someone uses `update_ref` method without a default value and expects "force push", it will be broken. But I think we should change default behaviour. What do you think? Co-authored-by: Nick Floyd <[email protected]> Co-authored-by: Keegan Campbell <[email protected]>