Gerrits merged after a certain time

1,158 views
Skip to first unread message

William

unread,
Feb 26, 2021, 9:01:55 PM2/26/21
to Repo and Gerrit Discussion
Is there a way in gerrit to get the list of all the changes merged after a certain date and time?

Lets say I want to get the list of all changes merged after 2/20 1:05pm, how can I get it?

qq778...@gmail.com

unread,
Feb 28, 2021, 10:33:26 PM2/28/21
to Repo and Gerrit Discussion
On the Web UI, you can enter after:2021-02-21 before:2021-02-22 status:merged in the search bar in the upper right corner
SSH API:ssh -p 29418 zhank...@gerrit.ruijie.work gerrit   query --format JSON status:merged after:2021-02-21 before:2021-02-22
REST API:curl --insecure --anyauth -u xx:xxxxxxxxxxxxxx -X GET "http://xx.ruijie.work:8081/a/changes/?q=status:open+after:2021-02-21+before:2021-02-22"

Han-Wen Nienhuys

unread,
Mar 1, 2021, 5:53:53 AM3/1/21
to William, Repo and Gerrit Discussion
On Sat, Feb 27, 2021 at 3:01 AM William <bacha....@gmail.com> wrote:
Is there a way in gerrit to get the list of all the changes merged after a certain date and time?

Lets say I want to get the list of all changes merged after 2/20 1:05pm, how can I get it?

The next version of Gerrit will have this change https://gerrit-review.googlesource.com/c/gerrit/+/289025
which provides a mergedbefore/mergedafter  operator for search. Unfortunately, the age/before/after changes are for modifications; post submit comments and other changes (hashtags) update the modified date, so it's not always accurate.


--
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

Reply all
Reply to author
Forward
0 new messages