Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def gh(self, msg: str = 'Update',
update_fields: bool = False,
short: bool = False,
no_skip: bool = False) -> List[ghstack.submit.DiffMeta]:
return ghstack.submit.main(
msg=msg,
username='ezyang',
github=self.github,
sh=self.sh,
update_fields=update_fields,
stack_header='Stack',
repo_owner='pytorch',
repo_name='pytorch',
short=short,
no_skip=no_skip)
args.cmd = 'submit'
with ghstack.logging.manager(debug=args.debug):
sh = ghstack.shell.Shell()
conf = ghstack.config.read_config()
ghstack.logging.formatter.redact(conf.github_oauth, '')
github = ghstack.github_real.RealGitHubEndpoint(
oauth_token=conf.github_oauth,
proxy=conf.proxy
)
if args.cmd == 'rage':
ghstack.rage.main(latest=args.latest)
elif args.cmd == 'submit':
ghstack.submit.main(
msg=args.message,
username=conf.github_username,
sh=sh,
github=github,
update_fields=args.update_fields,
short=args.short,
force=args.force,
no_skip=args.no_skip,
)
elif args.cmd == 'unlink':
ghstack.unlink.main(
commits=args.COMMITS,
sh=sh,
)
elif args.cmd == 'land':
ghstack.land.main(