-
Notifications
You must be signed in to change notification settings - Fork 27
Conversation
release_bot/configuration.py
Outdated
elif self.pagure_token != '' and self.pagure_username != '': | ||
return self.get_pagure_project(username=self.pagure_username, | ||
repository=self.repository_name, | ||
token=self.pagure_token) |
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.
This PR should help you with that..;-) Feel free to add some comments. I would appreciate some opinions from the perspective of release-bot.
We can release a new version of OGR after merging that...
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.
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.
We can discuss that in #230 ...
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.
Haven't tested but LGTM.
Does this fully implement #190 or are there any other parts which could be replaced with ogr?
@jpopelka This definitely doesn't fully implement #190, I will go through release-bot functions and make smaller PRs to complete #190. This also needs to contribute to ogr. I also deleted the test for adding a comment on Issue/PR since it is already tested in ogr. However, we will need to provided integration tests for Pagure and Github. But firstly, I assume to replace more API calls with ogr. |
custom_instances=[ | ||
GithubService(token=self.github_token), | ||
PagureService(token=self.pagure_token, | ||
instance_url=self.pagure_instance_url)]) |
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.
👍
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.
Thank you! LGTM, merging...
Commenting on Issues and PRs are available for Github but also Pagure since now. I added two new variables into the private config file
pagure_token
andpagure_username
. I'm just thinking if we should add this into README or wait till all Github features will be implemented also for Pagure.Ogr doesn't have released commenting on issues yet. If you want to try locally you must install ogr from Github, not from requirements.txt
pip install git+https://github.com/packit-service/ogr@master