Skip to content

Commit

Permalink
Update GenerateCommitMessageService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Dec 12, 2024
1 parent 64833be commit 647afd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Src/AiCommitMessage/Services/GenerateCommitMessageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ namespace AiCommitMessage.Services;
/// </summary>
public class GenerateCommitMessageService
{
private static readonly Regex MergeConflictPattern = new Regex(@"^Merge branch '.*' into .*$", RegexOptions.Compiled);

private static bool IsMergeConflictResolution(string message) => MergeConflictPattern.IsMatch(message);

/// <summary>
/// Generates a commit message based on the provided options and the OpenAI API.
/// </summary>
Expand Down

0 comments on commit 647afd4

Please sign in to comment.