mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix backporting script
Rename yandex → ClickHouse
This commit is contained in:
parent
1a2b5f6175
commit
340705f1ca
@ -42,7 +42,7 @@ parser = argparse.ArgumentParser(description='Helper for the ClickHouse Release
|
||||
parser.add_argument('--repo', '-r', type=str, default='', metavar='PATH',
|
||||
help='path to the root of the ClickHouse repository')
|
||||
parser.add_argument('--remote', type=str, default='origin',
|
||||
help='remote name of the "yandex/ClickHouse" upstream')
|
||||
help='remote name of the "ClickHouse/ClickHouse" upstream')
|
||||
parser.add_argument('-n', type=int, default=3, dest='number',
|
||||
help='number of last stable branches to consider')
|
||||
parser.add_argument('--token', type=str, required=True,
|
||||
@ -78,7 +78,7 @@ for i in reversed(range(len(stables))):
|
||||
|
||||
from_commit = stables[i][1]
|
||||
|
||||
members = set(github.get_members("yandex", "clickhouse"))
|
||||
members = set(github.get_members("ClickHouse", "ClickHouse"))
|
||||
def print_responsible(pull_request):
|
||||
if pull_request["author"]["login"] in members:
|
||||
return colored(pull_request["author"]["login"], 'green')
|
||||
|
@ -57,7 +57,7 @@ class Query:
|
||||
return logins
|
||||
|
||||
_LABELS = '''
|
||||
repository(owner: "yandex" name: "ClickHouse") {{
|
||||
repository(owner: "ClickHouse" name: "ClickHouse") {{
|
||||
pullRequest(number: {number}) {{
|
||||
labels(first: {max_page_size} {next}) {{
|
||||
pageInfo {{
|
||||
@ -99,7 +99,7 @@ class Query:
|
||||
return labels
|
||||
|
||||
_TIMELINE = '''
|
||||
repository(owner: "yandex" name: "ClickHouse") {{
|
||||
repository(owner: "ClickHouse" name: "ClickHouse") {{
|
||||
pullRequest(number: {number}) {{
|
||||
timeline(first: {max_page_size} {next}) {{
|
||||
pageInfo {{
|
||||
@ -164,7 +164,7 @@ class Query:
|
||||
return events
|
||||
|
||||
_PULL_REQUESTS = '''
|
||||
repository(owner: "yandex" name: "ClickHouse") {{
|
||||
repository(owner: "ClickHouse" name: "ClickHouse") {{
|
||||
defaultBranchRef {{
|
||||
name
|
||||
target {{
|
||||
@ -280,7 +280,7 @@ class Query:
|
||||
f'there are {commit["associatedPullRequests"]["totalCount"]} pull-requests merged in commit {commit["oid"]}'
|
||||
|
||||
for pull_request in commit['associatedPullRequests']['nodes']:
|
||||
if(pull_request['baseRepository']['nameWithOwner'] == 'yandex/ClickHouse' and
|
||||
if(pull_request['baseRepository']['nameWithOwner'] == 'ClickHouse/ClickHouse' and
|
||||
pull_request['baseRefName'] == default_branch_name and
|
||||
pull_request['mergeCommit']['oid'] == commit['oid'] and
|
||||
(not login or pull_request['author']['login'] == login)):
|
||||
@ -289,7 +289,7 @@ class Query:
|
||||
return pull_requests
|
||||
|
||||
_DEFAULT = '''
|
||||
repository(owner: "yandex", name: "ClickHouse") {
|
||||
repository(owner: "ClickHouse", name: "ClickHouse") {
|
||||
defaultBranchRef {
|
||||
name
|
||||
}
|
||||
@ -304,7 +304,7 @@ class Query:
|
||||
return self._run(Query._DEFAULT)['repository']['defaultBranchRef']['name']
|
||||
|
||||
_GET_LABEL = '''
|
||||
repository(owner: "yandex" name: "ClickHouse") {{
|
||||
repository(owner: "ClickHouse" name: "ClickHouse") {{
|
||||
labels(first: {max_page_size} {next} query: "{name}") {{
|
||||
pageInfo {{
|
||||
hasNextPage
|
||||
|
Loading…
Reference in New Issue
Block a user