mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix script for releases
This commit is contained in:
parent
571ed1bb25
commit
89a444c4a0
@ -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]}')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user