MCPcopy Index your code
hub / github.com/nodejs/node / AutoPush

Class AutoPush

deps/v8/tools/release/auto_push.py:85–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85class 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
112if __name__ == "__main__": # pragma: no cover

Callers 1

auto_push.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…