Fix script for releases

This commit is contained in:
Ivan Lezhankin 2019-09-06 13:36:15 +03:00
parent 571ed1bb25
commit 89a444c4a0

View File

@ -47,14 +47,14 @@ parser.add_argument('--login', type=str,
args = parser.parse_args()
github = query.Query(args.token, 50)
github = query.Query(args.token, 30)
repo = local.Local(args.repo, args.remote, github.get_default_branch())
stables = repo.get_stables()[-args.number:] # [(branch name, base)]
if not stables:
sys.exit('No stable branches found!')
sys.exit('No release branches found!')
else:
print('Found stable branches:')
print('Found release branches:')
for stable in stables:
print(f'{CHECK_MARK} {stable[0]} forked from {stable[1]}')