-
Notifications
You must be signed in to change notification settings - Fork 12
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
Teach tom to add tags #54
Conversation
Instead of one remote with different URLs for push and pull, we now have two remotes: `upstream` and `origin`, so you could easily push directly to upstream remote - useful when pushing tags, since we don't (can't?) create pull requests for them.
@@ -7,7 +7,7 @@ | |||
"reviewers": ["olehermanse", "vpodzime"], | |||
"jenkins": "https://ci.cfengine.com/", | |||
"jenkins_job": "pr-pipeline", | |||
"bot_features": ["create_pr_magic", "update_dependencies", "generate_changelogs", "ping_reviewer"], | |||
"bot_features": ["create_pr_magic", "update_dependencies", "generate_changelogs", "ping_reviewer", "tag_builds"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lex-2008 This config is for the instance of tom running on jenkins machine. I believe it should not have any of the slack features, since you are running this elsewhere?
@@ -47,6 +47,8 @@ def __init__(self, config, secrets, directory, interactive): | |||
if 'generate_changelogs' in config["bot_features"]: | |||
self.changelogger = ChangelogGenerator( | |||
self.github, self.slack, self.dispatcher, 'Lex-2008') | |||
if 'tag_builds' in config["bot_features"]: | |||
self.tagger = Tagger(self.github, self.slack, self.dispatcher, 'Lex-2008') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please talk to @nickanderson about not using a personal account for this.
def push(self, branch_name): | ||
"""Pushes local branch to remote repo, optionally also setting upstream | ||
def push(self, ref=None, remote='origin'): | ||
"""Pushes local branch or tag to remote repo, optionally also setting it as upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer sets upstream
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust @olehermanse, approved!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust @olehermanse, approved!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust @olehermanse, approved!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust @olehermanse, approved!
It was added in cfengine#54, but wasn't enabled by default.
No description provided.