Skip to content
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

Removing old bitbucket pull request commits #421

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

misteral
Copy link

Fix #255 for Bitbucket Pull Request format.

@misteral misteral requested a review from a team as a code owner February 20, 2022 18:56
@misteral misteral mentioned this pull request Feb 20, 2022
4 tasks
Copy link
Member

@ashkulz ashkulz left a comment

Choose a reason for hiding this comment

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

Sorry for the very late delay. Would appreciate merging with master to ensure we pick up the latest CI changes 👍

@@ -41,6 +41,12 @@ def grouped_comments(comments)
comments.group_by { |comment| [comment.path, comment.position] }
end

def ungrouped_comments(comments)
Copy link
Member

Choose a reason for hiding this comment

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

I don't see why this should be in git_formatter, should directly be in bitbucket_pull_request_formatter.


submit_comments(client, additions)

approve_pull_request(comments.count, additions.count, client) if defined?(approve_pull_request)
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need to check this? It's defined below.

Comment on lines +8 to +10
additions = remove_duplicate_comments(existing, comments)

remove_comments(client, existing, comments) if existing.any?
Copy link
Member

Choose a reason for hiding this comment

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

This should be optional. I'm not sure how we'd go about it, maybe a separate PullRequestFormatter which deletes comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete fixed comments
2 participants