eventbrite / invoke-release

A set of command line tools that help software engineers release Python projects quickly, easily, and in a consistent manner.
Apache License 2.0
0 stars 3 forks source link

Fix open pr #29

Closed eb-fmezzabotta closed 5 years ago

eb-fmezzabotta commented 5 years ago

The new flow would look like this:

➜ invoke release
Invoke Release 4.4.0
Releasing Test Guillaume...
Current version: 0.4.18
Would you like to enter changelog details for this release? (Y/n/exit): n
Enter a new version (or "exit"): 0.4.20
The release has not yet been committed. Are you ready to commit it? (Y/n):
Releasing Test Guillaume version: 0.4.20
M       test_devtools/version.py
Switched to a new branch 'invoke-release-master-0.4.20'
[invoke-release-master-0.4.20 76c2933] Released Test Guillaume version 0.4.20
 1 file changed, 1 insertion(+), 1 deletion(-)
Push release changes to remote origin (branch "invoke-release-master-0.4.20")? (y/N/rollback): y
Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 429 bytes | 429.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote:
remote: Create a pull request for 'invoke-release-master-0.4.20' on GitHub by visiting:
remote:      https://github.com/eventbrite/test-devtools/pull/new/invoke-release-master-0.4.20
remote:
To github.com:eventbrite/test-devtools.git
 * [new branch]      invoke-release-master-0.4.20 -> invoke-release-master-0.4.20
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
Deleted branch invoke-release-master-0.4.20 (was 76c2933).
Already on 'master'
Your branch is up to date with 'origin/master'.
GitHub PR created successfully. URL: https://github.com/eventbrite/test-devtools/pull/128

If you don't have GITHUB_TOKEN set:

➜ invoke release
Invoke Release 4.4.0
Releasing Test Guillaume...
Current version: 0.4.6
Would you like to enter changelog details for this release? (Y/n/exit):
Would you like to gather commit messages from recent commits and add them to the changelog? (Y/n/exit):
Enter a new version (or "exit"): 0.4.11
The release has not yet been committed. Are you ready to commit it? (Y/n):
Releasing Test Guillaume version: 0.4.11
M       test_devtools/version.py
Switched to a new branch 'invoke-release-master-0.4.11'
[invoke-release-master-0.4.11 08ca4e9] Released Test Guillaume version 0.4.11
 1 file changed, 1 insertion(+), 1 deletion(-)
Push release changes to remote origin (branch "invoke-release-master-0.4.11")? (y/N/rollback): y
Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 429 bytes | 429.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote:
remote: Create a pull request for 'invoke-release-master-0.4.11' on GitHub by visiting:
remote:      https://github.com/eventbrite/test-devtools/pull/new/invoke-release-master-0.4.11
remote:
To github.com:eventbrite/test-devtools.git
 * [new branch]      invoke-release-master-0.4.11 -> invoke-release-master-0.4.11
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
Deleted branch invoke-release-master-0.4.11 (was 08ca4e9).
Already on 'master'
Your branch is up to date with 'origin/master'.
Then environment variable `GITHUB_TOKEN` is not set. Will not open GitHub PR.
You're almost done! The release process will be complete when you create a pull request and it is merged.

If you do have the GITHUB_TOKEN set but it's wrong or don't have enough permissions or smth:

➜ invoke release
Invoke Release 4.4.0
Releasing Test Guillaume...
Current version: 0.4.14
Would you like to enter changelog details for this release? (Y/n/exit):
Would you like to gather commit messages from recent commits and add them to the changelog? (Y/n/exit):
Enter a new version (or "exit"): 0.4.18
The release has not yet been committed. Are you ready to commit it? (Y/n):
Releasing Test Guillaume version: 0.4.18
M       test_devtools/version.py
Switched to a new branch 'invoke-release-master-0.4.18'
[invoke-release-master-0.4.18 620bbfc] Released Test Guillaume version 0.4.18
 1 file changed, 1 insertion(+), 1 deletion(-)
Push release changes to remote origin (branch "invoke-release-master-0.4.18")? (y/N/rollback):
Not pushing changes to remote origin!
Make sure you remember to explicitly push invoke-release-master-0.4.18 (or revert your local changes if you are trying to cancel)! You can push with the following command:
    git push origin invoke-release-master-0.4.18:invoke-release-master-0.4.18
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
ERROR: Could not open Github PR
You're almost done! The release process will be complete when you create a pull request and it is merged.

Also this was tested in py2 and py3 to verify compatibiltiy.

bar commented 5 years ago

I'd love to see how the flow looks like now somewhere.

Also can you please add some description to the PR?