We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfe8fc4 commit 7aa8009Copy full SHA for 7aa8009
cmd/github/sync_labels.go
@@ -21,6 +21,10 @@ var labelsCmd = &cobra.Command{
21
22
labels, err := github.ListGitHubLabels(sourceRepo)
23
cobra.CheckErr(err)
24
+ if len(labels) == 0 {
25
+ cmdutils.Logger.Warn("No Labels in source repo found, aborting sync.")
26
+ return
27
+ }
28
29
repos := make([]utils.GitRepo, len(targets))
30
for i, target := range targets {
cmd/github/sync_milestones.go
@@ -21,6 +21,10 @@ var milestonesCmd = &cobra.Command{
milestones, err := github.ListGitHubMilestones(sourceRepo)
+ if len(milestones) == 0 {
+ cmdutils.Logger.Warn("No Milestones in source repo found, aborting sync.")
0 commit comments