-
Notifications
You must be signed in to change notification settings - Fork 191
Support Reactions of Comments #266
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
Comments
Some initial thoughts: #242 renamed I think it's going to be difficult to create a single function that can handle all of the different comment types. For instance, getting a specific pull request comment does not require having the pull request number available. Neither do you need the issue number to get a specific issue comment . We could in theory author the function to require the I also don't think that adding an additional string parameter to capture the type of comment is a good alternative either. E.g. [ValidateSet('IssueComment', 'PullRequestComment', 'PullRequestReviewComment']
[string] $CommentType Feel free to prove me wrong though or provide a compelling argument. Right now, you can see that in #172 I added Maybe we do move forward with your current designed plan and have Thoughts? |
Do you think there's a scenario when you want only Pull Request review comments and not Pull Request normal comments? I'm thinking about:
What would a user expect that to do? Personally - I'm thinking it'd grab both review and normal comments. |
but then again....... commit comments show up in pull requests on the website... so then a user might expect those to come back as well but I don't agree with that. |
I can imagine scenarios where you'd just want PR comments and not review comments. I could see that resolved possibly with a couple parameter sets (these are just the pull request-related ones):
Keep in mind that this is just for |
Could follow
could do:
or something like that |
Feature Idea Summary
Now that #193 is in, this will track reacting to
Feature Idea Additional Details
In #193, I proposed:
For
Get-GitHubComment
I've can addPullRequestNumber
andIssueNumber
Get-GitHubReaction
will have a parameter set just for Issue (PullRequestNumber
will then be alias so that pipeline works) with an optional Comment parameter. When we support Pull Request Comments we can split up into 2 parameter sets:PullRequestComment
PullRequestReviewComment
where we add a
ReviewComment
paramThis would also align with
Get-GitHubComment
which can get PR Comments today.Requested Assignment
The text was updated successfully, but these errors were encountered: