forked from google/blockly
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #7 from RichDoherty/develop
Updates
- Loading branch information
Showing
434 changed files
with
17,071 additions
and
13,709 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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.12 | ||
with: | ||
source: 'core' | ||
extensions: 'js' | ||
clangFormatVersion: 12 | ||
style: Google | ||
|
||
# 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
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.