Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Git/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public string CommitTree(string authorName, string authorEmail, string treeRef,
{
var tempFile = Path.GetTempFileName();
File.WriteAllText(tempFile, message);
try {
try
{
Environment.SetEnvironmentVariable("GIT_AUTHOR_NAME", authorName);
Environment.SetEnvironmentVariable("GIT_AUTHOR_EMAIL", authorEmail);
Environment.SetEnvironmentVariable("GIT_COMMITTER_NAME", authorName);
Expand Down
7 changes: 4 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -63,8 +63,9 @@ static async Task AsyncMain(IConfigurationRoot config)
Console.WriteLine($"Open pull requests ({pullRequests.Count}):");
foreach (var pullRequest in pullRequests)
{
var autoMerge = memberLogins.Contains(pullRequest.Author?.Login)
&& !pullRequest.Labels.Nodes.Any(label => label.Name == gitHubConfig["excludeLabel"]);
var autoMerge =
(memberLogins.Contains(pullRequest.Author?.Login) && !pullRequest.Labels.Nodes.Any(label => label.Name == gitHubConfig["excludeLabel"]))
|| pullRequest.Labels.Nodes.Any(label => label.Name == gitHubConfig["includeLabel"]);
Console.WriteLine($" #{pullRequest.Number} {pullRequest.Title}");
Console.WriteLine($" By: {pullRequest.Author?.Login}");
Console.WriteLine($" Branch: {pullRequest.HeadRef?.Name}");
Expand Down