File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 55This assumes your git "origin" points to your fork, and "upstream" to upstream.
66This will force-push to a branch called "release-backport".
77
8+ The GITHUB_TOKEN is a classic token you need to generate that has public_repo
9+ scope enabled. This token is used to push the backported PRs to GitHub.
10+
811Execute with:
912
13+ $ export GITHUB_TOKEN=ghp_XXX
14+ $ export GITHUB_USERNAME=XXX
1015$ python3 .github/backport.py
1116
1217And follow the instructions. After the PR is merged, run:
1924import subprocess
2025import sys
2126
22- # NOTE: Replace this with your own token, which must be a classic token that
23- # has public_repo scope enabled to be able to mark the backported PRs as done.
24- BEARER_TOKEN = "ghp_???"
25- # NOTE: Replace this with your own GitHub username
26- USERNAME = "TrueBrain"
27+ BEARER_TOKEN = os .getenv ("GITHUB_TOKEN" )
28+ USERNAME = os .getenv ("GITHUB_USERNAME" )
2729# NOTE: Replace with the version branch to backport to
2830RELEASE = "13"
2931
@@ -225,7 +227,7 @@ def main():
225227 print ("" )
226228 print ("Done cherry-picking" )
227229 print ("Backporting language changes" )
228- res = do_command (["python3" , ".github /backport-languages.py" ])
230+ res = do_command (["python3" , os . path . dirname ( os . path . realpath ( __file__ )) + " /backport-languages.py" ])
229231 if res .returncode != 0 :
230232 print ("ERROR: backporting language changes failed" )
231233 return
You can’t perform that action at this time.
0 commit comments