-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Adapt emoji for Bitbucket server to fix "Database error has occurred" #645
Conversation
const fullDiff = danger.git.diffForFile('foo.js') | ||
const addedLines = danger.git.diffForFile('foo.js', ['add']) | ||
const removedLines = danger.git.diffForFile('foo.js', ['del']) | ||
const fullDiff = danger.git.diffForFile("foo.js") |
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.
I did not add this changes, I think the hooks that the project has are causing this.
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.
cool 👍
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.
cool, looks good 0- thanks
const fullDiff = danger.git.diffForFile('foo.js') | ||
const addedLines = danger.git.diffForFile('foo.js', ['add']) | ||
const removedLines = danger.git.diffForFile('foo.js', ['del']) | ||
const fullDiff = danger.git.diffForFile("foo.js") |
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.
cool 👍
${results.messages.map(printViolation("📖")).join("\n")} | ||
${results.fails.map(printViolation(noEntryEmoji)).join("\n")} | ||
${results.warnings.map(printViolation(warningEmoji)).join("\n")} | ||
${results.messages.map(printViolation(messageEmoji)).join("\n")} |
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.
Yep - this all makes sense 👍
@@ -13,6 +13,11 @@ | |||
|
|||
## Master | |||
|
|||
# 3.8.3 |
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.
Adding this means likely merge conflicts, best to leave them next time - I normally add this version when I create the new release. I should make a danger rule for 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.
I can avoid adding changelog for the next PR. Do you prefer that? Or just add the changelog without specifying the version?
Bitbucket server only supports emojis in recent versions. For example, Bitbucket v4.10.1 does not support them, and when commenting with them the server returns an error saying "Database error has occurred".
Implementation similar to danger/danger@638943d#diff-4b908d596ce5ef33cce2a524a5694a4f