-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add Comment.react_to_the_comment, Comment.get_reactions, Reaction.delete #636
Add Comment.react_to_the_comment, Comment.get_reactions, Reaction.delete #636
Conversation
e558906
to
9944175
Compare
Build succeeded.
|
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.
LGTM, for the service-side part I would have a look at functools.partial
, it might make it easier for you and reduce code duplication. 😉
ProjectIssueNoteAwardEmoji, | ||
ProjectMergeRequestAwardEmoji, |
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.
👀
pr = self.service.get_project(repo="playground", namespace="nikromen").get_pr(4) | ||
pr_comment = pr.comment(datetime.now().strftime("%m/%d/%Y")) |
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.
Ya, we should do fixtures for playground, comments, etc. as part of #445
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.
Thanks for implementing the get
/delete
operations as well!
57c1c7c
to
2524638
Compare
Build succeeded.
|
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.
LGTM
Reaction.delete, Comment.react_to_comment, Comment.get_reactions added. Not supported by Pagure.
Added support for reacting to comment with given reaction, getting list of reactions on given comment and deleting given reaction.
2524638
to
12a04ad
Compare
Build succeeded.
|
Build succeeded (gate pipeline).
|
Support for reacting to comments, getting list of reactions and deleting reactions.
Also compatibility.md file - updated.
Fixes #630
Ogr now supports reacting to the comment with a given reaction, getting them in list and deleting them (only when reaction is added by using ogr API).