mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Rename the master
branch to main
This commit is contained in:
parent
7bcb25c85c
commit
23add0c1e5
14 changed files with 47 additions and 51 deletions
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
|
@ -2,7 +2,7 @@ name: Docs upload
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["master"]
|
branches: ["main"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -32,6 +32,6 @@ jobs:
|
||||||
git -c user.name="Workflow" -c user.email="" \
|
git -c user.name="Workflow" -c user.email="" \
|
||||||
commit -q -m "Rebuild Servo documentation"
|
commit -q -m "Rebuild Servo documentation"
|
||||||
git remote add origin https://git:${DOC_SERVO_ORG}@github.com/servo/doc.servo.org
|
git remote add origin https://git:${DOC_SERVO_ORG}@github.com/servo/doc.servo.org
|
||||||
git push --force origin master:gh-pages
|
git push --force origin main:gh-pages
|
||||||
env:
|
env:
|
||||||
DOC_SERVO_ORG: ${{ secrets.DOC_SERVO_ORG }}
|
DOC_SERVO_ORG: ${{ secrets.DOC_SERVO_ORG }}
|
||||||
|
|
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -2,10 +2,10 @@ name: Main
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Run the entire pipeline for 'master' even though the merge queue already runs checks
|
# Run the entire pipeline for 'main' even though the merge queue already runs checks
|
||||||
# for every change. This just offers an extra layer of testing and covers the case of
|
# for every change. This just offers an extra layer of testing and covers the case of
|
||||||
# random force pushes.
|
# random force pushes.
|
||||||
branches: ["master", "try"]
|
branches: ["main", "try"]
|
||||||
pull_request:
|
pull_request:
|
||||||
types: ['opened', 'synchronize']
|
types: ['opened', 'synchronize']
|
||||||
branches: ["**"]
|
branches: ["**"]
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
let layout = "${{ inputs.layout }}" || "none";
|
let layout = "${{ inputs.layout }}" || "none";
|
||||||
let unit_tests = Boolean(${{ inputs.unit-tests }})
|
let unit_tests = Boolean(${{ inputs.unit-tests }})
|
||||||
|
|
||||||
// Merge queue runs and pushes to master should always trigger a full build and test.
|
// Merge queue runs and pushes to `main` should always trigger a full build and test.
|
||||||
if (["push", "merge_group"].includes(context.eventName)) {
|
if (["push", "merge_group"].includes(context.eventName)) {
|
||||||
platform = "all";
|
platform = "all";
|
||||||
layout = "all";
|
layout = "all";
|
||||||
|
|
|
@ -13,13 +13,9 @@ jobs:
|
||||||
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
|
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
|
||||||
- name: Check out shallow servo PR
|
- name: Check out shallow servo PR
|
||||||
run: |
|
run: |
|
||||||
mkdir servo
|
git clone --depth 1 ${{ github.event.repository.clone_url}} servo
|
||||||
cd servo
|
cd servo
|
||||||
git init -b main
|
|
||||||
git remote add origin ${{ github.event.repository.clone_url}}
|
|
||||||
git fetch origin pull/${{ github.event.pull_request.number}}/head:pr --depth ${{ env.PR_FETCH_DEPTH }}
|
git fetch origin pull/${{ github.event.pull_request.number}}/head:pr --depth ${{ env.PR_FETCH_DEPTH }}
|
||||||
git fetch origin master:master --depth 1
|
|
||||||
git checkout master
|
|
||||||
- name: Check out wpt
|
- name: Check out wpt
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
2
.github/workflows/quick-check.yml
vendored
2
.github/workflows/quick-check.yml
vendored
|
@ -5,7 +5,7 @@ name: Quick check
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
["master", "auto", "try", "try-*", "dependabot/**"]
|
["main", "auto", "try", "try-*", "dependabot/**"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class GithubRepository:
|
||||||
self, branch: GithubBranch
|
self, branch: GithubBranch
|
||||||
) -> Optional[PullRequest]:
|
) -> Optional[PullRequest]:
|
||||||
"""If this repository has an open pull request with the
|
"""If this repository has an open pull request with the
|
||||||
given source head reference targeting the master branch,
|
given source head reference targeting the main branch,
|
||||||
return the first matching pull request, otherwise return None."""
|
return the first matching pull request, otherwise return None."""
|
||||||
|
|
||||||
params = "+".join([
|
params = "+".join([
|
||||||
|
@ -105,7 +105,7 @@ class GithubRepository:
|
||||||
data = {
|
data = {
|
||||||
"title": title,
|
"title": title,
|
||||||
"head": branch.get_pr_head_reference_for_repo(self),
|
"head": branch.get_pr_head_reference_for_repo(self),
|
||||||
"base": "master",
|
"base": "main",
|
||||||
"body": body,
|
"body": body,
|
||||||
"maintainer_can_modify": False,
|
"maintainer_can_modify": False,
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,7 @@ class CreateOrUpdateBranchForPRStep(Step):
|
||||||
return branch_name
|
return branch_name
|
||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
run.sync.local_wpt_repo.run("checkout", "master")
|
run.sync.local_wpt_repo.run("checkout", "main")
|
||||||
run.sync.local_wpt_repo.run("branch", "-D", branch_name)
|
run.sync.local_wpt_repo.run("branch", "-D", branch_name)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -647,7 +647,7 @@ def setUpModule():
|
||||||
def setup_mock_repo(repo_name, local_repo):
|
def setup_mock_repo(repo_name, local_repo):
|
||||||
subprocess.check_output(
|
subprocess.check_output(
|
||||||
["cp", "-R", "-p", os.path.join(TESTS_DIR, repo_name), local_repo.path])
|
["cp", "-R", "-p", os.path.join(TESTS_DIR, repo_name), local_repo.path])
|
||||||
local_repo.run("init", "-b", "master")
|
local_repo.run("init", "-b", "main")
|
||||||
local_repo.run("add", ".")
|
local_repo.run("add", ".")
|
||||||
local_repo.run("commit", "-a", "-m", "Initial commit")
|
local_repo.run("commit", "-a", "-m", "Initial commit")
|
||||||
|
|
||||||
|
|
|
@ -196,12 +196,12 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2072,
|
"open_issues": 2072,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base": {
|
"base": {
|
||||||
"label": "servo:master",
|
"label": "servo:main",
|
||||||
"ref": "master",
|
"ref": "main",
|
||||||
"sha": "3b7a82b8c743bcbbefb6f25defd4cc132c25c348",
|
"sha": "3b7a82b8c743bcbbefb6f25defd4cc132c25c348",
|
||||||
"user": {
|
"user": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
@ -309,7 +309,7 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2072,
|
"open_issues": 2072,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_links": {
|
"_links": {
|
||||||
|
@ -439,7 +439,7 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2072,
|
"open_issues": 2072,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
},
|
},
|
||||||
"organization": {
|
"organization": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
|
|
@ -43,8 +43,8 @@
|
||||||
"author_association": "OWNER",
|
"author_association": "OWNER",
|
||||||
"auto_merge": null,
|
"auto_merge": null,
|
||||||
"base": {
|
"base": {
|
||||||
"label": "mrobinson:master",
|
"label": "mrobinson:main",
|
||||||
"ref": "master",
|
"ref": "main",
|
||||||
"repo": {
|
"repo": {
|
||||||
"allow_auto_merge": false,
|
"allow_auto_merge": false,
|
||||||
"allow_forking": true,
|
"allow_forking": true,
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
"contents_url": "https://api.github.com/repos/servo/servo/contents/{+path}",
|
"contents_url": "https://api.github.com/repos/servo/servo/contents/{+path}",
|
||||||
"contributors_url": "https://api.github.com/repos/servo/servo/contributors",
|
"contributors_url": "https://api.github.com/repos/servo/servo/contributors",
|
||||||
"created_at": "2014-03-31T16:17:52Z",
|
"created_at": "2014-03-31T16:17:52Z",
|
||||||
"default_branch": "master",
|
"default_branch": "main",
|
||||||
"delete_branch_on_merge": false,
|
"delete_branch_on_merge": false,
|
||||||
"deployments_url": "https://api.github.com/repos/servo/servo/deployments",
|
"deployments_url": "https://api.github.com/repos/servo/servo/deployments",
|
||||||
"description": "The Servo Browser Engine",
|
"description": "The Servo Browser Engine",
|
||||||
|
@ -218,7 +218,7 @@
|
||||||
"contents_url": "https://api.github.com/repos/servo/servo/contents/{+path}",
|
"contents_url": "https://api.github.com/repos/servo/servo/contents/{+path}",
|
||||||
"contributors_url": "https://api.github.com/repos/servo/servo/contributors",
|
"contributors_url": "https://api.github.com/repos/servo/servo/contributors",
|
||||||
"created_at": "2014-03-31T16:17:52Z",
|
"created_at": "2014-03-31T16:17:52Z",
|
||||||
"default_branch": "master",
|
"default_branch": "main",
|
||||||
"delete_branch_on_merge": false,
|
"delete_branch_on_merge": false,
|
||||||
"deployments_url": "https://api.github.com/repos/servo/servo/deployments",
|
"deployments_url": "https://api.github.com/repos/servo/servo/deployments",
|
||||||
"description": "The Servo Browser Engine",
|
"description": "The Servo Browser Engine",
|
||||||
|
@ -400,7 +400,7 @@
|
||||||
"contents_url": "https://api.github.com/repos/servo/servo/contents/{+path}",
|
"contents_url": "https://api.github.com/repos/servo/servo/contents/{+path}",
|
||||||
"contributors_url": "https://api.github.com/repos/servo/servo/contributors",
|
"contributors_url": "https://api.github.com/repos/servo/servo/contributors",
|
||||||
"created_at": "2014-03-31T16:17:52Z",
|
"created_at": "2014-03-31T16:17:52Z",
|
||||||
"default_branch": "master",
|
"default_branch": "main",
|
||||||
"deployments_url": "https://api.github.com/repos/servo/servo/deployments",
|
"deployments_url": "https://api.github.com/repos/servo/servo/deployments",
|
||||||
"description": "The Servo Browser Engine",
|
"description": "The Servo Browser Engine",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
|
|
|
@ -203,12 +203,12 @@
|
||||||
"forks": 0,
|
"forks": 0,
|
||||||
"open_issues": 0,
|
"open_issues": 0,
|
||||||
"watchers": 0,
|
"watchers": 0,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base": {
|
"base": {
|
||||||
"label": "servo:master",
|
"label": "servo:main",
|
||||||
"ref": "master",
|
"ref": "main",
|
||||||
"sha": "df0f9ad7ae6f10ffeaf5d40f4a2a25abadabf9cc",
|
"sha": "df0f9ad7ae6f10ffeaf5d40f4a2a25abadabf9cc",
|
||||||
"user": {
|
"user": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
@ -323,7 +323,7 @@
|
||||||
"forks": 1810,
|
"forks": 1810,
|
||||||
"open_issues": 2027,
|
"open_issues": 2027,
|
||||||
"watchers": 10867,
|
"watchers": 10867,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_links": {
|
"_links": {
|
||||||
|
@ -478,7 +478,7 @@
|
||||||
"forks": 1810,
|
"forks": 1810,
|
||||||
"open_issues": 2027,
|
"open_issues": 2027,
|
||||||
"watchers": 10867,
|
"watchers": 10867,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
},
|
},
|
||||||
"organization": {
|
"organization": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
|
|
@ -160,12 +160,12 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2073,
|
"open_issues": 2073,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base": {
|
"base": {
|
||||||
"label": "servo:master",
|
"label": "servo:main",
|
||||||
"ref": "master",
|
"ref": "main",
|
||||||
"sha": "3b7a82b8c743bcbbefb6f25defd4cc132c25c348",
|
"sha": "3b7a82b8c743bcbbefb6f25defd4cc132c25c348",
|
||||||
"user": {
|
"user": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
@ -273,7 +273,7 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2073,
|
"open_issues": 2073,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_links": {
|
"_links": {
|
||||||
|
@ -403,7 +403,7 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2073,
|
"open_issues": 2073,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
},
|
},
|
||||||
"organization": {
|
"organization": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
|
|
@ -160,12 +160,12 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2073,
|
"open_issues": 2073,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base": {
|
"base": {
|
||||||
"label": "servo:master",
|
"label": "servo:main",
|
||||||
"ref": "master",
|
"ref": "main",
|
||||||
"sha": "3b7a82b8c743bcbbefb6f25defd4cc132c25c348",
|
"sha": "3b7a82b8c743bcbbefb6f25defd4cc132c25c348",
|
||||||
"user": {
|
"user": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
@ -273,7 +273,7 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2073,
|
"open_issues": 2073,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_links": {
|
"_links": {
|
||||||
|
@ -403,7 +403,7 @@
|
||||||
"forks": 1731,
|
"forks": 1731,
|
||||||
"open_issues": 2073,
|
"open_issues": 2073,
|
||||||
"watchers": 10131,
|
"watchers": 10131,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
},
|
},
|
||||||
"organization": {
|
"organization": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
|
|
@ -203,12 +203,12 @@
|
||||||
"forks": 0,
|
"forks": 0,
|
||||||
"open_issues": 0,
|
"open_issues": 0,
|
||||||
"watchers": 0,
|
"watchers": 0,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base": {
|
"base": {
|
||||||
"label": "servo:master",
|
"label": "servo:main",
|
||||||
"ref": "master",
|
"ref": "main",
|
||||||
"sha": "df0f9ad7ae6f10ffeaf5d40f4a2a25abadabf9cc",
|
"sha": "df0f9ad7ae6f10ffeaf5d40f4a2a25abadabf9cc",
|
||||||
"user": {
|
"user": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
@ -323,7 +323,7 @@
|
||||||
"forks": 1810,
|
"forks": 1810,
|
||||||
"open_issues": 2027,
|
"open_issues": 2027,
|
||||||
"watchers": 10867,
|
"watchers": 10867,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_links": {
|
"_links": {
|
||||||
|
@ -462,7 +462,7 @@
|
||||||
"forks": 1810,
|
"forks": 1810,
|
||||||
"open_issues": 2027,
|
"open_issues": 2027,
|
||||||
"watchers": 10867,
|
"watchers": 10867,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
},
|
},
|
||||||
"organization": {
|
"organization": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
|
|
@ -203,12 +203,12 @@
|
||||||
"forks": 0,
|
"forks": 0,
|
||||||
"open_issues": 0,
|
"open_issues": 0,
|
||||||
"watchers": 0,
|
"watchers": 0,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base": {
|
"base": {
|
||||||
"label": "servo:master",
|
"label": "servo:main",
|
||||||
"ref": "master",
|
"ref": "main",
|
||||||
"sha": "df0f9ad7ae6f10ffeaf5d40f4a2a25abadabf9cc",
|
"sha": "df0f9ad7ae6f10ffeaf5d40f4a2a25abadabf9cc",
|
||||||
"user": {
|
"user": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
@ -323,7 +323,7 @@
|
||||||
"forks": 1810,
|
"forks": 1810,
|
||||||
"open_issues": 2027,
|
"open_issues": 2027,
|
||||||
"watchers": 10867,
|
"watchers": 10867,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_links": {
|
"_links": {
|
||||||
|
@ -462,7 +462,7 @@
|
||||||
"forks": 1810,
|
"forks": 1810,
|
||||||
"open_issues": 2027,
|
"open_issues": 2027,
|
||||||
"watchers": 10867,
|
"watchers": 10867,
|
||||||
"default_branch": "master"
|
"default_branch": "main"
|
||||||
},
|
},
|
||||||
"organization": {
|
"organization": {
|
||||||
"login": "servo",
|
"login": "servo",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue