Skip to content

Commit

Permalink
Add CLA workflow (#6)
Browse files Browse the repository at this point in the history
Required for:
insightsengineering/idr-tasks#355

---------

Signed-off-by: walkowif <[email protected]>
  • Loading branch information
walkowif authored Mar 15, 2024
1 parent f841548 commit 563e0db
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 + `"`)
Expand Down

0 comments on commit 563e0db

Please sign in to comment.