-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changelog (and potentially other commands) can't handle working from branches #2
Comments
From @vdice on August 23, 2016 20:50
@helgi I think indeed this is the issue. @Joshua-Anderson thoughts? |
From @Joshua-Anderson on August 23, 2016 20:54 Yes, you needed to push your branch before using deisrel to generate a changelog. |
From @Joshua-Anderson on August 23, 2016 20:54 @helgi is this behavior ok or would you like to see something different? |
From @helgi on August 23, 2016 21:2 Not really sure why I'd have to push - So we can use GH HTTP APIs instead of dropping down to git mechanics? |
From @Joshua-Anderson on August 23, 2016 21:5 We use the GH api to get the commit diff between the old tag and the SHA of the new tag. If the new sha doesn't exist, it can't calculate the range. We could use raw git, but it's less deterministic (different checkouts, haven't pulled) and parsing the output from the |
From @helgi on August 23, 2016 21:8 The tool will still have to verify the branch has been pushed and all that, which would involve git operations, no? |
From @Joshua-Anderson on August 23, 2016 21:10 I'd see this workflow for a patch release:
|
From @helgi on August 23, 2016 21:16 Alright but that doesn't really answer my question - The tool needs to be able to enforce certain steps happen and let you know when they do not. Such as "you have not pushed your branch" and similar. |
From @Joshua-Anderson on August 23, 2016 21:35
I'd personally feel this is more of a documentation problem than a |
From @helgi on August 20, 2016 21:2
I had to release v2.4.1 and base if of v2.4.0 instead of master / workflow-dev. When I went to the changelog individual phase then that command got rather confused.
The way I created my branch in Controller was to create a
stable-v2.4.1
(name doesn't really matter much) from the v2.4.0 tag, cherry-pick changes from master that I wanted released (note that in other cases special commits may have to be done since cherry-pick may not always work).I did not push the branch up. When I ran
changelog individual
then it tried to pull info from master... I tried--base-tag
and--sha
but it wasn't very clear what was what.Maybe this is all side effect of always working against the GH API? Maybe I should have pushed my branch?
Copied from original issue: deis/deisrel#130
The text was updated successfully, but these errors were encountered: