"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/cmd/run/watch/watch.go" between
gh-cli-1.12.1.tar.gz and gh-cli-1.13.1.tar.gz

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

watch.go  (gh-cli-1.12.1):watch.go  (gh-cli-1.13.1)
skipping to change at line 126 skipping to change at line 126
} }
} else { } else {
run, err = shared.GetRun(client, repo, runID) run, err = shared.GetRun(client, repo, runID)
if err != nil { if err != nil {
return fmt.Errorf("failed to get run: %w", err) return fmt.Errorf("failed to get run: %w", err)
} }
} }
if run.Status == shared.Completed { if run.Status == shared.Completed {
fmt.Fprintf(out, "Run %s (%s) has already completed with '%s'\n", cs.Bold(run.Name), cs.Cyanf("%d", run.ID), run.Conclusion) fmt.Fprintf(out, "Run %s (%s) has already completed with '%s'\n", cs.Bold(run.Name), cs.Cyanf("%d", run.ID), run.Conclusion)
if opts.ExitStatus && run.Conclusion != shared.Success {
return cmdutil.SilentError
}
return nil return nil
} }
prNumber := "" prNumber := ""
number, err := shared.PullRequestForRun(client, repo, *run) number, err := shared.PullRequestForRun(client, repo, *run)
if err == nil { if err == nil {
prNumber = fmt.Sprintf(" #%d", number) prNumber = fmt.Sprintf(" #%d", number)
} }
opts.IO.EnableVirtualTerminalProcessing() opts.IO.EnableVirtualTerminalProcessing()
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

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