| 83 | |
| 84 | |
| 85 | class AutoPush(ScriptsBase): |
| 86 | def _PrepareOptions(self, parser): |
| 87 | parser.add_argument("-p", "--push", |
| 88 | help="Create release. Dry run if unspecified.", |
| 89 | default=False, action="store_true") |
| 90 | |
| 91 | def _ProcessOptions(self, options): |
| 92 | if not options.author or not options.reviewer: # pragma: no cover |
| 93 | print("You need to specify author and reviewer.") |
| 94 | return False |
| 95 | options.requires_editor = False |
| 96 | return True |
| 97 | |
| 98 | def _Config(self): |
| 99 | return { |
| 100 | "PERSISTFILE_BASENAME": "/tmp/v8-auto-push-tempfile", |
| 101 | } |
| 102 | |
| 103 | def _Steps(self): |
| 104 | return [ |
| 105 | Preparation, |
| 106 | FetchCandidate, |
| 107 | LastReleaseBailout, |
| 108 | CreateRelease, |
| 109 | ] |
| 110 | |
| 111 | |
| 112 | if __name__ == "__main__": # pragma: no cover |
no outgoing calls
no test coverage detected
searching dependent graphs…