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
Can't publish new versions using manage.sh #1436
Comments
Will look into it
…________________________________
From: Steve Kowalik <notifications@github.com>
Sent: Sunday, March 15, 2020 10:07:47 AM
To: PyGithub/PyGithub <PyGithub@noreply.github.com>
Cc: Liuyang Wan <tsfdye@gmail.com>; Mention <mention@noreply.github.com>
Subject: [PyGithub/PyGithub] Can't publish new versions using manage.sh (#1436)
Due to branch protection being enabled for master, this happens when a new release is attempted to be made:
[master afb1259<afb1259>] Publish version 1.47
2 files changed, 30 insertions(+), 1 deletion(-)
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.35 KiB | 460.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
remote: error: GH006: Protected branch update failed for refs/heads/master.
remote: error: Required status check "continuous-integration/travis-ci" is expected. At least 1 approving review is required by reviewers with write access.
To github.com:PyGithub/PyGithub.git
* [new tag] v1.47 -> v1.47
! [remote rejected] master -> master (protected branch hook declined)
error: failed to push some refs to 'git@github.com<mailto:git@github.com>:PyGithub/PyGithub.git'
@sfdye<https://github.com/sfdye> What do you think we should do? 1.47 is up on PyPi, it looks like the tag is up on Github, we're just missing the commit with the release notes, but that means the tag will have to move as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1436>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHYERREFNXBAFOJBA4HC4DRHQZ7HANCNFSM4LKGWVZQ>.
|
manage.sh breaks when there are no changes between the old tag and the new tag. :-( |
🤦♂ Let's fix it |
There's 2 intertwined things -- the CI needs to pass, and 1 approving review is required. Without both of those, you can't push non-tags. |
Sprinkling set -x into manage.sh:
|
Perhaps we should also make publishing new releases go through the PR process 🤔 |
I'm missing what OpenStack did, where you created a signed tag, pushed that, and the merge machinery created the tarball, release notes and the pypi release. :-) |
The only thing about the PR process is we can't squash and merge since that will change the sha of the HEAD commit |
Pull requests are merged using the --no-ff option, except for pull requests with squashed or rebased commits, which are merged using the fast-forward option. Dear GitHub, why you so hard to work with :-( A ff merge is exactly what we want! perhaps a rebased commit of only one commit without HEAD changing out from under it would work, but I'm not sure if I'm wrong. |
Okay, I've temporarily disable branch protection on |
I've pushed the Publish 1.47 commit, comment when you re-enable the branch protection just for my piece of mind. |
Due to branch protection being enabled for master, this happens when a new release is attempted to be made:
@sfdye What do you think we should do? 1.47 is up on PyPi, it looks like the tag is up on Github, we're just missing the commit with the release notes, but that means the tag will have to move as well.
The text was updated successfully, but these errors were encountered: