List all repository based on state

132 views
Skip to first unread message

kamalak...@gmail.com

unread,
Aug 19, 2021, 10:28:50 AM8/19/21
to Repo and Gerrit Discussion
Hi All,

We have around 2k repositories in which we would like to take report based on the state of the repositories. How could we list all the repositories based on Project state? Read only and Active state repos
Do we have any commands to list repos as such?

Thanks,
Kamal

Nasser Grainawi

unread,
Aug 19, 2021, 11:17:49 AM8/19/21
to kamalak...@gmail.com, Repo and Gerrit Discussion
You can use the List Projects REST API or SSH command and the ’state’ option to filter: https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#list-projects


Thanks,
Kamal

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/20460199-315f-4bc8-bde9-045a4ca7e413n%40googlegroups.com.

kamalak...@gmail.com

unread,
Aug 20, 2021, 3:51:48 AM8/20/21
to Repo and Gerrit Discussion
Hi Sohn/Nasser,

Thanks for your reply.

It worked with REST API. I don't find option with ssh.

Thank you very much!!

Regards,
Kamalakar Sarma

Matthias Sohn

unread,
Aug 20, 2021, 5:27:29 AM8/20/21
to kamalak...@gmail.com, Repo and Gerrit Discussion
On Fri, Aug 20, 2021 at 9:51 AM kamalak...@gmail.com <kamalak...@gmail.com> wrote:
Hi Sohn/Nasser,

Thanks for your reply.

It worked with REST API. I don't find option with ssh.

Read the built-in documentation of ls-projects:
$ ssh -p 29418 your.gerrit.host gerrit ls-projects -h
 
Apparently the online documentation [1] is incomplete. I'll push a change to fix this.

Please avoid top posting on this list.


-Matthias
Reply all
Reply to author
Forward
0 new messages