Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Make function checkout back to master #174

Merged
merged 4 commits into from
Mar 11, 2019

Conversation

shresthagrawal
Copy link
Contributor

This solves the bug #173

  • make_new_pypi_release() will now check back to master hence will have no side effect to other functions.

  • make_release_pr() will additionally checkout for master again because its important that the current branch is master before release pr branching

  • make_release_pr() will also check back to master after doing the release_pr

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

Copy link
Member

@TomasTomecek TomasTomecek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question, otherwise LGTM, very nice work, glad you were able to track this down.

@@ -429,6 +429,7 @@ def make_release_pr(self, new_pr):
name, email = self.get_user_contact()
repo.set_credentials(name, email)
repo.set_credential_store()
repo.checkout('master')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please elaborate why is this needed? Two lines below there is another checkout. Ideally please include a comment in the code.

@TomasTomecek
Copy link
Member

[test]

@shresthagrawal shresthagrawal mentioned this pull request Mar 9, 2019
Copy link
Contributor

@rpitonak rpitonak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@TomasTomecek TomasTomecek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@TomasTomecek TomasTomecek merged commit cbeec82 into user-cont:master Mar 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants