cli/pkg/cmd/pr/shared
Tyler McGoffin 48e2681017 Merge branch 'trunk' into find-pr-by-rev-parse-push
A recent refactor caused the API for ReadBranchConfig to change, resulting
in changes for its consumers. Additionally, there was a large refactor of
the tests associated with ReadBranchConfig and its consumers to gain
confidence in this refactor. This commit attempts to resolve the
conflicts between the refactor and this effort as well as massage the
changes introduced here to reflect the refactor.

The refactor PR can be found here: https://github.com/cli/cli/pull/10197

I'll note that there are still a few failing tests in status_test.go. I
haven't had a chance to fully grok while they are failing, yet, and
suspect that some insights from the original PR author may be helpful
here.

Full disclaimer: I haven't verified any of this is working locally yet.
My primary motivation is to get these new changes working together in a
manner that unblocks further iteration on this effort.

* trunk: (79 commits)
  Enhance help docs on ext upgrade notices
  chore: fix some function names in comment
  Expand docs on cleaning extension update dir
  Simplifying cleanExtensionUpdateDir logic
  Separate logic for checking updates
  Capture greater detail on updaterEnabled
  Restore old error functionality of prSelectorForCurrentBranch
  Change error handling on ReadBranchConfig to respect git Exit Codes
  fix: add back colon that I removed
  fix: actually read how MaxFunc work and simplify the code
  fix: padded display
  Collapse dryrun checks in ext bin upgrade
  Bump github.com/mattn/go-colorable from 0.1.13 to 0.1.14
  Rename test user in tests
  Change pr number in test
  Surface and handle error from ReadBranchConfig in parseCurrentBranch
  Directly stub headBranchConfig in Test_tryDetermineTrackingRef
  Refactor error handling in ReadBranchConfig to avoid panic
  Refine error handling of ReadBranchConfig
  Add test for empty BranchConfig in prSelectorForCurrentBranch
  ...
2025-01-13 20:38:00 -08:00
..
commentable.go Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
comments.go Add support for editing last issue/pr comment (#6384) 2022-10-18 08:10:12 +00:00
completion.go Add --reviewer flag completion (#6873) 2023-01-25 18:02:13 +01:00
display.go Adding no checks message when PR has no checks 2022-10-05 22:10:38 -03:00
display_test.go Adding no checks message when PR has no checks 2022-10-05 22:10:38 -03:00
editable.go linter appeasement 2023-08-17 17:17:26 -05:00
editable_http.go Correct some typos 2023-04-21 03:51:31 +02:00
finder.go Merge branch 'trunk' into find-pr-by-rev-parse-push 2025-01-13 20:38:00 -08:00
finder_test.go Merge branch 'trunk' into find-pr-by-rev-parse-push 2025-01-13 20:38:00 -08:00
params.go chore: tidy up 2024-11-07 10:20:23 +11:00
params_test.go Replace old search utility with new search (#5366) 2022-04-06 16:44:52 +02:00
preserve.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
preserve_test.go Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
reaction_groups.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
state.go fix: ignore template flag 2024-11-07 10:20:23 +11:00
survey.go Clean up Title Survey empty title message code 2024-10-17 14:40:17 -07:00
survey_test.go Remove . from test case for TestTitleSurvey 2024-10-17 14:45:35 -07:00
templates.go Add issue create --editor 2024-07-09 21:01:50 +09:00
templates_test.go Add issue create --editor 2024-07-09 21:01:50 +09:00