|
23 | 23 | # Regex expression to match commit hash of owt-deps-webrtc.
|
24 | 24 | REVISION_RE = re.compile(
|
25 | 25 | r"(?<=Var\('deps_webrtc_git'\) \+ '/owt-deps-webrtc' \+ '@' \+ ')[0-9a-f]{40}(?=',)")
|
26 |
| -TARGET_BRANCH = 'owt-bot:roll' |
| 26 | +TARGET_BRANCH = 'roll' |
27 | 27 |
|
28 | 28 |
|
29 | 29 | def webrtc_revision():
|
@@ -72,7 +72,8 @@ def pr(old_revision, new_revision, base_branch, token):
|
72 | 72 | '''Create a pull request. If a PR is already open for webrtc roller, do nothing.'''
|
73 | 73 | # Check if a pull request exists.
|
74 | 74 | # REST API ref: https://docs.github.com/en/rest/reference/pulls#list-pull-requests
|
75 |
| - params = {'base': base_branch, 'head': TARGET_BRANCH, 'state': "open"} |
| 75 | + params = {'base': base_branch, |
| 76 | + 'head': 'owt-bot:%s' % (TARGET_BRANCH), 'state': "open"} |
76 | 77 | url = 'https://api.github.com/repos/open-webrtc-toolkit/owt-client-native/pulls'
|
77 | 78 | headers = {
|
78 | 79 | "Authorization": "token %s" % token,
|
@@ -104,7 +105,7 @@ def pr(old_revision, new_revision, base_branch, token):
|
104 | 105 | return 0
|
105 | 106 | # Create a new PR.
|
106 | 107 | create_params = {'title': commit_message(
|
107 |
| - old_revision, new_revision), 'head': TARGET_BRANCH, 'base': base_branch} |
| 108 | + old_revision, new_revision), 'head': 'owt-bot:%s' % (TARGET_BRANCH), 'base': base_branch} |
108 | 109 | create_response = requests.post(url, json=create_params, headers=headers)
|
109 | 110 | if create_response.status_code != 201:
|
110 | 111 | print('Failed to create pull request, REST response status code is %d.' % (
|
|
0 commit comments