From 5c9ea8994c2acb4ebe03b02566d76275e4cac3ae Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 9 Feb 2023 19:27:27 +0200 Subject: [PATCH] Attempt to fix strange bug in github api (https://github.com/yairm210/Unciv/actions/runs/4136712446/jobs/7151150557) --- .github/workflows/incrementVersionAndChangelog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/incrementVersionAndChangelog.js b/.github/workflows/incrementVersionAndChangelog.js index fc0e68af40..8acd76ebe0 100644 --- a/.github/workflows/incrementVersionAndChangelog.js +++ b/.github/workflows/incrementVersionAndChangelog.js @@ -41,7 +41,7 @@ async function parseCommits() { var reachedPreviousVersion = false; var nextVersionString = ""; result.data.forEach(commit => { - if (reachedPreviousVersion) return; + if (reachedPreviousVersion || commit.author == null) return; var author = commit.author.login; if (author === "uncivbot[bot]") return; var commitMessage = commit.commit.message.split("\n")[0];