[llvm] [Workflow] Make token optional (PR #88699)

Paulo Matos via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 01:34:49 PDT 2024


https://github.com/pmatos created https://github.com/llvm/llvm-project/pull/88699

Also fix typo in help string for --token.
Fixes #88697

>From ab343600d4a0f31348e0a8fdb90b3c2ee250884c Mon Sep 17 00:00:00 2001
From: Paulo Matos <pmatos at igalia.com>
Date: Mon, 15 Apr 2024 10:34:18 +0200
Subject: [PATCH] [Workflow] Make token optional

Also fix typo in help string for --token.
Fixes #88697
---
 llvm/utils/git/code-format-helper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/utils/git/code-format-helper.py b/llvm/utils/git/code-format-helper.py
index f1207026704e88..5b47206d93f229 100755
--- a/llvm/utils/git/code-format-helper.py
+++ b/llvm/utils/git/code-format-helper.py
@@ -340,7 +340,7 @@ def hook_main():
 
     parser = argparse.ArgumentParser()
     parser.add_argument(
-        "--token", type=str, required=True, help="GitHub authentiation token"
+        "--token", type=str, required=False, help="GitHub authentication token"
     )
     parser.add_argument(
         "--repo",



More information about the llvm-commits mailing list