--
--
To unsubscribe, email repo-discuss+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This operator only takes into account one change at a time, not any related changes, and does not guarantee that the submit button will appear for matching changes
To check whether a submit button appears, use the Get Revision Actions API.
Hi Matthew,Can you explain how you use it in scripts? (because indeed it is not working as a search query)
# example for a change that CAN be submitted
$ curl -K ~/passwords/http-password_Gerrit_for-curl.txt "https://gerrit.diamond.ac.uk/a/changes/10088/revisions/current/actions"
)]}'
{
"cherrypick": {
"method": "POST",
"label": "Cherry Pick",
"title": "Cherry pick change to a different branch",
"enabled": true
},
"submit": {
"method": "POST",
"label": "Submit",
"title": "Submit patch set 18 into master",
"enabled": true
},
"description": {
"method": "PUT",
"label": "Edit Description",
"enabled": true
},
"rebase": {
"method": "POST",
"label": "Rebase",
"title": "Rebase onto tip of branch or parent change"
}
}
# example for a change that CANNOT be submitted
$ curl -K ~/passwords/http-password_Gerrit_for-curl.txt "https://gerrit.xxx.com/a/changes/10668/revisions/current/actions"
)]}'
{
"cherrypick": {
"method": "POST",
"label": "Cherry Pick",
"title": "Cherry pick change to a different branch",
"enabled": true
},
"description": {
"method": "PUT",
"label": "Edit Description",
"enabled": true
},
"rebase": {
"method": "POST",
"label": "Rebase",
"title": "Rebase onto tip of branch or parent change"
}
}