Skip to content

Commit

Permalink
(chocolatey#1234) Some message.
Browse files Browse the repository at this point in the history
No new line this time. Let's see how long we can make this line. We'll
just keep typing, and have it be long enough to wrap a few times. How
much more do you think we need? We're at > 100 beyond 72 🤷 Might
as well keep going. Maybe we'll stop at 300? Or perhaps 4? Naw, let's
just do it 200.
  • Loading branch information
corbob committed May 15, 2022
1 parent 27c0440 commit 8a8e059
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .husky/csx/commit-msg.csx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using System.Text.RegularExpressions;
private var titlePattern = @"^(?=.{0,50}$)(?:\(.*\)).*$";
private var commitFile = Args[0];
private var commitMessage = File.ReadAllLines(commitFile);
private var title = commitMessage.FirstOrDefault();
private var title = commitMessage[0];
private var exitCode = 0;
private var startLine = 2;
private var commitStringBuilder = new StringBuilder();
Expand Down Expand Up @@ -42,4 +42,5 @@ for (int i = startLine ; i < commitMessage.Length ; i++) {
}

File.WriteAllText(commitFile, commitStringBuilder.ToString());
Console.Write(issuesStringBuilder.ToString());
return exitCode;

0 comments on commit 8a8e059

Please sign in to comment.