-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5808 from google/rc_2021_12
release: Rc 2021 12
- Loading branch information
Showing
582 changed files
with
102,602 additions
and
67,438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @google/blockly-eng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Assign requested reviewers | ||
|
||
# This workflow adds requested reviewers as assignees. If you remove a | ||
# requested reviewer, it will not remove them as an assignee. | ||
# | ||
# See https://github.com/google/blockly/issues/5643 for more | ||
# information on why this was added. | ||
# | ||
# N.B.: Runs with a read-write repo token. Do not check out the | ||
# submitted branch! | ||
on: | ||
pull_request_target: | ||
types: [review_requested] | ||
|
||
jobs: | ||
requested-reviewer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Assign requested reviewer | ||
uses: actions/github-script@v5 | ||
with: | ||
script: | | ||
try { | ||
if (context.payload.pull_request === undefined) { | ||
throw new Error("Can't get pull_request payload. " + | ||
'Check a request reviewer event was triggered.'); | ||
} | ||
const reviewers = context.payload.pull_request.requested_reviewers; | ||
// Assignees takes in a list of logins rather than the | ||
// reviewer object. | ||
const reviewerNames = reviewers.map(reviewer => reviewer.login); | ||
const {number:issue_number} = context.payload.pull_request; | ||
github.rest.issues.addAssignees({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: issue_number, | ||
assignees: reviewerNames | ||
}); | ||
} catch (error) { | ||
core.setFailed(error.message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Check clang format | ||
|
||
# N.B.: Runs with a read-only repo token. Safe(ish) to check out the | ||
# submitted branch. | ||
on: [pull_request] | ||
|
||
jobs: | ||
clang-formatter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: DoozyX/clang-format-lint-action@v0.13 | ||
with: | ||
source: 'core' | ||
extensions: 'js' | ||
# This should be as close as possible to the version that the npm | ||
# package supports. This can be found by running: | ||
# npx clang-format --version. | ||
clangFormatVersion: 13 | ||
|
||
# The Report clang format workflow (report_clang_format.yml) will | ||
# run (if required) after this one to post a comment to the PR. | ||
# (Note that the version of that workflow run will be the one on | ||
# the master (default) branch, not the PR target branch.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This workflow will comment on pull requests that are submitted while develop | ||
# is frozen during the week of release. Skips any pull requests that have the | ||
# label 'ignore-freeze'. | ||
# This workflow should be enabled only while develop is frozen. | ||
|
||
name: Develop Freeze PR Comment | ||
|
||
on: | ||
# Trigger the workflow on pull request on develop branch | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
freeze-comment: | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ignore-freeze') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PR Comment | ||
uses: github-actions-up-and-running/pr-comment@f1f8ab2bf00dce6880a369ce08758a60c61d6c0b | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
message: "Thanks for the PR! The develop branch is currently frozen in preparation for the release so it may not be addressed until after release week." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# For new pull requests against the goog_module branch, adds the 'type: cleanup' | ||
# label and sets the milestone to q3 2021 release. | ||
|
||
name: Tag module cleanup | ||
|
||
# Trigger on pull requests against goog_module branch only | ||
# Uses pull_request_target to get write permissions so that it can write labels. | ||
on: | ||
pull_request_target: | ||
branches: | ||
- goog_module | ||
|
||
jobs: | ||
tag-module-cleanup: | ||
|
||
# Add the type: cleanup label | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@a3e7071a34d7e1f219a8a4de9a5e0a34d1ee1293 | ||
with: | ||
script: | | ||
// Note that pull requests are considered issues and "shared" | ||
// actions for both features, like manipulating labels and | ||
// milestones are provided within the issues API. | ||
await github.issues.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
// 2021 q3 release milestone. | ||
// https://github.com/google/blockly/milestone/18 | ||
milestone: 18 | ||
}) | ||
await github.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
labels: ['type: cleanup'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This workflow updates the check_metadata.sh script, which compares the current | ||
# size of build artifacts against their size in the previous version of Blockly. | ||
|
||
name: Update Metadata | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
update-metadata: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check Out Blockly | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: 'develop' | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Build Blockly | ||
run: npm run build:compressed | ||
|
||
- name: Build Blockly blocks | ||
run: npm run build:blocks | ||
|
||
- name: Update Metadata | ||
run: source ./tests/scripts/update_metadata.sh | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@9825ae65b1cb54b543b938503728b432a0176d29 | ||
with: | ||
commit-message: Update build artifact sizes in check_metadata.sh | ||
delete-branch: true | ||
title: Update build artifact sizes in check_metadata.sh | ||
|
||
- name: View Pull Request | ||
run: echo "View Pull Request - ${{ steps.cpr.outputs.pull-request-url }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.