"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/cmd/pr/merge/merge.go" between
gh-cli-1.10.2.tar.gz and gh-cli-1.10.3.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

merge.go  (gh-cli-1.10.2):merge.go  (gh-cli-1.10.3)
skipping to change at line 159 skipping to change at line 159
cmd.Flags().BoolVar(&opts.AutoMergeEnable, "auto", false, "Automatically merge only after necessary requirements are met") cmd.Flags().BoolVar(&opts.AutoMergeEnable, "auto", false, "Automatically merge only after necessary requirements are met")
cmd.Flags().BoolVar(&opts.AutoMergeDisable, "disable-auto", false, "Disab le auto-merge for this pull request") cmd.Flags().BoolVar(&opts.AutoMergeDisable, "disable-auto", false, "Disab le auto-merge for this pull request")
return cmd return cmd
} }
func mergeRun(opts *MergeOptions) error { func mergeRun(opts *MergeOptions) error {
cs := opts.IO.ColorScheme() cs := opts.IO.ColorScheme()
findOptions := shared.FindOptions{ findOptions := shared.FindOptions{
Selector: opts.SelectorArg, Selector: opts.SelectorArg,
Fields: []string{"id", "number", "state", "title", "commits", " mergeable", "headRepositoryOwner", "headRefName"}, Fields: []string{"id", "number", "state", "title", "lastCommit" , "mergeable", "headRepositoryOwner", "headRefName"},
} }
pr, baseRepo, err := opts.Finder.Find(findOptions) pr, baseRepo, err := opts.Finder.Find(findOptions)
if err != nil { if err != nil {
return err return err
} }
isTerminal := opts.IO.IsStdoutTTY() isTerminal := opts.IO.IsStdoutTTY()
httpClient, err := opts.HttpClient() httpClient, err := opts.HttpClient()
if err != nil { if err != nil {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)