Ok, so if it's not possible to do it automatically, I would like to do this one a day by changing values in database. But I cannot find in table 'changes' values described if review is ready to submit or not. Where it has been moved?
Also information if all parents are CR+2 is needed. It is possible to find that information in database?
Best regards,
Jacek Ziora
W dniu środa, 15 czerwca 2016 16:24:46 UTC+2 użytkownik Jacek Ziora napisał:Hi!
When I want to merge a change, it has to be closed (Code Review +2) and Submitted (with 'parents' of course).
Is it possible to automatically Submit (and merge actually) review when it is given CR+2? Of course only when all parents have also CR+2.
Best regards,
Jacek Ziora
--
--
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.
For more options, visit https://groups.google.com/d/optout.
On Thu, Jun 16, 2016 at 1:58 PM, Jacek Ziora <jacek.ad...@gmail.com> wrote:
Ok, so if it's not possible to do it automatically, I would like to do this one a day by changing values in database.
Updating change status in database will only update the status. It will not merge the commit in the target branch.
But I cannot find in table 'changes' values described if review is ready to submit or not. Where it has been moved?
Better use a query to find all mergeable changes. For example: status:open is:mergeable project:X branch:masterYou can execute the query via a REST API call [1] or via the SSH query command [2] and submit them using [3] or [4].
Also information if all parents are CR+2 is needed. It is possible to find that information in database?
Best regards,
Jacek Ziora
W dniu środa, 15 czerwca 2016 16:24:46 UTC+2 użytkownik Jacek Ziora napisał:Hi!
When I want to merge a change, it has to be closed (Code Review +2) and Submitted (with 'parents' of course).
Is it possible to automatically Submit (and merge actually) review when it is given CR+2? Of course only when all parents have also CR+2.
Best regards,
Jacek Ziora
--
Thanks for response. I have to do this by ssh, so I used gerrit query to find all changes to submit. But when I use:It gives me a lot of commits and they cannot be merged, they aren't even CR+2...
ssh -p ${port} ${server} gerrit query status:open is:mergeable
Also I want to submit changes using:
ssh -p ${port} ${server} gerrit review -p ${project} --submit ${commit_hash}
And when I use gerrit query I have no information about commit hash, I have only changeId, but I cannot use this in gerrit review --submit command.
So what is the best way to find all changes which can be submitted?
2016-06-16 14:47 GMT+02:00 Saša Živkov <ziv...@gmail.com>:
On Thu, Jun 16, 2016 at 1:58 PM, Jacek Ziora <jacek.ad...@gmail.com> wrote:
Ok, so if it's not possible to do it automatically, I would like to do this one a day by changing values in database.
Updating change status in database will only update the status. It will not merge the commit in the target branch.
But I cannot find in table 'changes' values described if review is ready to submit or not. Where it has been moved?
Better use a query to find all mergeable changes. For example: status:open is:mergeable project:X branch:masterYou can execute the query via a REST API call [1] or via the SSH query command [2] and submit them using [3] or [4].
Also information if all parents are CR+2 is needed. It is possible to find that information in database?
Best regards,
Jacek Ziora
W dniu środa, 15 czerwca 2016 16:24:46 UTC+2 użytkownik Jacek Ziora napisał:Hi!
When I want to merge a change, it has to be closed (Code Review +2) and Submitted (with 'parents' of course).
Is it possible to automatically Submit (and merge actually) review when it is given CR+2? Of course only when all parents have also CR+2.
Best regards,
Jacek Ziora
--
Hi,
Well, submitablility is really a moving target (something that was submitable during a query may not be anymore, as another change got merged, causing conflicts.).
But maybe https://gerrit-review.googlesource.com/#/c/75676/ could be for you...
Björn
Am Donnerstag, 16. Juni 2016 16:05:57 UTC+2 schrieb Jacek Ziora:Forward back to main discussion.Thanks for response. I have to do this by ssh, so I used gerrit query to find all changes to submit. But when I use:
ssh -p ${port} ${server} gerrit query status:open is:mergeable
When added label:Code-Review+2 it helps.
But I still cannot search submittable changes.
And command ssh ... gerrit review --submit <changeId> does not work:
fatal: "I824937d0a3222d590a82b05022ba6347387fd344" is not a valid patch set
But there is no such option in gerrit review command...
You probably meant gerrit query command, but it doesn't do what I need. :(