seachicken / gh-poi

✨ Safely clean up your local branches
https://dev.to/seachicken/safely-clean-up-your-local-branches-9i3
MIT License
642 stars 17 forks source link

Fix PR reference when there are multiple remotes #30

Closed seachicken closed 2 years ago

seachicken commented 2 years ago

Fixes #29

https://github.com/seachicken/gh-poi/issues/29#issuecomment-1036208476

  1. Target repositories whose remote name is origin, otherwise use the first element

Since the name "origin" is often given by default, we'll first solve it with 1. as a simple implementation.

codecov[bot] commented 2 years ago

Codecov Report

Merging #30 (6a320e0) into main (267f279) will decrease coverage by 0.27%. The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
- Coverage   90.25%   89.97%   -0.28%     
==========================================
  Files           3        3              
  Lines         472      499      +27     
==========================================
+ Hits          426      449      +23     
- Misses         36       39       +3     
- Partials       10       11       +1     
Impacted Files Coverage Δ
poi.go 91.92% <85.71%> (-0.55%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 267f279...6a320e0. Read the comment docs.