You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[vergo:minor-release] Look for head commit at any point of versioned branch (#14)
* Look for head commit at any point of versioned branch
- This is an attempt to fix#13, using code shamelessly stolen from src-d/go-git#611 (comment)
- Working on this in the background so opening a draft PR for now, with plans to extract this code, test it more thorougly and add error handling
Required by #13
* Renames and remove unneeded map
* Handle errors, log and default to false
* Add changelog entry
* Fix func tests
* Naming improvements
* Add memorization to speed up execution
* Avoid recursion by iterating over the git log
* Improve error messages
[[ "$(vergo bump minor --tag-prefix=apple 2>&1)"==*'invalid headless checkout'* ]]
177
+
git checkout d13ae40 #commit on the `test-branch` branch
178
+
[[ "$(vergo check release --tag-prefix=apple 2>&1)"==*' is not on a versioned branch'* ]]
179
+
[[ "$(vergo bump minor --tag-prefix=apple 2>&1)"==*' is not on a versioned branch'* ]]
180
180
181
181
[[ "$(git branch -l | grep -v HEAD)"=="" ]] #make sure no local branch
182
182
git checkout a54f1f7
183
183
vergo check release --tag-prefix=apple
184
184
[[ "$(vergo bump minor --tag-prefix=apple --log-level=trace 2>&1)"==*'Set tag apple-0.2.0'* ]]
185
185
186
186
git checkout origin/master -b master #create local branch
187
-
[[ "$(vergo check release --tag-prefix=apple --log-level=trace --versioned-branch-names main 2>&1)"==*'branch master is not in main branches list: main'* ]]
188
-
[[ "$(vergo bump minor --tag-prefix=apple --log-level=trace --versioned-branch-names main 2>&1)"==*'branch master is not in main branches list: main'* ]]
187
+
[[ "$(vergo check release --tag-prefix=apple --log-level=trace --versioned-branch-names main 2>&1)"==*'branch master is not in versioned branches list: main'* ]]
188
+
[[ "$(vergo bump minor --tag-prefix=apple --log-level=trace --versioned-branch-names main 2>&1)"==*'branch master is not in versioned branches list: main'* ]]
0 commit comments