diff --git a/devel-importer/main.go b/devel-importer/main.go index 85a40d6..aab30fd 100644 --- a/devel-importer/main.go +++ b/devel-importer/main.go @@ -667,7 +667,7 @@ func main() { // revNew := flag.Int("nrevs", 20, "Number of new revisions in factory branch. Indicator of broken history import") purgeOnly := flags.Bool("purge-only", false, "Purges package repositories on Gitea. Use with caution") debugGitPath := flags.String("git-path", "", "Path for temporary git directory. Only used if DebugMode") - getMaintainers := flags.Bool("maintainer-only", false, "Get maintainers only and exit") + getMaintainers := flags.Bool("maintainers-only", false, "Get maintainers only and exit") syncMaintainers := flags.Bool("sync-maintainers-only", false, "Sync maintainers to Gitea and exit") if help := flags.Parse(os.Args[1:]); help == flag.ErrHelp || flags.NArg() != 2 { diff --git a/workflow-direct/links.go b/workflow-direct/links.go new file mode 100644 index 0000000..1f07399 --- /dev/null +++ b/workflow-direct/links.go @@ -0,0 +1,6 @@ +package workflowdirect + +type OrgLinks struct { + +} + diff --git a/workflow-direct/main_test.go b/workflow-direct/links_test.go similarity index 54% rename from workflow-direct/main_test.go rename to workflow-direct/links_test.go index be340b9..d3537cf 100644 --- a/workflow-direct/main_test.go +++ b/workflow-direct/links_test.go @@ -1,3 +1,3 @@ -package main +package workflowdirect_test // TODO, like documentation :-) diff --git a/workflow-direct/main.go b/workflow-direct/main.go index b3d8d67..9a85060 100644 --- a/workflow-direct/main.go +++ b/workflow-direct/main.go @@ -31,6 +31,7 @@ import ( "time" "src.opensuse.org/autogits/common" + workflowdirect "src.opensuse.org/autogits/workflow-direct" ) const ( @@ -42,6 +43,8 @@ const ( var configuredRepos map[string][]*common.AutogitConfig var gitea common.Gitea +var orgLinks map[string]*workflowdirect.OrgLinks + func isConfiguredOrg(org *common.Organization) bool { _, found := configuredRepos[org.Username] return found