``` js
Gerrit.install(function(plugin) {
// Make cherry-pick appear first.
plugin.changeActions().setActionPriority(
'revision', 'cherrypick', -5);
// Make cherry-pick appear last
plugin.changeActions().setActionPriority(
'revision', 'cherrypick', 5);
});
```
Default priority list is:
- Reply is always first, aligned to the left
- More actions if always after it
- Quick approve (CodeReview+2) after them, with priority at -3
- Primary actions come last, with priority of 3
- Change actions before primary, with priority of 2
- Revision actions before change actions, with priority of 1
- In case of a tie, actions are sorted alphabetically
Feature: Issue 5360
Change-Id: I7f36954608f764bff4e36a4a2f916bf0dda3859d