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

Fix Danger doesn't add a comment if commented line is not part of diff #1272

Merged
merged 1 commit into from Apr 21, 2022

Conversation

Rouby
Copy link
Contributor

@Rouby Rouby commented Apr 21, 2022

This PR should fix the bug mentioned in #1207

Signed-off-by: Jonathan Burke <jonathan.burke@codecentric.de>
@orta
Copy link
Member

orta commented Apr 21, 2022

This feels pretty good to me (aside from the prettier faff, which I can ignore) thanks!

@orta orta merged commit e6f4b18 into danger:main Apr 21, 2022
@Rouby Rouby deleted the fix/issue-1207 branch April 21, 2022 11:44
@orta
Copy link
Member

orta commented Apr 21, 2022

Copy link
Member

@fbartho fbartho left a comment

Choose a reason for hiding this comment

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

Great work!! This has been grinding my gears.

inlineResultsForReview
.map((inlineResult) => inlineResultsIntoResults(inlineResult))
.reduce(mergeResults, emptyResult)
),
Copy link
Member

Choose a reason for hiding this comment

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

Great fix! I had a suspicion the root issue was around here, but the 3 times I traced it, I couldn’t figure it out — indeed it looked like everything was being caught & handled..

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.

None yet

3 participants