Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge google blockly 7.20211209.1 #53

Merged
merged 1,237 commits into from
Jan 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
1237 commits
Select commit Hold shift + click to select a range
d3a9e51
feat: add top level `save` and `load` functions for JSO serialization…
BeksOmega Aug 6, 2021
38cddd6
feat: add deserialization of JSO block state (#5137)
BeksOmega Aug 6, 2021
9138bca
feat: add initialization of blocks and event firing (#5166)
BeksOmega Aug 10, 2021
bd77b4a
fix: touch up some deserialization behavior (#5181)
BeksOmega Aug 11, 2021
ee78b41
feat: upgrade block defs to have JSO serialization hooks (#5329)
BeksOmega Aug 12, 2021
91922aa
Add throwing exceptions during deserialization (#5200)
BeksOmega Aug 17, 2021
1b47953
feat: add serialization and deserialization of comments (#5216)
BeksOmega Aug 18, 2021
1d4cbd1
Add serializing shadows as JSOs for the JSO system (#5246)
BeksOmega Aug 19, 2021
486123e
fix: insertion markers and change events to work with JSO hooks (#5378)
BeksOmega Aug 19, 2021
07057d0
feat: adds hooks for serializing plugins (#5276)
BeksOmega Aug 20, 2021
9aecac3
fix: remove some attributes from the JSO system (#5356)
BeksOmega Aug 23, 2021
fd12dcf
feat: add throwing errors for bad shadows (#5330)
BeksOmega Aug 23, 2021
4f890d7
fix: redo disconnect from shadow bug
BeksOmega Aug 23, 2021
6d87b85
fix: not being able to specifying variable names in toolbox (#5408)
BeksOmega Aug 26, 2021
410365f
feat: add support for defining toolboxes using pure json (#5392)
BeksOmega Sep 2, 2021
448c433
fix: serializing edited shadows (#5424)
BeksOmega Sep 3, 2021
96935c2
fix: cereal backwards compatibility (#5421)
BeksOmega Sep 3, 2021
e7541cb
fix: copy paste with json system (#5423)
BeksOmega Sep 3, 2021
a4d84e5
fix: dragging blocks from the flyout that only have XML hooks (#5422)
BeksOmega Sep 6, 2021
17f9f4f
fix: loading blocks in RTL
BeksOmega Sep 6, 2021
84514ef
fix: create and delete events, and the trashcan (#5425)
BeksOmega Sep 9, 2021
ee22152
fix: update code demo to include JSON (#5444)
BeksOmega Sep 10, 2021
0e0c5fe
fix: dragging variables from flyout (#5434)
BeksOmega Sep 10, 2021
e954193
fix: project cereal cleanup (#5398)
BeksOmega Sep 10, 2021
7451644
fix: remove eslit disables
BeksOmega Sep 14, 2021
d796405
chore: rebuild deps after rebase
alschmiedt Sep 20, 2021
66e6b62
Make several exported private fields/methods TEST_ONLY (#5479)
gonfunko Sep 21, 2021
e795508
refactor: Remove remaining references to Blockly.* from goog.modules …
cpcallen Sep 21, 2021
bbf26e5
Fix jsdoc in core/utils/useragent.js
Sep 20, 2021
7454d2f
Fix jsdoc in core/serialization/variables.js
Sep 20, 2021
953e3b6
chore: remove deprecated functions (#5509)
rachel-fenichel Sep 21, 2021
d6c9423
Remove declareLegacyNamespace from block-related files.
gonfunko Sep 21, 2021
d83eb13
fix: enable missingRequire in build_tasks (#5510)
rachel-fenichel Sep 21, 2021
556a242
Merge pull request #5511 from gonfunko/legacyNamespace
gonfunko Sep 21, 2021
6fc9021
Merge branch 'develop' into merge-develop-to-goog_module
Sep 21, 2021
cf09135
chore: remove deprecateLegacyNamespace from keyboard nav files
alschmiedt Sep 22, 2021
3adfaaf
chore: named exports for block* files (#5512)
rachel-fenichel Sep 22, 2021
fd251da
Merge branch 'goog_module' into merge-develop-to-goog_module
Sep 22, 2021
900dfc7
Remove references to fully qualified namespace
Sep 22, 2021
b956fa7
Remove duplicate declaration
Sep 22, 2021
d614f58
Fix bug in variable_map that was introduced during merge conflict res…
Sep 22, 2021
73580b0
chore: named exports for keyboard_nav* files (#5517)
alschmiedt Sep 22, 2021
d141dc5
chore: update dev tools dev dependency (#5516)
alschmiedt Sep 22, 2021
07894c1
Update package-lock.json
Sep 22, 2021
61a0773
Merge branch 'goog_module' into merge-develop-to-goog_module
Sep 22, 2021
e1defd8
Merge pull request #5514 from moniika/merge-develop-to-goog_module
moniika Sep 22, 2021
e1310b6
fix: JSDoc generation for modules without classes
gonfunko Sep 22, 2021
33e6471
Merge pull request #5519 from gonfunko/jsdoc
gonfunko Sep 22, 2021
1504c99
fix: updates the release task to build typings for msgs (#5495)
alschmiedt Sep 23, 2021
fd917f4
Migrate core/field_angle.js to to goog.module syntax (#5521)
NeilFraser Sep 23, 2021
8bd2e8c
chore: Remove declareLegacyNamespace() from toolbox/ files
Sep 23, 2021
5f72a61
Remove unecessary deprecation warnings stubs
Sep 22, 2021
f3e8c25
Catch warnings logged during registry test
Sep 22, 2021
b331d78
Initialize generators in generator tests
Sep 22, 2021
d7d74f4
Remove usage of deprecated method in onKeyDown handler
Sep 22, 2021
4efdd72
Update captureWarnings usages to assertWarnings
Sep 23, 2021
e2e8ece
Update test block in trashcan_test to not trigger warning log
Sep 23, 2021
57ccb1e
Remove unecessary block variable block definition
Sep 23, 2021
ede7e8c
chore: Remove declareLegacyNamespace() from field_* files
gonfunko Sep 23, 2021
9f09d50
Merge pull request #5522 from gonfunko/field_namespace
gonfunko Sep 23, 2021
e0693a6
chore: Remove declareLegacyNamespace() from files in core (#5525)
gonfunko Sep 23, 2021
de330c8
chore: Remove declareLegacyNamespace() from theme files
Sep 23, 2021
3629ed5
refactor: Rename Blockly.connectionTypes to Blockly.ConnectionType (#…
himanshujaidka Sep 24, 2021
6b07cca
chore: Remove declareLegacyNamespace from renderers (#5528)
gonfunko Sep 24, 2021
10485dd
Fix typo
Sep 24, 2021
757878c
chore: Remove declareLegacyNamespace() from files under interfaces/*
Sep 23, 2021
8ab8536
refactor: Migrate `Blockly.ConnectionType` to named exports (#5533)
cpcallen Sep 24, 2021
f931b2e
Reexport global.globalThis as Blockly.utils.global (#5534)
cpcallen Sep 24, 2021
16b6d45
refactor: Rename `Blockly.Blocks`, migrate to named exports (#5515)
cpcallen Sep 24, 2021
2b34748
chore: remove declareLegacyNamespace from events (#5532)
alschmiedt Sep 24, 2021
a598751
Fix typo in alias
Sep 23, 2021
06a41de
fix: Add hack to copy accessors to global Blockly namespace object (#…
cpcallen Sep 27, 2021
3f063f0
BREAKING CHANGE: Migrate `core/` to `goog.module` (#5544)
cpcallen Sep 27, 2021
ba5766c
fix: blocks dragged from RTL flyout being incorrectly positioned
BeksOmega Sep 27, 2021
839cb7b
fix: infinite loop when using defineProperties (#5549)
alschmiedt Sep 27, 2021
d8fbe1b
Add namespace and alias annotations to jsdoc (#5550)
moniika Sep 27, 2021
56d26b8
Add missing @alias annotations (#5559)
moniika Sep 28, 2021
f67214d
Update @package annotations (#5558)
moniika Sep 28, 2021
2f44dfd
Add JSDoc to theme classes. (#5551)
moniika Sep 28, 2021
cd5ea68
Add missing alias annotations (#5561)
moniika Sep 28, 2021
c9329ea
chore: Rollup of all Q3 message changes (#5564)
NeilFraser Sep 28, 2021
49bc2b1
Replace namespace annotation with class annotation in files that defi…
moniika Sep 28, 2021
c5ffd03
fix: JSDoc improvments for accessors, etc. (#5567)
cpcallen Sep 29, 2021
d2d5dc4
fix: Use require instead of requireType for interfaces (#5568)
cpcallen Sep 29, 2021
ad57942
fix: Fix JS Spaghetti button. (#5569)
maribethb Sep 30, 2021
f994a9c
fix: RTL copy-paste and duplicate (#5560)
BeksOmega Sep 30, 2021
02333bf
fix: Fix Block Factory preview (#5571)
cpcallen Sep 30, 2021
1c1918e
chore: rebuild for release (#5573)
alschmiedt Oct 1, 2021
487d2ad
chore: Bump @wdio/selenium-standalone-service from 7.13.0 to 7.13.2 (…
dependabot[bot] Oct 1, 2021
03e164e
chore: Bump mocha from 9.1.1 to 9.1.2 (#5574)
dependabot[bot] Oct 1, 2021
ca61d8c
fix: Fix errors in injected CSS (#5587)
moniika Oct 7, 2021
2b1f33c
feat: add Blockly.Extensions.isRegistered function (#5500)
aaimio Oct 7, 2021
b25e24f
chore: Run clang-format on core/*.js (#5589)
rachel-fenichel Oct 7, 2021
246927a
fix: Make update_metadata.sh work on macOS (#5590)
gonfunko Oct 7, 2021
abee92c
fix: clear dropdown div before rendering content (#5429)
hpnrep6 Oct 14, 2021
ec9092f
Changes Css.register API to accept string param (#5472)
DubeySandeep Oct 14, 2021
7ac1e27
Add Croatian to Code demo (#5583)
NeilFraser Oct 15, 2021
c929b30
chore: Convert == to === and != to !== where possible. (#5599)
NeilFraser Oct 15, 2021
90b3f75
Remove @author tags (#5601)
NeilFraser Oct 15, 2021
56d4fbb
fix: Don't kludge accessors in compiled mode (#5591)
cpcallen Oct 15, 2021
063c8ad
chore: Bump google-closure-compiler from 20210601.0.0 to 20211006.0.0…
dependabot[bot] Oct 15, 2021
d71b9c6
fix: group context menu collapse blocks events (#5501)
aaimio Oct 18, 2021
cce03e9
Add Croatian to Code demo (#5583) (#5611)
NeilFraser Oct 18, 2021
30eb4d4
fix: Positioning of pasted/duplicated blocks in LTR workspaces (#5613)
gonfunko Oct 18, 2021
7bfbaac
Bump yargs from 16.2.0 to 17.2.1 (#5603)
dependabot[bot] Oct 18, 2021
21a1ec3
Bump webdriverio from 7.13.0 to 7.14.1 (#5594)
dependabot[bot] Oct 18, 2021
f578051
Bump mocha from 9.1.2 to 9.1.3 (#5616)
dependabot[bot] Oct 18, 2021
817a797
chore: update dependabot messages and labels (#5618)
rachel-fenichel Oct 19, 2021
246c5f9
Bump concurrently from 6.2.0 to 6.3.0 (#5581)
dependabot[bot] Oct 19, 2021
3189f01
chore(deps): Bump google-closure-deps from 20210601.0.0 to 20210808.0…
dependabot[bot] Oct 19, 2021
abe1ffe
Bump typescript from 4.3.2 to 4.4.4 (#5617)
dependabot[bot] Oct 19, 2021
47a8e5d
chore: create release.yml (#5588)
rachel-fenichel Oct 20, 2021
3851b14
refactor: Migrate to named exports (#5623)
gonfunko Oct 20, 2021
e8d6f7f
chore: auto-fix violations of comma-dangle rule (#5625)
rachel-fenichel Oct 21, 2021
6dc0f90
chore: replace var with const and let in blocks directory (#5626)
rachel-fenichel Oct 21, 2021
0f3c063
chore: runs clang format on all files (#5627)
alschmiedt Oct 21, 2021
feef8fe
Bump selenium-standalone from 7.1.0 to 8.0.3 (#5632)
dependabot[bot] Oct 25, 2021
5cdc5f5
chore: Update deps.js with modified lang values (#5636)
cpcallen Oct 25, 2021
f70032a
chore: replace more uses of var with const and let (#5628)
rachel-fenichel Oct 25, 2021
52c0427
chore: run eslint--fix for no-var rule in tests/mocha (#5637)
rachel-fenichel Oct 25, 2021
8a89e08
chore: adds a check for properly formatted files (#5624)
alschmiedt Oct 25, 2021
4452575
fix: Change Marker in blockly.js becuase of the usage of the Marker …
Devesh21700Kumar Oct 26, 2021
0ae10fe
chore: replace var with let and const in mocha tests (#5638)
rachel-fenichel Oct 26, 2021
36fe365
fix: Fix mutators when compiled with renames. (#5644)
NeilFraser Oct 27, 2021
a366daa
chore: update generators/dart.js to const and let (#5646)
rachel-fenichel Oct 27, 2021
b66154f
Add feedback on expiry page. (#5648)
NeilFraser Oct 28, 2021
f0a874c
Bump @wdio/selenium-standalone-service from 7.13.2 to 7.16.1 (#5635)
dependabot[bot] Oct 28, 2021
8515827
chore: update dependabot messages and labels (#5653)
rachel-fenichel Oct 28, 2021
db78d9f
chore: replace var with const and let in python block generators (#5650)
rachel-fenichel Oct 29, 2021
6c49d6c
chore: update language generators to const and let (#5647)
rachel-fenichel Oct 29, 2021
f4e7249
chore: update var to const and let in dart block generators (#5654)
rachel-fenichel Oct 29, 2021
cfb995c
chore: adds an action to assign reviewers from requested reviewers(#5…
alschmiedt Oct 29, 2021
bc7329f
fix(zelos): typo (#5649)
Nov 1, 2021
a452add
Bump selenium-standalone from 8.0.3 to 8.0.4 (#5651)
dependabot[bot] Nov 1, 2021
7ff6b93
chore: Fix permissions for Assign requested reviewers workflow (#5666)
cpcallen Nov 2, 2021
fa47c3c
Normalize ++x to x++. (#5660)
NeilFraser Nov 2, 2021
8a60734
chore: Update dependabot labelling config (#5664)
cpcallen Nov 2, 2021
f4381bb
fix: Don't crash when unable to post comment to PR (#5669)
cpcallen Nov 2, 2021
689164d
chore: Create separate report_clang_format workflow in master branch …
cpcallen Nov 2, 2021
c54b0e0
chore: Remove spurious extra `on` clause in report_clang_format.yml (…
cpcallen Nov 2, 2021
18fd274
chore: More spelunking in GitHub Action data (#5673)
cpcallen Nov 2, 2021
6c0c81d
docs: Fix a few typos (#5655)
timgates42 Nov 3, 2021
de95ffd
chore: update javascript block generators to const and let (#5661)
rachel-fenichel Nov 3, 2021
1b29a00
chore: update php block generators to const and let (#5663)
rachel-fenichel Nov 3, 2021
3e706ac
Bump webdriverio from 7.14.1 to 7.16.3 (#5652)
dependabot[bot] Nov 4, 2021
3746688
chore: update lua block generators to const and let (#5662)
rachel-fenichel Nov 5, 2021
1c3f4f0
fix: isPrime block should cast str as num (#5680)
NeilFraser Nov 5, 2021
3eb5c95
fix: bad order of checks for setting flyout visibility (#5681)
rachel-fenichel Nov 5, 2021
6448528
chore: applies fixes to clang format (#5677)
alschmiedt Nov 5, 2021
1ebec55
chore: apply prefer-const rule fixes in mocha tests (#5682)
rachel-fenichel Nov 5, 2021
c75e944
chore: remove references to JSON extraction (#5683)
rachel-fenichel Nov 6, 2021
0125d78
chore: revert github action (#5675)
alschmiedt Nov 8, 2021
eca5ee2
fix: Don't try to set text fields to null on cancel (#5690)
NeilFraser Nov 8, 2021
500853a
fix: Don't try to set text fields to null on cancel (#5692)
NeilFraser Nov 8, 2021
beefe36
fix!(blocks): Rename Blockly.Blocks.* modules to Blockly.blocks.* (#5…
cpcallen Nov 8, 2021
f14a1c8
chore: fix more lint (#5676)
rachel-fenichel Nov 9, 2021
f8e2e63
chore: add command to launch mocha tests (#5679)
rachel-fenichel Nov 9, 2021
82fde60
chore: update deps.js, deps.mocha.js (#5698)
cpcallen Nov 10, 2021
d11cc04
chore: fix more lint (#5700)
rachel-fenichel Nov 10, 2021
1fcae95
fix: Quote Msg prop name to survive compile (#5703)
NeilFraser Nov 10, 2021
8771764
chore(deps): bump webdriverio from 7.16.3 to 7.16.5 (#5701)
dependabot[bot] Nov 11, 2021
e5c40e2
Update dependabot.yml (#5705)
rachel-fenichel Nov 11, 2021
4d87d53
chore(deps): bump http-server from 13.0.2 to 14.0.0 (#5657)
dependabot[bot] Nov 11, 2021
014ba97
Bump @blockly/theme-modern from 2.1.19 to 2.1.24 (#5630)
dependabot[bot] Nov 11, 2021
5093087
chore(deps): bump webdriverio from 7.16.5 to 7.16.6 (#5704)
dependabot[bot] Nov 11, 2021
3e324c0
chore(deps): bump @wdio/selenium-standalone-service (#5708)
dependabot[bot] Nov 15, 2021
6c10b60
chore(deps): bump concurrently from 6.3.0 to 6.4.0 (#5710)
dependabot[bot] Nov 15, 2021
969fcac
chore: Move functions from utils (#5706)
rachel-fenichel Nov 15, 2021
075385c
chore: move remaining functions out of utils.js (#5714)
rachel-fenichel Nov 16, 2021
335ff19
refactor: Update uncompiled-mode dependency loading for playground, t…
cpcallen Nov 17, 2021
5deed5a
chore: fix or ignore remaining lint (#5709)
rachel-fenichel Nov 17, 2021
27699ed
chore: move remaining function definitions out of blockly.js (#5699)
rachel-fenichel Nov 17, 2021
bbf768a
chore: enable eslint-config-google (#5717)
rachel-fenichel Nov 18, 2021
d30d0da
chore: Record renamings for named exports (#5719)
gonfunko Nov 18, 2021
6c33373
chore: make Blockly.common.setSelected package and update docs (#5728)
maribethb Nov 22, 2021
308253b
chore: moves the public loop mixin into its own file (#5730)
alschmiedt Nov 24, 2021
da3df70
feat: Enable the creation of concurrent, but not connected, output an…
mark-friedman Nov 25, 2021
1a47000
fix: Stop throwing error when PointerEvent.pageX is 0. (#5727)
NeilFraser Nov 26, 2021
c38913e
chore(deps): bump google-closure-deps from 20210808.0.0 to 20211107.0…
dependabot[bot] Nov 29, 2021
ef0fa83
chore(deps): bump google-closure-compiler (#5707)
dependabot[bot] Nov 29, 2021
985af10
chore(build): Use chunked compilation (#5721)
cpcallen Nov 29, 2021
c0d22f2
refactor: Rename `ALIGN` to `Align` and move from `constants.js` to `…
cpcallen Nov 29, 2021
25a4561
Migrate `blocks/colour.js` to goog.module syntax (#5738)
cpcallen Nov 29, 2021
3e98781
chore(build): Update compiler & linter input language to ES2020 (#5745)
cpcallen Nov 30, 2021
b21130a
refactor: Migrate `blocks/procedures.js` to goog.module syntax (#5736)
cpcallen Nov 30, 2021
1a99238
refactor: Migrate `blocks/lists.js` to `goog.module` syntax (#5746)
cpcallen Nov 30, 2021
4db047f
chore: fix missing requires in generators (#5744)
rachel-fenichel Nov 30, 2021
8ef0b20
feat: clarify variable and procedure constants (#5743)
rachel-fenichel Nov 30, 2021
2ca6740
refactor: Migrate `blocks/logic.js` to `goog.module` syntax (#5748)
cpcallen Nov 30, 2021
341dba5
fix: Prevent error when maxTrashcanContents is 0 (#5739)
NeilFraser Nov 30, 2021
af2bf58
refactor: migrate `generators/dart.js` to `goog.module` syntax (#5749)
rachel-fenichel Nov 30, 2021
780198e
chore: revert #5730 (#5740)
alschmiedt Nov 30, 2021
874bbc1
refactor: convert some js block generators to goog.module (#5750)
rachel-fenichel Nov 30, 2021
208d200
refactor: Migrate `blocks/loops.js` to `goog.module` syntax (#5755)
cpcallen Nov 30, 2021
47c8210
fix: procedure callers now remove inputs properly (#5751)
alschmiedt Dec 1, 2021
d999151
refactor: convert generators/javascript/procedures.js to goog.module …
rachel-fenichel Dec 1, 2021
e11fe34
refactor: convert some js block generators to goog.module (#5756)
rachel-fenichel Dec 1, 2021
93a1bce
refactor: convert generators/javascript/loops.js to goog.module (#5758)
rachel-fenichel Dec 1, 2021
37a1e97
refactor: convert some block generators to goog.module (#5762)
rachel-fenichel Dec 1, 2021
d7b82cd
refactor: Migrate `blocks/math.js` to `goog.module` syntax (#5765)
cpcallen Dec 1, 2021
a939fec
refactor: convert some block generators to goog.module (#5769)
rachel-fenichel Dec 1, 2021
c0517ea
refactor: convert some block generators to goog.module (#5770)
rachel-fenichel Dec 2, 2021
9314992
refactor: convert python block generators to goog.module (#5771)
rachel-fenichel Dec 2, 2021
ee18553
refactor: Migrate `blocks/text.js` to `goog.module` syntax (#5766)
cpcallen Dec 2, 2021
35279eb
chore: correctly updates the compiled flag (#5767)
alschmiedt Dec 2, 2021
da16a66
refactor: msg.js: use named export, remove declareLegacyNamespace (#5…
cpcallen Dec 2, 2021
5515afc
chore: Remove declareLegacyNamespace from serialization folder (#5757)
alschmiedt Dec 2, 2021
7d7bd75
refactor: Migrate `blocks/variables.js` to `goog.module` syntax (#5774)
cpcallen Dec 2, 2021
6128f2d
feat: make checkAndDelete a public API (#5772)
alschmiedt Dec 2, 2021
0493011
fix: the advanced playground to work with dec 2021 release (#5775)
alschmiedt Dec 3, 2021
719e0fb
chore: updates the names for parsing (#5778)
alschmiedt Dec 3, 2021
8b3635a
chore: Simplify NPM package wrappers, improve chunk wrapper generator…
cpcallen Dec 3, 2021
c93e1df
deprecate!: removes deprecated connection functions (#5713)
alschmiedt Dec 3, 2021
b08187c
refactor: Migrate `blocks/variables_dynamic.js` to `goog.module` synt…
cpcallen Dec 3, 2021
b52c017
chore: Fix inadvertent block migration inconsistencies (#5780)
cpcallen Dec 3, 2021
3d7262f
fix(tests): Fix & reenable the advanced compilation test (#5781)
cpcallen Dec 3, 2021
8635942
chore(test): Add playground that uses compressed files (#5782)
rachel-fenichel Dec 3, 2021
3770f20
chore(deps): remove dependency on typescript-closure-tools (#5776)
rachel-fenichel Dec 3, 2021
5a70f8a
chore(test): add version of multi_playground with compressed files (#…
rachel-fenichel Dec 3, 2021
10cfc11
chore: Remove `core/requires.js` (#5718)
cpcallen Dec 6, 2021
4a8668a
release: merge master into develop (#5792)
rachel-fenichel Dec 7, 2021
243d1e9
fix: multi-playground should use goog.require to get blocks. (#5797)
rachel-fenichel Dec 8, 2021
7784eac
chore!: Add deprecation notices to values in blockly.js (#5555)
maribethb Dec 9, 2021
98f9470
fix: allow undefined color in toolbox definition (#5801)
maribethb Dec 9, 2021
64107cc
fix: don't use fully qualified namespace in aria (#5804)
maribethb Dec 9, 2021
1fb204e
fix: Upload new TypeScript typings for Q4 release (#5802)
maribethb Dec 9, 2021
de7daac
Rebuild
maribethb Dec 9, 2021
ed4bb0e
Merge pull request #5806 from maribethb/rebuild_12_9_2021
maribethb Dec 9, 2021
297ae3d
Merge branch 'master' into rc_2021_12
maribethb Dec 9, 2021
bb9b64e
chore(deps): Update package-lock.json
rachel-fenichel Dec 9, 2021
02a5712
Merge pull request #5808 from google/rc_2021_12
maribethb Dec 9, 2021
2e57d5e
docs: Update README to reflect next release date (#5820)
gonfunko Dec 14, 2021
b8cc983
fix: Use correct namespace for svgMath functions (#5813)
maribethb Dec 13, 2021
0e5f3ce
fix: re-expose HSV_VALUE and HSV_SATURATION as settable properties on…
rachel-fenichel Dec 14, 2021
620e43e
chore: update the dev-tools version (#5823)
alschmiedt Dec 15, 2021
553f8bc
chore: update build files for patch release
alschmiedt Dec 15, 2021
7daf693
chore: update to the correct version
alschmiedt Dec 15, 2021
d43e524
chore: cleanup
alschmiedt Dec 15, 2021
81e5931
Merge pull request #5826 from alschmiedt/patch_2021
alschmiedt Dec 15, 2021
876afb7
chore: update the package-lock
alschmiedt Dec 15, 2021
4be7891
Merge pull request #5828 from alschmiedt/add_package_lock
alschmiedt Dec 15, 2021
4e87be7
chore: clean up issue templates and pull request templates (#5827)
rachel-fenichel Dec 15, 2021
bf780d0
Merge https://github.com/google/blockly
Dec 23, 2021
51c44d8
Remove .github
Dec 23, 2021
d58eab1
Refactor module feature
Dec 27, 2021
38d97d7
Fixes after merge
Dec 28, 2021
7e83569
Remove compressed files
Dec 28, 2021
dc623c9
Fix problem with large css content and refactor some files
Dec 30, 2021
363d3d9
Fix build and deps
Jan 10, 2022
c8e2224
Fix duplicate creating blocks in domToWorkspace method
Jan 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: Fix permissions for Assign requested reviewers workflow (googl…
…e#5666)

* refactor: Inline assign_reviewers script to avoid checkout

Per https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
it is not safe to do a checkout of the submitter-supplied code
AND THEN RUN IT (via require).  This is pretty bad.

We want to give this script more permissions by running it
`on: [pull_request_target]` (instead of `pull_request`); this would
give it permission to modify the PR (e.g. add comments, change
assignment).  While it would be OK to do a checkout with default
parameters (which in `pull_request_target` would check out *our*
branch rather than the submitted one) it simplest just to inline
this small script and thereby obviate the need to do a checkout at all.

* chore: Give assign_reviewers action required permissions

Changing it from `on: [pull_request]` to `on: [pull_request_review]`
will give the action write access to our repository, allowing it to
change the assignment of the PR.

This is now safe as the script does not ever check out any
submitter-supplied code.

* docs: Comment tweaks for assign_reviewers.yml
  • Loading branch information
cpcallen committed Nov 2, 2021
commit 7ff6b93eb5e3e5f672fdab2b7390dc4dd01946bc
34 changes: 28 additions & 6 deletions .github/workflows/assign_reviewers.yml
Original file line number Diff line number Diff line change
@@ -1,19 +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:
pull_request_target:
types: [review_requested]

jobs:
requested-reviewer:
runs-on: ubuntu-latest
steps:
- name: Check Out Blockly
uses: actions/checkout@v2

- name: Assign requested reviewer
uses: actions/github-script@v5
with:
script: |
const {assign} = require('./.github/workflows/scripts/assign_reviewers.js')
assign(github, context, core)
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);
}
27 changes: 0 additions & 27 deletions .github/workflows/scripts/assign_reviewers.js

This file was deleted.