mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Do a dry run of stubsabot on PRs touching scripts/ or tests/ (#10508)
This commit is contained in:
@@ -744,7 +744,7 @@ async def main() -> None:
|
||||
["git", "branch", "--show-current"], text=True, capture_output=True, check=True
|
||||
).stdout.strip()
|
||||
|
||||
if args.action_level >= ActionLevel.fork:
|
||||
if args.action_level >= ActionLevel.local:
|
||||
subprocess.check_call(["git", "fetch", "--prune", "--all"])
|
||||
|
||||
try:
|
||||
@@ -784,7 +784,7 @@ async def main() -> None:
|
||||
finally:
|
||||
# if you need to cleanup, try:
|
||||
# git branch -D $(git branch --list 'stubsabot/*')
|
||||
if args.action_level >= ActionLevel.local:
|
||||
if args.action_level >= ActionLevel.local and original_branch:
|
||||
subprocess.check_call(["git", "checkout", original_branch])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user