From 563e0db1775af30da3cc2af7e70d2493fd0ca49c Mon Sep 17 00:00:00 2001 From: walkowif <59475134+walkowif@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:01:14 +0100 Subject: [PATCH] Add CLA workflow (#6) Required for: https://github.com/insightsengineering/idr-tasks/issues/355 --------- Signed-off-by: walkowif <59475134+walkowif@users.noreply.github.com> --- .github/workflows/cla.yaml | 18 ++++++++++++++++++ cmd/root.go | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cla.yaml diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml new file mode 100644 index 0000000..b674b0b --- /dev/null +++ b/.github/workflows/cla.yaml @@ -0,0 +1,18 @@ +name: CLA 🔏 + +on: + issue_comment: + types: + - created + # For PRs that originate from forks + pull_request_target: + types: + - opened + - closed + - synchronize + +jobs: + CLA: + name: CLA 📝 + uses: insightsengineering/.github/.github/workflows/cla.yaml@main + secrets: inherit diff --git a/cmd/root.go b/cmd/root.go index c4eea3d..1d42566 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -86,10 +86,10 @@ func newRootCommand() { Use: "git-synchronizer", Short: "A tool to synchronize git repositories.", Long: `A tool to synchronize git repositories from one git server to another.`, - PersistentPreRun: func(cmd *cobra.Command, args []string) { + PersistentPreRun: func(_ *cobra.Command, _ []string) { initializeConfig() }, - Run: func(cmd *cobra.Command, args []string) { + Run: func(_ *cobra.Command, _ []string) { setLogLevel() fmt.Println(`config = "` + cfgFile + `"`)