Merge pull request #5712 from jepler/website-main-branch

reflect that the default branch of circuitpython-org is updated
This commit is contained in:
Dan Halbert 2021-12-13 10:54:24 -05:00 committed by GitHub
commit edabf676d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -160,10 +160,10 @@ def get_version_info():
def get_current_info():
response = github.get("/repos/adafruit/circuitpython-org/git/refs/heads/master")
response = github.get("/repos/adafruit/circuitpython-org/git/refs/heads/main")
if not response.ok:
print(response.text)
raise RuntimeError("cannot get master sha")
raise RuntimeError("cannot get main sha")
commit_sha = response.json()["object"]["sha"]
response = github.get(
@ -235,7 +235,7 @@ def create_pr(changes, updated, git_info, user):
pr_info = {
"title": pr_title,
"head": user + ":" + branch_name,
"base": "master",
"base": "main",
"body": message,
"maintainer_can_modify": True,
}