You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2022/11/06 17:12:27 UTC

[beam] branch master updated: PR Bot - Dont throw error on return code 1

This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new e0e10b9e543 PR Bot - Dont throw error on return code 1
e0e10b9e543 is described below

commit e0e10b9e5432643b884c381d145e5924cc4ef193
Author: Danny McCormick <da...@google.com>
AuthorDate: Sun Nov 6 12:12:22 2022 -0500

    PR Bot - Dont throw error on return code 1
---
 scripts/ci/pr-bot/shared/persistentState.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ci/pr-bot/shared/persistentState.ts b/scripts/ci/pr-bot/shared/persistentState.ts
index 336fa91be66..5dd1bac186a 100644
--- a/scripts/ci/pr-bot/shared/persistentState.ts
+++ b/scripts/ci/pr-bot/shared/persistentState.ts
@@ -39,7 +39,7 @@ async function commitStateToRepo() {
       `Unable to get most recent repo contents, commit may fail: ${err}`
     );
   }
-  const changes = await exec.exec("git diff-index --quiet origin/pr-bot-state");
+  const changes = await exec.exec("git diff-index --quiet origin/pr-bot-state", [], {ignoreReturnCode: true});
   if (changes == 1) {
     await exec.exec("git add state/*");
     await exec.exec(`git commit -m "Updating config from bot"`);