You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository that contains pull requests to close. Either an organisation or username")
72
+
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository that contains pull requests to close. Either an organisation or username. For Azure, include the project: 'organization/project'")
73
73
cmd.Flags().StringVarP(&o.Name, "name", "r", "", "the name of the repository that contains pull requests to close")
74
74
75
75
cmd.Flags().IntVarP(&o.PR, "pr", "", 0, "the pull request to close")
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository. Either an organisation or username")
81
+
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository. Either an organisation or username. For Azure, include the project: 'organization/project'")
82
82
cmd.Flags().StringVarP(&o.Name, "name", "r", "", "the name of the repository")
83
83
84
84
cmd.Flags().StringVarP(&o.Title, "title", "", "", "the title of the new pull request")
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository to update. Either an organisation or username")
63
+
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository to update. Either an organisation or username. For Azure, include the project: 'organization/project'")
64
64
cmd.Flags().StringVarP(&o.Name, "name", "r", "", "the name of the repository to update")
65
65
cmd.Flags().StringVarP(&o.Tag, "tag", "", "", "the tag of the release to update")
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository to create. Either an organisation or username")
72
+
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository to create. Either an organisation or username. For Azure, include the project: 'organization/project'")
73
73
cmd.Flags().StringVarP(&o.Name, "name", "n", "", "the name of the repository to create")
74
74
cmd.Flags().StringVarP(&o.Description, "description", "d", "", "the repository description")
75
75
cmd.Flags().StringVarP(&o.HomePage, "home-page", "", "", "the repository home page")
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository to create. Either an organisation or username")
77
+
cmd.Flags().StringVarP(&o.Owner, "owner", "o", "", "the owner of the repository to create. Either an organisation or username. For Azure, include the project: 'organization/project'")
78
78
cmd.Flags().StringVarP(&o.Name, "name", "n", "", "the name of the repository to create")
79
79
cmd.Flags().StringVarP(&o.CreatedBefore, "created-before", "", "", "the time expression for removing repositories created before this time")
80
80
cmd.Flags().IntVarP(&o.CreatedDaysAgo, "created-days-ago", "", 0, "remove repositories created more than this number of days ago")
@@ -133,12 +133,20 @@ func (o *Options) Run() error {
133
133
134
134
ctx:=context.Background()
135
135
136
-
user, _, err:=scmClient.Users.Find(ctx)
137
-
iferr!=nil {
138
-
returnerrors.Wrapf(err, "failed to lookup current user")
136
+
varcurrentUserstring
137
+
ifo.GitKind!="azure" {
138
+
user, _, err:=scmClient.Users.Find(ctx)
139
+
iferr!=nil {
140
+
returnerrors.Wrapf(err, "failed to lookup current user")
141
+
}
142
+
currentUser=user.Login
143
+
} else {
144
+
currentUser=""
139
145
}
140
146
141
-
currentUser:=user.Login
147
+
ifo.CreatedBeforeTime!=nil&&o.GitKind=="azure" {
148
+
returnfmt.Errorf("azure does not support date filtering")
0 commit comments