-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Use full unformatted subject message #1127
Conversation
We want to use danger js locally to check the format of conventional commits for the commit messages. Due to that, we need to have a full unformatted subject line. Similar issue is explained in danger#977
This will probably need additional work - message is used to ensure it is a single line because it is serialized to JSON right after. |
hey @orta 👋
Tested the change and it looks like it works fine. Change I've tried to find a good place to add tests for this functionality but didn't find, also it looks a bit tricky to test And travis pr check is failing with some "Bad credentials message". Not sure that this change could cause it 😞 Please help 😃 |
hey @orta 👋 any news? can we merge this PR? |
Remember I do this in my spare time. Can you verify that having |
@orta sure, checking... |
hey @orta! It appeared that previous implementation does not respect P.S. Had to update typescript, because the new library using new types, which are supported in TS 3.8, but in Danger it was super outdated (3.1.1). And another change was because of that. But looks like it doesn't break anything. |
@@ -70,7 +70,7 @@ export interface ExecutorOptions { | |||
const isTests = typeof jest === "object" | |||
|
|||
interface ExitCodeContainer { | |||
exitCode: number | |||
exitCode?: number |
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.
hey @orta ! Can you please review this PR? 🙇 |
I'm not a fan of adding new dependencies to Danger JS and I don't think this is worth it. I'll take reverting back to 6a17936 and accept that 👍🏻 |
@orta what do you think if I copy partially the part from the |
Maybe, kinda depends on how much code it is - given the goal is to import a string, switching |
There are few characters, which can affect |
@orta please take a look at the new change. I've not rolled back the typescript update, because it looks for me like a healthy dependency update for the library and it looks like not breaking anything |
Looks great to me, let's get this shipped |
the included gitlog is BSD-3-Clause licensed, meaning you must preserve any copyright notices, which is not done here. read the license here: the file in question: |
We want to use danger js locally to check the format of conventional commits for the commit messages. Due to that, we need to have a full unformatted subject line. Similar issue is explained in #977