mirror of
https://github.com/apache/superset.git
synced 2026-05-07 00:44:26 +00:00
Compare commits
2035 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
489d341688 | ||
|
|
6e8d360525 | ||
|
|
d237cd63c0 | ||
|
|
233135e8ec | ||
|
|
1d2bf882f9 | ||
|
|
8833a6e37e | ||
|
|
2cab564bb7 | ||
|
|
f0e7b8b7a1 | ||
|
|
e981a18afd | ||
|
|
f2f22638de | ||
|
|
75a329abb3 | ||
|
|
52ba82fb8b | ||
|
|
628a9b2b7b | ||
|
|
908c0f2b52 | ||
|
|
a078296330 | ||
|
|
7ac6e61b96 | ||
|
|
086b3a66a0 | ||
|
|
f8270b0b80 | ||
|
|
b22e458108 | ||
|
|
40a334aacf | ||
|
|
407b194b15 | ||
|
|
7aba4c246a | ||
|
|
551a3e4373 | ||
|
|
5fe4173a5d | ||
|
|
e9d66e904f | ||
|
|
8f83afcf49 | ||
|
|
e47350ef96 | ||
|
|
5f93a14f5d | ||
|
|
6731cd0be6 | ||
|
|
ed53b0090e | ||
|
|
d8f4443c10 | ||
|
|
fe01e2d88d | ||
|
|
1e527d54e7 | ||
|
|
0f731f27e4 | ||
|
|
078a8a17a1 | ||
|
|
75f927b9eb | ||
|
|
9b0e6d0cc0 | ||
|
|
321444bfd5 | ||
|
|
376723a1f5 | ||
|
|
ddbcf5b0e9 | ||
|
|
9618f0786c | ||
|
|
4cf3f99ee8 | ||
|
|
c61167d2f7 | ||
|
|
ee53d82184 | ||
|
|
2ab490a101 | ||
|
|
ff7b789931 | ||
|
|
23263da9f3 | ||
|
|
c327cb911e | ||
|
|
9acf48fd1e | ||
|
|
6bee3a0581 | ||
|
|
37f648c41b | ||
|
|
f13f2e2ed3 | ||
|
|
99de8a49b6 | ||
|
|
3eb0470a2f | ||
|
|
5d04f7dbce | ||
|
|
14ccbe43b3 | ||
|
|
64b49778c5 | ||
|
|
662b64960f | ||
|
|
6a3103ff49 | ||
|
|
41751529a6 | ||
|
|
12504264e7 | ||
|
|
9c5be8e4d8 | ||
|
|
77b80c9431 | ||
|
|
f642aea683 | ||
|
|
2210015aab | ||
|
|
f354bb3d1b | ||
|
|
1d2789944c | ||
|
|
7c8ead85c1 | ||
|
|
fd15dff60e | ||
|
|
76b06b215f | ||
|
|
737e6b4aee | ||
|
|
78d3557757 | ||
|
|
4d279935df | ||
|
|
466a7c8693 | ||
|
|
d1767b9065 | ||
|
|
c685c9ea8f | ||
|
|
fecfc34cd3 | ||
|
|
d760e885d7 | ||
|
|
cbda599406 | ||
|
|
a30064b2e8 | ||
|
|
f83afb44c8 | ||
|
|
627642162b | ||
|
|
24fccdb2bc | ||
|
|
9997abeab6 | ||
|
|
5088e570bf | ||
|
|
547c356b4c | ||
|
|
076c31da22 | ||
|
|
ca07c8cd39 | ||
|
|
f48284909d | ||
|
|
bcb8db621c | ||
|
|
8214237638 | ||
|
|
1459b34390 | ||
|
|
4e6613d11f | ||
|
|
506edf432d | ||
|
|
8f7c7d43a3 | ||
|
|
176f54da7a | ||
|
|
0e514c184c | ||
|
|
eb3c2b2b11 | ||
|
|
9eb911dca3 | ||
|
|
90ac8d02c6 | ||
|
|
1f8347228e | ||
|
|
e660723a2f | ||
|
|
b221417e19 | ||
|
|
2b6a58780a | ||
|
|
0171a6bee4 | ||
|
|
cf1c57a6d4 | ||
|
|
b01276808e | ||
|
|
d0668fa7e4 | ||
|
|
c8ad5c90bd | ||
|
|
6df8224381 | ||
|
|
6b2b208b3b | ||
|
|
b4f6d353c9 | ||
|
|
1a2680d4a1 | ||
|
|
1b908ab9f1 | ||
|
|
147605cb40 | ||
|
|
553b440e4b | ||
|
|
2bf06d666b | ||
|
|
4149ab4e5e | ||
|
|
66349d86a4 | ||
|
|
230c0c2357 | ||
|
|
95f0ead8eb | ||
|
|
673dea76f1 | ||
|
|
d4a854e84b | ||
|
|
d204b024b7 | ||
|
|
8afc4c4a44 | ||
|
|
b349edef29 | ||
|
|
811e1b273b | ||
|
|
8ecf82de5a | ||
|
|
95296df507 | ||
|
|
e853c16a3d | ||
|
|
62e7706035 | ||
|
|
7d88e6b891 | ||
|
|
164db3e5a1 | ||
|
|
ff0fe434e4 | ||
|
|
a3bbbf8ea3 | ||
|
|
7cc0de1694 | ||
|
|
f3ab1f41ee | ||
|
|
74f3faf1cd | ||
|
|
b75a1ec71e | ||
|
|
3acfd826de | ||
|
|
3fb4e54690 | ||
|
|
e5e9a5f05c | ||
|
|
09a381da1d | ||
|
|
732d1ed40b | ||
|
|
4ac00a0954 | ||
|
|
93af329078 | ||
|
|
d2da25a621 | ||
|
|
de61859e98 | ||
|
|
ca680cf976 | ||
|
|
a85bb4a3f2 | ||
|
|
8e3f71df4d | ||
|
|
41fac6b0d9 | ||
|
|
a52031a55e | ||
|
|
9b110b2aa5 | ||
|
|
c281e52f81 | ||
|
|
942e3210b5 | ||
|
|
8682c6fc1c | ||
|
|
e2f676445b | ||
|
|
ce1abc98df | ||
|
|
2f0add3aec | ||
|
|
8d5dcc5784 | ||
|
|
17769ca96e | ||
|
|
eecdd20301 | ||
|
|
0d9c863b6e | ||
|
|
ba952ba39d | ||
|
|
b5dd0f32cc | ||
|
|
4a471b8c71 | ||
|
|
de047c6c31 | ||
|
|
585c8acd75 | ||
|
|
865beae3d8 | ||
|
|
877b153331 | ||
|
|
fa27ed1147 | ||
|
|
81f5631fe5 | ||
|
|
210fd251c5 | ||
|
|
f653a8de30 | ||
|
|
a6ac2c1245 | ||
|
|
f4ce831a10 | ||
|
|
2a23744223 | ||
|
|
8e625e0a64 | ||
|
|
d543ca87fb | ||
|
|
49ec13c68c | ||
|
|
4ae21bf30b | ||
|
|
1a5f61b133 | ||
|
|
6621557af2 | ||
|
|
fa10035dce | ||
|
|
35addee3ae | ||
|
|
af130ea5e9 | ||
|
|
1cf4a1b3ea | ||
|
|
17cd174bbf | ||
|
|
ddd2ec59af | ||
|
|
6e7f276775 | ||
|
|
b592cc7e73 | ||
|
|
92fdf54aa3 | ||
|
|
b61e243f39 | ||
|
|
d1dfe82d6c | ||
|
|
895fa19d8d | ||
|
|
1a20552c2b | ||
|
|
a3be325b99 | ||
|
|
5d9721e6ba | ||
|
|
790ac5ef87 | ||
|
|
dd5cdb1b5f | ||
|
|
700dee6db6 | ||
|
|
51c3b7156c | ||
|
|
02c6a0befc | ||
|
|
dd0c53158f | ||
|
|
655834b25c | ||
|
|
08b3ebea5e | ||
|
|
90ca49f3d6 | ||
|
|
c306368f3c | ||
|
|
8d29381446 | ||
|
|
69185eed67 | ||
|
|
e299dbf797 | ||
|
|
9be9034f1a | ||
|
|
148a0017b7 | ||
|
|
8fe9ee04c8 | ||
|
|
48fb8c0b77 | ||
|
|
2302adb61a | ||
|
|
9c8b65d03f | ||
|
|
0ee03ae440 | ||
|
|
794d318989 | ||
|
|
8bda6b0bd9 | ||
|
|
8da1900d8a | ||
|
|
76f9f185fb | ||
|
|
77cae64ccd | ||
|
|
5e811a14ef | ||
|
|
e0079bb5ae | ||
|
|
52e970a520 | ||
|
|
862c251924 | ||
|
|
7dac150dc6 | ||
|
|
12e086dc61 | ||
|
|
f79e52f48e | ||
|
|
821b01737d | ||
|
|
2df519eab0 | ||
|
|
0f979dea06 | ||
|
|
832267c776 | ||
|
|
20b1aa7d6c | ||
|
|
329dcc314e | ||
|
|
7a7da27253 | ||
|
|
6fcda5dac1 | ||
|
|
fda3a2fe7c | ||
|
|
3d56f58ef5 | ||
|
|
d5b16bcd85 | ||
|
|
6311a9ec8c | ||
|
|
1afe91579e | ||
|
|
fee9bbe57b | ||
|
|
3e22668f8d | ||
|
|
022d755640 | ||
|
|
90ed3267e4 | ||
|
|
45703a1dea | ||
|
|
9277a54a12 | ||
|
|
696308715d | ||
|
|
5d8ecc01b7 | ||
|
|
2769de3731 | ||
|
|
916f7e923a | ||
|
|
12d9d1eccb | ||
|
|
4d329071a1 | ||
|
|
0fdf026cbc | ||
|
|
df6efb6aa2 | ||
|
|
475f59cb1c | ||
|
|
9e07e10055 | ||
|
|
3a6254184a | ||
|
|
9256b6fb3d | ||
|
|
38bb6f3f20 | ||
|
|
8cc566792a | ||
|
|
c73904b02e | ||
|
|
5435064807 | ||
|
|
e62cf0d84d | ||
|
|
6fe1f9d78a | ||
|
|
a4b06d23fd | ||
|
|
3c177e550b | ||
|
|
36976d17f7 | ||
|
|
4da47f1635 | ||
|
|
6270fa2026 | ||
|
|
9121482479 | ||
|
|
1e3aaab590 | ||
|
|
150c8e36b1 | ||
|
|
cc44a2c01b | ||
|
|
8164aeafb1 | ||
|
|
7e6f04fce4 | ||
|
|
05258ebc6c | ||
|
|
8f1ac7ead1 | ||
|
|
33325f9fa6 | ||
|
|
fbb458fa8b | ||
|
|
2b9695c520 | ||
|
|
a7bba92469 | ||
|
|
14ea444e58 | ||
|
|
f98ae014fa | ||
|
|
41738df77d | ||
|
|
66cd565bff | ||
|
|
2c323426d1 | ||
|
|
64d6fb9f6f | ||
|
|
fa68288d61 | ||
|
|
8adc8b8866 | ||
|
|
98dc65722c | ||
|
|
60122a2b2d | ||
|
|
77d362d306 | ||
|
|
327a2817d3 | ||
|
|
41d4fb9cb3 | ||
|
|
e0288bf76b | ||
|
|
5b1939802d | ||
|
|
54bf70733f | ||
|
|
04f993e222 | ||
|
|
9ae2f95b34 | ||
|
|
0396c705d4 | ||
|
|
38d21acff6 | ||
|
|
53017e5a35 | ||
|
|
38b720b0a7 | ||
|
|
8c063efa75 | ||
|
|
71c567bf3a | ||
|
|
61064b9634 | ||
|
|
721f9119e1 | ||
|
|
0c10f9ee3f | ||
|
|
1842c56209 | ||
|
|
f2d9f00013 | ||
|
|
07288789e2 | ||
|
|
618a73d56e | ||
|
|
9514be5daf | ||
|
|
a76eadd838 | ||
|
|
d041d3a7f1 | ||
|
|
f292015ccd | ||
|
|
ac9761c730 | ||
|
|
a5af2ade0a | ||
|
|
3035090915 | ||
|
|
ffa32cde14 | ||
|
|
44e80e0175 | ||
|
|
84e0606a90 | ||
|
|
011724750f | ||
|
|
3cd94d6da9 | ||
|
|
a0b81357cd | ||
|
|
0e9898cb96 | ||
|
|
a4f44255aa | ||
|
|
b1a963b93f | ||
|
|
462b39d762 | ||
|
|
16e69f1131 | ||
|
|
0689738e7c | ||
|
|
5ebc09b339 | ||
|
|
9dd33d5566 | ||
|
|
46664452a7 | ||
|
|
19e5ce0ac7 | ||
|
|
e974b0be05 | ||
|
|
671ff6c053 | ||
|
|
ec01691e22 | ||
|
|
43c69d52a4 | ||
|
|
f121107bbe | ||
|
|
35784106dd | ||
|
|
1591d75d2f | ||
|
|
bac84a3aac | ||
|
|
13c51d5211 | ||
|
|
9c69679e14 | ||
|
|
c354e7e0ab | ||
|
|
4cbf482194 | ||
|
|
0504cf1a00 | ||
|
|
9215a31fa2 | ||
|
|
84c8a627b2 | ||
|
|
ac0dd3fa32 | ||
|
|
38f67a44ca | ||
|
|
f27ebc4be5 | ||
|
|
501b9d47c5 | ||
|
|
e4d02881d2 | ||
|
|
9b68b65568 | ||
|
|
75086f8979 | ||
|
|
c0224aa928 | ||
|
|
302357f3e7 | ||
|
|
67c44479b5 | ||
|
|
6019113bc6 | ||
|
|
91bcbc8350 | ||
|
|
6cb820583b | ||
|
|
d364d0354c | ||
|
|
f49525f03e | ||
|
|
872a54d304 | ||
|
|
25345bea64 | ||
|
|
2566319554 | ||
|
|
fd7e6c77fc | ||
|
|
a062cbbf5d | ||
|
|
db7386910e | ||
|
|
fbe4a6622e | ||
|
|
a3a2a68f01 | ||
|
|
2f4f87795d | ||
|
|
141cb45b5a | ||
|
|
1ef3a02e7a | ||
|
|
cdd01f4851 | ||
|
|
63ef649d1d | ||
|
|
31eaa0ca20 | ||
|
|
c79dc4763b | ||
|
|
8bdf943687 | ||
|
|
7ae8cd07cc | ||
|
|
676e0bb282 | ||
|
|
1371939921 | ||
|
|
cce716a821 | ||
|
|
b3ead231cc | ||
|
|
01d15f5368 | ||
|
|
c241c6f00b | ||
|
|
8a39f2799a | ||
|
|
274420bc5a | ||
|
|
7bc353f8a8 | ||
|
|
871a98abe2 | ||
|
|
3e6bcbb98d | ||
|
|
86651cd451 | ||
|
|
5700f8d363 | ||
|
|
a16a2b87c7 | ||
|
|
2f036e9359 | ||
|
|
700c7c524e | ||
|
|
7d27996867 | ||
|
|
2b107ed33d | ||
|
|
4cfcaebb61 | ||
|
|
68693c7c0a | ||
|
|
218f58edb7 | ||
|
|
95246e8812 | ||
|
|
ec8ccd4cf1 | ||
|
|
3ad65bc163 | ||
|
|
5cb6c25ca0 | ||
|
|
432e5ab460 | ||
|
|
12cb27f5cb | ||
|
|
1dc4c4746e | ||
|
|
0338b48fdd | ||
|
|
4af7264a2c | ||
|
|
b277f19808 | ||
|
|
542d2e3b06 | ||
|
|
2718909314 | ||
|
|
302c9603c4 | ||
|
|
45738ffc1d | ||
|
|
6ef4d2a991 | ||
|
|
4a070cfceb | ||
|
|
f3b68cbbbe | ||
|
|
7cbf21c39f | ||
|
|
4f21dea55f | ||
|
|
a9f9c4bbd5 | ||
|
|
77dff0e4e0 | ||
|
|
329e72885c | ||
|
|
73cc938358 | ||
|
|
75245177e9 | ||
|
|
339d0d73bc | ||
|
|
14aa729e66 | ||
|
|
4eff80c3f3 | ||
|
|
98d1c6964c | ||
|
|
777a84cdbf | ||
|
|
cf868891be | ||
|
|
3b89d2307a | ||
|
|
cd0198a878 | ||
|
|
51712bf7ce | ||
|
|
4d41cf900d | ||
|
|
966a826720 | ||
|
|
d315dd96f0 | ||
|
|
5be1dbe28b | ||
|
|
0c6aeef927 | ||
|
|
b9284d3a3c | ||
|
|
dda95ed250 | ||
|
|
92a9acd5c9 | ||
|
|
6ab03feed8 | ||
|
|
24ba5301d1 | ||
|
|
ea0abbffb4 | ||
|
|
849e7e9668 | ||
|
|
d86117331d | ||
|
|
d8373f2bb9 | ||
|
|
a6bf95e30b | ||
|
|
32e52e94e0 | ||
|
|
79a6e9b0d2 | ||
|
|
bd79bd2a54 | ||
|
|
6d5d92a6fe | ||
|
|
1490f3074d | ||
|
|
091432ea8e | ||
|
|
094360392b | ||
|
|
39a4a62940 | ||
|
|
600a6fa92a | ||
|
|
52145f8683 | ||
|
|
280ba95e46 | ||
|
|
3e35ddd609 | ||
|
|
ef7087adb6 | ||
|
|
d999802795 | ||
|
|
128ddfabb6 | ||
|
|
ad98981d9d | ||
|
|
69810170f7 | ||
|
|
094359cc5b | ||
|
|
ec054e1fac | ||
|
|
937f9ca277 | ||
|
|
1ebeffa104 | ||
|
|
15111db6c5 | ||
|
|
536346ff5e | ||
|
|
eef4809978 | ||
|
|
6f2e36dd1b | ||
|
|
5e32235041 | ||
|
|
edb9619731 | ||
|
|
fd10c47bc6 | ||
|
|
fac29f9dff | ||
|
|
d7aa3d792b | ||
|
|
a874b14a8a | ||
|
|
6c6ded139b | ||
|
|
5d9448f3fe | ||
|
|
19f2deb27f | ||
|
|
854a4614a8 | ||
|
|
e3b6dbe62d | ||
|
|
2d61d684d1 | ||
|
|
9a1fcc70bc | ||
|
|
34ae29e59b | ||
|
|
55a3404b71 | ||
|
|
01ddbd0697 | ||
|
|
5d9560c408 | ||
|
|
9c832440b9 | ||
|
|
fe3fdd27e7 | ||
|
|
cd1d89b2b1 | ||
|
|
29554a9f02 | ||
|
|
fbcfaacda3 | ||
|
|
ca40877640 | ||
|
|
f2b8d6aef8 | ||
|
|
21f722c9bc | ||
|
|
5674309080 | ||
|
|
bf3e41d006 | ||
|
|
66fc267280 | ||
|
|
f7051eaade | ||
|
|
a8eb3fe8e7 | ||
|
|
93693690a3 | ||
|
|
074f8c2e8c | ||
|
|
b1263ad568 | ||
|
|
1d9d905497 | ||
|
|
f918ca14aa | ||
|
|
ed3dca420f | ||
|
|
e0503408de | ||
|
|
68d493ebf5 | ||
|
|
62629eceab | ||
|
|
e024267447 | ||
|
|
18658f45be | ||
|
|
e9dba18466 | ||
|
|
52294c836a | ||
|
|
e230865216 | ||
|
|
e5e35634de | ||
|
|
d4d547c30a | ||
|
|
81a0526072 | ||
|
|
894b94a345 | ||
|
|
b2636f01bb | ||
|
|
88e5e9855d | ||
|
|
eecabf9b2e | ||
|
|
68411677e9 | ||
|
|
155b5edec1 | ||
|
|
a99d795eaf | ||
|
|
4bebf51453 | ||
|
|
014fe9fd8c | ||
|
|
98daf0a435 | ||
|
|
055781f4a9 | ||
|
|
427058b4dc | ||
|
|
b49fd65cf7 | ||
|
|
8ee6493233 | ||
|
|
ecdff724ea | ||
|
|
8575439f48 | ||
|
|
94e0f0cc2a | ||
|
|
5b968e9651 | ||
|
|
df15a6fc51 | ||
|
|
fd8f4e9215 | ||
|
|
81f77fd28e | ||
|
|
2227b13b52 | ||
|
|
59885c4dea | ||
|
|
8a2ca84775 | ||
|
|
910791b00b | ||
|
|
af337b9e5a | ||
|
|
894ca3c09b | ||
|
|
144b279aa2 | ||
|
|
604a519d8b | ||
|
|
ba314c0f6f | ||
|
|
6acae9ab6d | ||
|
|
10a54b52ac | ||
|
|
2e6afdf7e7 | ||
|
|
ac498ddd23 | ||
|
|
0ab15373fa | ||
|
|
70ea7ae776 | ||
|
|
8aecffd83b | ||
|
|
d02a61f21c | ||
|
|
f2c89af83f | ||
|
|
efdda8b69e | ||
|
|
ad88a06d61 | ||
|
|
6f69212f28 | ||
|
|
93d9bd9a04 | ||
|
|
c81204aeef | ||
|
|
d64260fc0e | ||
|
|
2f0c1a8402 | ||
|
|
1f04db79f7 | ||
|
|
3a2ae6454a | ||
|
|
6f85d8d85c | ||
|
|
43b92b220f | ||
|
|
30c71fd794 | ||
|
|
dc5e5a978b | ||
|
|
04ee4a2d08 | ||
|
|
b89a5d6660 | ||
|
|
633355ab00 | ||
|
|
00e394451f | ||
|
|
64b5aae6bc | ||
|
|
5a3d23dc01 | ||
|
|
b86f779dc1 | ||
|
|
85e28dd04c | ||
|
|
6c5da18926 | ||
|
|
a366a340df | ||
|
|
dcf12762b3 | ||
|
|
a2a614d760 | ||
|
|
9dfe9aef39 | ||
|
|
c4effe1261 | ||
|
|
69046f08d4 | ||
|
|
f6436b7652 | ||
|
|
6dd5d5cf26 | ||
|
|
6fe7b4a202 | ||
|
|
f14cf9d6dc | ||
|
|
dfbcbcce67 | ||
|
|
54c2ad4308 | ||
|
|
225c905bd5 | ||
|
|
cae54ac00e | ||
|
|
43aca6a26c | ||
|
|
796a2a6924 | ||
|
|
c360413fc2 | ||
|
|
3a0fcdacd3 | ||
|
|
6f3d4c131f | ||
|
|
9f8d0e7a06 | ||
|
|
7369039713 | ||
|
|
55ae259b13 | ||
|
|
9266f0a4a8 | ||
|
|
901a42b1df | ||
|
|
4208ca76e0 | ||
|
|
0e97c4f66c | ||
|
|
55c2892e9b | ||
|
|
917d02efbd | ||
|
|
735123d1f5 | ||
|
|
a1f8429b4e | ||
|
|
31e4a90440 | ||
|
|
94e23bfc82 | ||
|
|
8863c939ad | ||
|
|
afee008a10 | ||
|
|
9856f99620 | ||
|
|
4f0a06dda5 | ||
|
|
dde69d82b3 | ||
|
|
233e67a854 | ||
|
|
a720bba40e | ||
|
|
9aef9c5764 | ||
|
|
fc03549299 | ||
|
|
0262daa228 | ||
|
|
a6224a2ed2 | ||
|
|
fc74b5d4a2 | ||
|
|
9caf875263 | ||
|
|
820fa473a7 | ||
|
|
634676d467 | ||
|
|
bb2e6cfca9 | ||
|
|
2a4ca9fa98 | ||
|
|
22d8171dd6 | ||
|
|
5cbef88217 | ||
|
|
7594161856 | ||
|
|
cd7392e618 | ||
|
|
2c649ac20f | ||
|
|
eb389ba8d4 | ||
|
|
16f7b2b525 | ||
|
|
8676c3ebd6 | ||
|
|
31cc4155b7 | ||
|
|
d7eb1d476f | ||
|
|
6d8541e3b6 | ||
|
|
51fec1ab16 | ||
|
|
88af85ac53 | ||
|
|
4f4367edf3 | ||
|
|
6cf698cc6a | ||
|
|
ae87b0c767 | ||
|
|
dcdf15f4d7 | ||
|
|
8e58730092 | ||
|
|
9e9dac68f7 | ||
|
|
9f3d089655 | ||
|
|
e647286393 | ||
|
|
513bf10a38 | ||
|
|
16d36a776c | ||
|
|
fa9963519e | ||
|
|
b071344531 | ||
|
|
cb3f649a7f | ||
|
|
a6fc3d2384 | ||
|
|
7b0dabd7aa | ||
|
|
56d5e8a1cb | ||
|
|
d93b1afe79 | ||
|
|
761e6dbf52 | ||
|
|
5561b429f3 | ||
|
|
a10e86ab31 | ||
|
|
b6728d87a0 | ||
|
|
7c60939429 | ||
|
|
2a447ff466 | ||
|
|
9785667a0d | ||
|
|
6e0d1b8409 | ||
|
|
32e174d4b8 | ||
|
|
1fa8bf7d7b | ||
|
|
a0713938b3 | ||
|
|
21c8d672a8 | ||
|
|
fb8320f7fe | ||
|
|
2eb400a2fc | ||
|
|
ad250637eb | ||
|
|
071c81f82e | ||
|
|
c8a5dec84d | ||
|
|
f109f11ceb | ||
|
|
b2af0c0e22 | ||
|
|
13963acefb | ||
|
|
38dccf9e12 | ||
|
|
3d7b805755 | ||
|
|
6f619829d2 | ||
|
|
152315d0f4 | ||
|
|
63579b3049 | ||
|
|
3a0446f00d | ||
|
|
6358a7f1b5 | ||
|
|
5e0603f957 | ||
|
|
3d76f81bf7 | ||
|
|
e9f4fcb4d9 | ||
|
|
07f87149e6 | ||
|
|
d95b7c2a73 | ||
|
|
662fb43350 | ||
|
|
4fd993c4e0 | ||
|
|
53cd05d74a | ||
|
|
269644d18e | ||
|
|
e90c63fc7b | ||
|
|
2cb2a0093d | ||
|
|
d578d8133f | ||
|
|
a4e1dc9c27 | ||
|
|
017e5acd14 | ||
|
|
5f55d94b9b | ||
|
|
4c85d33109 | ||
|
|
07716ffd76 | ||
|
|
2a906bc9d1 | ||
|
|
33906c6895 | ||
|
|
7a72082d31 | ||
|
|
50d80405a9 | ||
|
|
fdb26f6131 | ||
|
|
c4d96f64ff | ||
|
|
e7a4265c30 | ||
|
|
5b284e67eb | ||
|
|
0bcc9d77a7 | ||
|
|
ada66e30dd | ||
|
|
fa5dab85c4 | ||
|
|
94d4d55908 | ||
|
|
03eebd3019 | ||
|
|
0409b12a55 | ||
|
|
b8d616a9d2 | ||
|
|
4ccba3072d | ||
|
|
6633409a15 | ||
|
|
89bf76553e | ||
|
|
5d08a426d3 | ||
|
|
80e395559d | ||
|
|
8b458ac172 | ||
|
|
79de8f7e37 | ||
|
|
3a08fd04f3 | ||
|
|
690e27e5fd | ||
|
|
e337355162 | ||
|
|
e52a399e18 | ||
|
|
1dc05d4c12 | ||
|
|
2fd8fca207 | ||
|
|
f01b8a30f7 | ||
|
|
a879622e07 | ||
|
|
0f7e90f1f7 | ||
|
|
046bd02d65 | ||
|
|
39cce712af | ||
|
|
497d3f3910 | ||
|
|
cff034e2cf | ||
|
|
7f1e4e441d | ||
|
|
1493450a6f | ||
|
|
23d62f37a6 | ||
|
|
8cba1c823d | ||
|
|
8e6f7d6598 | ||
|
|
374b06b4dd | ||
|
|
eeeb21077d | ||
|
|
052d7a0a3e | ||
|
|
d056e3dfd3 | ||
|
|
66e49807ef | ||
|
|
3467d2d8d6 | ||
|
|
ea105bc23b | ||
|
|
92dd257ef4 | ||
|
|
63d0e801ad | ||
|
|
6b318c477e | ||
|
|
eba1aa8a53 | ||
|
|
7ca4192fe6 | ||
|
|
8bc05bda6f | ||
|
|
f99753a800 | ||
|
|
eded51b2f8 | ||
|
|
b2fdf12f62 | ||
|
|
6181994084 | ||
|
|
8e9b0b3f11 | ||
|
|
dc76a2688e | ||
|
|
8b683783cc | ||
|
|
0409393a4e | ||
|
|
7549dad12d | ||
|
|
af1e8e8839 | ||
|
|
fb6f14c469 | ||
|
|
bade279883 | ||
|
|
26fcc08906 | ||
|
|
a26f29e7c8 | ||
|
|
345fe07d64 | ||
|
|
ba009b7c09 | ||
|
|
50852dfbbf | ||
|
|
02ab5cc644 | ||
|
|
d992c306c2 | ||
|
|
0d1f6119a6 | ||
|
|
220c410df4 | ||
|
|
a491b6db41 | ||
|
|
a6f258747b | ||
|
|
e93d92e8ac | ||
|
|
9f01a7fdf8 | ||
|
|
a9eab33d64 | ||
|
|
0554c8918e | ||
|
|
95ba8e1fb7 | ||
|
|
bd140e018a | ||
|
|
448a41a4e7 | ||
|
|
3be8bdad9a | ||
|
|
8e4a1c8356 | ||
|
|
96a61e327e | ||
|
|
193796ca16 | ||
|
|
dc893fe1b3 | ||
|
|
a8f5029cb1 | ||
|
|
e4e78b66fa | ||
|
|
41dfcd4834 | ||
|
|
4aa53244c7 | ||
|
|
56d001835e | ||
|
|
801fb4063c | ||
|
|
74a2270d0a | ||
|
|
f01c488664 | ||
|
|
88a671153b | ||
|
|
9d7b3536e1 | ||
|
|
fd0f6e1541 | ||
|
|
4835d3b0a2 | ||
|
|
3d8f757ac8 | ||
|
|
557a303cc5 | ||
|
|
91fd06e093 | ||
|
|
4a4fdb1e02 | ||
|
|
d4f33cc9de | ||
|
|
4f607371e5 | ||
|
|
ccfd293227 | ||
|
|
2003442b32 | ||
|
|
e375ed4678 | ||
|
|
e21a354b3b | ||
|
|
141ef4a188 | ||
|
|
ed9b50be2c | ||
|
|
213b772368 | ||
|
|
d6be977d1b | ||
|
|
8735a14ea7 | ||
|
|
69081009d3 | ||
|
|
5623cd64ca | ||
|
|
cd77797802 | ||
|
|
af75bee582 | ||
|
|
a3519b42cb | ||
|
|
5099dbef6b | ||
|
|
d74044c2e6 | ||
|
|
281305e0cf | ||
|
|
2a5946d117 | ||
|
|
0d90bc9920 | ||
|
|
d3e9c565b7 | ||
|
|
13cc1a3d2d | ||
|
|
c3f1720456 | ||
|
|
d4ee073bfe | ||
|
|
87fc425be9 | ||
|
|
f9cfb3ed0e | ||
|
|
0870d3ae2b | ||
|
|
d4291edffa | ||
|
|
3b035d2af3 | ||
|
|
9246c9bdaf | ||
|
|
15fe04e3ef | ||
|
|
1f7301025a | ||
|
|
4eeee4c2eb | ||
|
|
c43992bec8 | ||
|
|
fe9f6148d8 | ||
|
|
0129c4253d | ||
|
|
5d529fd844 | ||
|
|
b48dd4b7d9 | ||
|
|
9c420d6efe | ||
|
|
838a70ea8d | ||
|
|
045335a687 | ||
|
|
2a6bcbb1eb | ||
|
|
38edb69d95 | ||
|
|
4502690ef9 | ||
|
|
01f90107e1 | ||
|
|
e28f3d6220 | ||
|
|
91b8c8afc9 | ||
|
|
767044bfe5 | ||
|
|
2d8f4e3aaf | ||
|
|
76275ec410 | ||
|
|
08ec509dc9 | ||
|
|
d93b2b99b2 | ||
|
|
a75c36281d | ||
|
|
c5193ca018 | ||
|
|
1908a94c7e | ||
|
|
7f1012360a | ||
|
|
906a629b33 | ||
|
|
352e8a1afd | ||
|
|
c51168a30a | ||
|
|
a324fbd2eb | ||
|
|
b4df053156 | ||
|
|
8a774d59ed | ||
|
|
1f31e0eb38 | ||
|
|
686c19abcf | ||
|
|
6cb67017a5 | ||
|
|
85a916036c | ||
|
|
7cd96edcdf | ||
|
|
7b2200437e | ||
|
|
7c11c9ce16 | ||
|
|
136f90f87c | ||
|
|
a3e2e65121 | ||
|
|
d80f406239 | ||
|
|
f0545bfe50 | ||
|
|
ac2937a6c5 | ||
|
|
dd7f3d5402 | ||
|
|
8a9ae811d0 | ||
|
|
e6a4808cb7 | ||
|
|
c2216e029d | ||
|
|
e4ffaecc72 | ||
|
|
8a3ac70c06 | ||
|
|
9a59bdda48 | ||
|
|
3b4a992861 | ||
|
|
782f678732 | ||
|
|
9a6697141d | ||
|
|
50672bb11b | ||
|
|
cda232bf15 | ||
|
|
3ae80d3b98 | ||
|
|
1d76c5906e | ||
|
|
702cfe938f | ||
|
|
92f2353f80 | ||
|
|
c1ff1c5d70 | ||
|
|
bc4f98e5b8 | ||
|
|
f6858256f4 | ||
|
|
5199423ad1 | ||
|
|
596200528d | ||
|
|
9bcb15091c | ||
|
|
70c6764780 | ||
|
|
54ae3b044f | ||
|
|
824cea24ba | ||
|
|
1ee87cc4d1 | ||
|
|
45f4c689a2 | ||
|
|
7bccb38a60 | ||
|
|
5a4370012b | ||
|
|
e0deaad5e3 | ||
|
|
ff60e5c62a | ||
|
|
77a3167412 | ||
|
|
b5aecaff5c | ||
|
|
8c564fba38 | ||
|
|
e0ad9935c1 | ||
|
|
c1f2214d7c | ||
|
|
aeaee811cd | ||
|
|
5a106eb8f5 | ||
|
|
68d5a2bb7f | ||
|
|
b59f6b1833 | ||
|
|
4572ebb600 | ||
|
|
807bd656c6 | ||
|
|
cd144b68ac | ||
|
|
4392c4608f | ||
|
|
234b6bbba9 | ||
|
|
3d8857ecc8 | ||
|
|
9fe30ab71e | ||
|
|
33fa9ebff1 | ||
|
|
4e01f39733 | ||
|
|
d3bdea3805 | ||
|
|
58b075bc17 | ||
|
|
dd0bc472e3 | ||
|
|
3e374dab07 | ||
|
|
c715cad48e | ||
|
|
937b868321 | ||
|
|
6ed36552e6 | ||
|
|
7abdf53944 | ||
|
|
8d94534881 | ||
|
|
7fc227c92d | ||
|
|
19a9bcc9c5 | ||
|
|
81525c3e9d | ||
|
|
bb92c1f84d | ||
|
|
aaf04cc344 | ||
|
|
8581bda2f1 | ||
|
|
6ff96cfc72 | ||
|
|
bc0fc4ea25 | ||
|
|
a95e5c9327 | ||
|
|
4251b4e294 | ||
|
|
a6101f72c9 | ||
|
|
502f4db6f9 | ||
|
|
fe574fdaa7 | ||
|
|
4b40d44b5c | ||
|
|
fdfb7cdfd2 | ||
|
|
9461f9c1e0 | ||
|
|
0177c2f591 | ||
|
|
52d7671204 | ||
|
|
0f44d3edf2 | ||
|
|
45fee60b62 | ||
|
|
aa8ff8759c | ||
|
|
b86c0e5727 | ||
|
|
878f06d133 | ||
|
|
82dda473b1 | ||
|
|
cb1989a4fd | ||
|
|
7301a363c1 | ||
|
|
38da552a57 | ||
|
|
5136c5c16e | ||
|
|
84d08cb8da | ||
|
|
b0380befa1 | ||
|
|
3f5d5cc0aa | ||
|
|
d0953874f2 | ||
|
|
3bc79191c4 | ||
|
|
a3ac5061fe | ||
|
|
ec7874ff98 | ||
|
|
844b471509 | ||
|
|
ca5dc4256f | ||
|
|
4ee524736d | ||
|
|
0d3caf08e5 | ||
|
|
692266f4f5 | ||
|
|
f868580f64 | ||
|
|
ed9b6dbf2b | ||
|
|
08211953b2 | ||
|
|
ca9ca99510 | ||
|
|
03a62f15d8 | ||
|
|
acb00f509c | ||
|
|
6c09b938fe | ||
|
|
4dd1d1df5e | ||
|
|
db88cec431 | ||
|
|
a3fd2b420e | ||
|
|
c0ebd7f434 | ||
|
|
11da6ee812 | ||
|
|
bd88e12b8b | ||
|
|
2aaa4d92d9 | ||
|
|
8fb304d665 | ||
|
|
85c0cad816 | ||
|
|
a8197976fe | ||
|
|
a45f28ed2c | ||
|
|
1b111b677e | ||
|
|
890b3ca489 | ||
|
|
c0bb86d0d6 | ||
|
|
b7650b9f57 | ||
|
|
83af9d12f8 | ||
|
|
a37b635674 | ||
|
|
613dd12fbf | ||
|
|
0071d374da | ||
|
|
8190dcb61f | ||
|
|
101e5b670b | ||
|
|
8b9292ed05 | ||
|
|
5e944e5730 | ||
|
|
5a908d4513 | ||
|
|
fb051e9a51 | ||
|
|
7f84927504 | ||
|
|
3b0676f991 | ||
|
|
b6c6b6800a | ||
|
|
4765f8b10d | ||
|
|
a6fa02aaec | ||
|
|
90c9417b16 | ||
|
|
08358d623b | ||
|
|
ea0db0d195 | ||
|
|
363abfa1a5 | ||
|
|
0bad77f0fe | ||
|
|
96b9ba3364 | ||
|
|
fd2d1c58c5 | ||
|
|
2055ecc1ba | ||
|
|
62b873e3da | ||
|
|
749581d534 | ||
|
|
ece91928a9 | ||
|
|
51a88cb19b | ||
|
|
3983fff084 | ||
|
|
57dc7622b4 | ||
|
|
3d74c3ce56 | ||
|
|
514b29f6df | ||
|
|
cda764fd4b | ||
|
|
72ced53d2a | ||
|
|
e040bf7acf | ||
|
|
523c6b77bf | ||
|
|
0d91b3ee6e | ||
|
|
246add45a0 | ||
|
|
bdfabc23e7 | ||
|
|
aa479fb002 | ||
|
|
fa07506d0d | ||
|
|
9c5b0e1c86 | ||
|
|
5bb8b9790f | ||
|
|
c58bb852db | ||
|
|
d6b7cae5de | ||
|
|
825f993dcb | ||
|
|
ab404ea2cf | ||
|
|
821916a681 | ||
|
|
ce10e13ec3 | ||
|
|
704f89c1db | ||
|
|
a43ee22f11 | ||
|
|
9eab29aeaa | ||
|
|
6243a46ca6 | ||
|
|
9d9c34835a | ||
|
|
7645fc85c3 | ||
|
|
7ff1757448 | ||
|
|
7a329c25e9 | ||
|
|
c9cb723cab | ||
|
|
16459ad401 | ||
|
|
e6e6b49372 | ||
|
|
edaf785815 | ||
|
|
796f8e7d26 | ||
|
|
1fbd920902 | ||
|
|
259a344fd1 | ||
|
|
78cad9a4a8 | ||
|
|
7f70a241f9 | ||
|
|
671461d0d0 | ||
|
|
0aad9c6f48 | ||
|
|
473fe1003a | ||
|
|
c716f7afe8 | ||
|
|
d065633c81 | ||
|
|
4f678272d6 | ||
|
|
39fad8575c | ||
|
|
e89e60df76 | ||
|
|
9914ae1b52 | ||
|
|
fc28c92f57 | ||
|
|
5e93f00a53 | ||
|
|
98437fb3c9 | ||
|
|
6f56cd5e9d | ||
|
|
4b3d6d1fbd | ||
|
|
f7465902e4 | ||
|
|
562012c586 | ||
|
|
d45ef1c513 | ||
|
|
5b6ff4944c | ||
|
|
ea3c3bbae4 | ||
|
|
09dfbab7ed | ||
|
|
0483c26254 | ||
|
|
a10b185248 | ||
|
|
6fde7f8984 | ||
|
|
2fd37b18e3 | ||
|
|
e0264060c3 | ||
|
|
98a11e7cf2 | ||
|
|
b438ba9ed5 | ||
|
|
ea53916730 | ||
|
|
9a5d812ee6 | ||
|
|
37f9b513fe | ||
|
|
3fdc141b82 | ||
|
|
ca71d4d6ee | ||
|
|
961108625e | ||
|
|
5f7bb8e7bd | ||
|
|
4cb44561d7 | ||
|
|
485cd11ebb | ||
|
|
dc4b1b1271 | ||
|
|
85169f2f1c | ||
|
|
9b8da40295 | ||
|
|
3c39b26c99 | ||
|
|
61544de6c3 | ||
|
|
5fa4680447 | ||
|
|
d92cb66f60 | ||
|
|
7d10669ca8 | ||
|
|
7075c2ff69 | ||
|
|
7af8b2b3f8 | ||
|
|
73797b8b64 | ||
|
|
1a41ea4988 | ||
|
|
a7a96430cf | ||
|
|
5984df3522 | ||
|
|
aaad4522f0 | ||
|
|
09de805017 | ||
|
|
0eee6785a8 | ||
|
|
2b061fc64b | ||
|
|
e4c9c7364b | ||
|
|
4529812a10 | ||
|
|
611dd7a8f6 | ||
|
|
2341e8d585 | ||
|
|
2f147cfedc | ||
|
|
a94744b984 | ||
|
|
74cb82e1ad | ||
|
|
ac85aebe4a | ||
|
|
66b0239eca | ||
|
|
b4cd57b7bd | ||
|
|
6ae9f3af8e | ||
|
|
518dbd05b6 | ||
|
|
80902bca50 | ||
|
|
11ae48062f | ||
|
|
0244e2c333 | ||
|
|
7eb00481de | ||
|
|
266238caab | ||
|
|
42b6347fca | ||
|
|
c44ee06b5d | ||
|
|
3922348351 | ||
|
|
96e0da9fea | ||
|
|
f9c2600efc | ||
|
|
7abe3e5182 | ||
|
|
b316f723a1 | ||
|
|
f801d4f815 | ||
|
|
93753cf2f8 | ||
|
|
ba4777cf36 | ||
|
|
9d757403be | ||
|
|
1f5eec1c4a | ||
|
|
06fd1b5e4d | ||
|
|
3b4df51848 | ||
|
|
80b06f6827 | ||
|
|
4d179622fa | ||
|
|
4e4ccd48d6 | ||
|
|
3f2f5e8311 | ||
|
|
14260f9843 | ||
|
|
7d4d2e7469 | ||
|
|
af864e9fff | ||
|
|
a460fdf0f8 | ||
|
|
c67b1abfd8 | ||
|
|
c0d663db9a | ||
|
|
300b2bbf2d | ||
|
|
6224edd42d | ||
|
|
e94c9804a2 | ||
|
|
8d9bb5f472 | ||
|
|
ab5ce82f7b | ||
|
|
3dfa4aa15d | ||
|
|
f6ccd61547 | ||
|
|
6690963ec2 | ||
|
|
baeacc3c56 | ||
|
|
4252770d50 | ||
|
|
7ecff0e513 | ||
|
|
e5761d3cf7 | ||
|
|
f849103374 | ||
|
|
878dbcda3f | ||
|
|
bacf567656 | ||
|
|
569e4a7c50 | ||
|
|
b9e0678752 | ||
|
|
84f8a51458 | ||
|
|
318e5347bc | ||
|
|
b7c45fed80 | ||
|
|
9a5195ab85 | ||
|
|
2314aad450 | ||
|
|
33584a8095 | ||
|
|
b181e48f5c | ||
|
|
774c23a6f1 | ||
|
|
f6e13b64b0 | ||
|
|
fdd28c1a5e | ||
|
|
cf60f664a4 | ||
|
|
a6751bf49a | ||
|
|
4281ad5486 | ||
|
|
0afa15138b | ||
|
|
316de3ae70 | ||
|
|
dbd4588e4f | ||
|
|
700429f431 | ||
|
|
f7a024d7de | ||
|
|
b2e100ff6c | ||
|
|
c3cd63a2e8 | ||
|
|
1606d80490 | ||
|
|
538f7e0f73 | ||
|
|
9664705435 | ||
|
|
b686004294 | ||
|
|
77b36783e7 | ||
|
|
4e340c8368 | ||
|
|
72fc581b15 | ||
|
|
4342c33d0e | ||
|
|
539e11b67e | ||
|
|
26d34727d3 | ||
|
|
6a8f441d54 | ||
|
|
9bdfa055ac | ||
|
|
3414f35792 | ||
|
|
8bdc6b1771 | ||
|
|
4965d87505 | ||
|
|
f6ed46dcc0 | ||
|
|
f888656e6d | ||
|
|
9de9e1c19d | ||
|
|
d8314eeb0d | ||
|
|
df71fac1e0 | ||
|
|
410c5be2f8 | ||
|
|
ffefcd9ad4 | ||
|
|
ece4f6d0b5 | ||
|
|
1781ebbaa4 | ||
|
|
0017b61f51 | ||
|
|
16cffd056c | ||
|
|
b205ce32b0 | ||
|
|
ecb44a4243 | ||
|
|
7a794ed684 | ||
|
|
36ea42f092 | ||
|
|
c544ebd876 | ||
|
|
42a56e29a1 | ||
|
|
37777f382f | ||
|
|
3db76c6fdc | ||
|
|
38667b72b1 | ||
|
|
4e71491d86 | ||
|
|
763b38591c | ||
|
|
aefef9ca55 | ||
|
|
be936c2eb8 | ||
|
|
4d1d40989c | ||
|
|
bb6f802850 | ||
|
|
ed4f6e93ac | ||
|
|
a80453d945 | ||
|
|
221f38099b | ||
|
|
cb1705fdae | ||
|
|
231c2b395d | ||
|
|
b3ec4be28d | ||
|
|
d615949820 | ||
|
|
550e78ff7c | ||
|
|
dbc43d7c7b | ||
|
|
cf0f1d568d | ||
|
|
e49ba8f03c | ||
|
|
e570263577 | ||
|
|
69100536de | ||
|
|
961b55cfba | ||
|
|
2e76fbb7e5 | ||
|
|
a6390afb89 | ||
|
|
8e23d4f369 | ||
|
|
02fee35314 | ||
|
|
817b7aaf29 | ||
|
|
c914af0bc4 | ||
|
|
be6b9b8fec | ||
|
|
01aede0652 | ||
|
|
987cb6e1fe | ||
|
|
5d4d50a609 | ||
|
|
29e9f2c70b | ||
|
|
28bb2e18dd | ||
|
|
eba1fe2ebb | ||
|
|
35c449dcd4 | ||
|
|
e3013ea129 | ||
|
|
8c012f7941 | ||
|
|
00e6d7d706 | ||
|
|
26120467af | ||
|
|
334bd6e989 | ||
|
|
d3a9ce5afc | ||
|
|
7504b1cf20 | ||
|
|
51a42a27e7 | ||
|
|
280ade826c | ||
|
|
98ab95e4c0 | ||
|
|
a3393c1bc4 | ||
|
|
373651efa4 | ||
|
|
ee77707532 | ||
|
|
0724eddb7c | ||
|
|
9532bff48f | ||
|
|
54c6ddbdb7 | ||
|
|
c9ee598ac9 | ||
|
|
8744dadca8 | ||
|
|
d1588c7658 | ||
|
|
36627af916 | ||
|
|
1a6b9d7456 | ||
|
|
4ef26993e2 | ||
|
|
5339d31ed1 | ||
|
|
e17da58a39 | ||
|
|
56397d75cc | ||
|
|
a8db78b069 | ||
|
|
f6cd3a917a | ||
|
|
7cb38fe28b | ||
|
|
280b4dce00 | ||
|
|
526ee3c3df | ||
|
|
315518d2d2 | ||
|
|
2a3305e7dd | ||
|
|
91517a56a3 | ||
|
|
656cdfb867 | ||
|
|
63e0188f45 | ||
|
|
5c4d4f16b3 | ||
|
|
619fbc9557 | ||
|
|
543a3ca6f2 | ||
|
|
21fc0116d0 | ||
|
|
a48a2e44b5 | ||
|
|
d187d2887e | ||
|
|
244677cf5e | ||
|
|
dcac860f3e | ||
|
|
ee777acd57 | ||
|
|
3fd6e0630e | ||
|
|
1d9dbcd9dc | ||
|
|
209392e9ef | ||
|
|
1001c6d5f4 | ||
|
|
15f267d586 | ||
|
|
fc92692f49 | ||
|
|
38a6bd79da | ||
|
|
c7618ee54b | ||
|
|
5324e25328 | ||
|
|
4fe6f4f38e | ||
|
|
b296a0f250 | ||
|
|
54dced1cf6 | ||
|
|
b010c35887 | ||
|
|
5ce1076f3c | ||
|
|
359ea8825d | ||
|
|
1b72907b18 | ||
|
|
5ff61048c6 | ||
|
|
c4040a2ae0 | ||
|
|
92b843e2ae | ||
|
|
848ac91bb6 | ||
|
|
e0c3da5df1 | ||
|
|
1fffa37e85 | ||
|
|
2c97e72959 | ||
|
|
e6a55d8858 | ||
|
|
7f6dbf838e | ||
|
|
9edfc8f68d | ||
|
|
bd959919e3 | ||
|
|
e789a35558 | ||
|
|
6d4e23663e | ||
|
|
ee991963c7 | ||
|
|
3e8e441bfc | ||
|
|
333dc8529e | ||
|
|
a46af68922 | ||
|
|
61ebb9bbc4 | ||
|
|
a262ea7487 | ||
|
|
ef6af935fc | ||
|
|
13c24372b0 | ||
|
|
428ad70aac | ||
|
|
f076485fd7 | ||
|
|
a43a1d6303 | ||
|
|
368c85de1b | ||
|
|
c691a07948 | ||
|
|
5aad12d783 | ||
|
|
6f1208f510 | ||
|
|
91f6e708eb | ||
|
|
1a775e2612 | ||
|
|
81ab8dd8b4 | ||
|
|
68832d2fa5 | ||
|
|
88dd2ddd56 | ||
|
|
5ca6ed716f | ||
|
|
c117e222c0 | ||
|
|
d96bb874f2 | ||
|
|
e121e090c7 | ||
|
|
38c57f45ac | ||
|
|
c4016e3b71 | ||
|
|
b36738cf56 | ||
|
|
7a95c52d61 | ||
|
|
52285aeb04 | ||
|
|
b8eaa114ed | ||
|
|
c7c76c6a99 | ||
|
|
53b58edd6f | ||
|
|
5ab5457522 | ||
|
|
ea9b7f2dc4 | ||
|
|
34df11a61c | ||
|
|
ed1d030667 | ||
|
|
3cc540019f | ||
|
|
4427d65717 | ||
|
|
d02f2d1fa7 | ||
|
|
cf30e16550 | ||
|
|
45c8fcfd92 | ||
|
|
1d3b264a36 | ||
|
|
b532c4609f | ||
|
|
34147d9d80 | ||
|
|
83ec7365a7 | ||
|
|
0e7888c659 | ||
|
|
65d185f153 | ||
|
|
04e3a4a72d | ||
|
|
f369ab35d6 | ||
|
|
a8d5a8aaa2 | ||
|
|
660ea88534 | ||
|
|
42b10aecae | ||
|
|
24db9ab088 | ||
|
|
903217f64d | ||
|
|
358bbe0c88 | ||
|
|
b6df5da195 | ||
|
|
3a213916c4 | ||
|
|
8a49c69f38 | ||
|
|
13c5b133a9 | ||
|
|
6237cea952 | ||
|
|
5b430ead42 | ||
|
|
80f8349018 | ||
|
|
b93bf05bbd | ||
|
|
52de32b9d7 | ||
|
|
d59e50ff1f | ||
|
|
4b6681bc19 | ||
|
|
83b4165e61 | ||
|
|
9aabafe9fe | ||
|
|
292704fec9 | ||
|
|
5485eb993c | ||
|
|
453806fc4c | ||
|
|
763f3529d2 | ||
|
|
67d8b634b8 | ||
|
|
eee6280780 | ||
|
|
821e7e53a9 | ||
|
|
0b963bdbb6 | ||
|
|
d65d29c810 | ||
|
|
0d85d25314 | ||
|
|
911f117673 | ||
|
|
d373cc8074 | ||
|
|
11972ed60d | ||
|
|
865a909690 | ||
|
|
4c522ac65f | ||
|
|
5d167afb94 | ||
|
|
7f496668cb | ||
|
|
858082f975 | ||
|
|
9d3da79c4b | ||
|
|
43eec67291 | ||
|
|
5fb883e279 | ||
|
|
aad8209922 | ||
|
|
e24e6ca571 | ||
|
|
2b59075d57 | ||
|
|
a908813f89 | ||
|
|
48ef619618 | ||
|
|
e95af7f783 | ||
|
|
3b0f8e9c8a | ||
|
|
f7f60cc75d | ||
|
|
5d7b13507e | ||
|
|
62a15f027d | ||
|
|
283504479e | ||
|
|
7f89f12c4a | ||
|
|
52a0afe241 | ||
|
|
527bee5051 | ||
|
|
f13ba2561c | ||
|
|
735dcd2002 | ||
|
|
8d2165d96d | ||
|
|
b27a81e0da | ||
|
|
13aa889796 | ||
|
|
9d755bc1ad | ||
|
|
a52cfcd234 | ||
|
|
c474ea848a | ||
|
|
e8c3803336 | ||
|
|
f07ca7d836 | ||
|
|
516bdf6db1 | ||
|
|
5e4c291913 | ||
|
|
29dd989483 | ||
|
|
1c656feb95 | ||
|
|
7d5f4494d0 | ||
|
|
b2720074bd | ||
|
|
955a4fe792 | ||
|
|
7386b017ab | ||
|
|
8ae92b50ad | ||
|
|
a6cedaaa87 | ||
|
|
76764acfc1 | ||
|
|
f8adfc8fbf | ||
|
|
7b33d5457b | ||
|
|
85778f5bec | ||
|
|
c3307fa7aa | ||
|
|
cba82cfd03 | ||
|
|
d052f47bbd | ||
|
|
dcbffed9bb | ||
|
|
0b999e3b91 | ||
|
|
9cf33e9f9d | ||
|
|
7cefc89c64 | ||
|
|
ba691d3a27 | ||
|
|
2b957a2c1e | ||
|
|
132d774953 | ||
|
|
cb51d7833f | ||
|
|
237ac59474 | ||
|
|
2295999a91 | ||
|
|
083dd6ae1a | ||
|
|
06471f5877 | ||
|
|
636ee5d19a | ||
|
|
0472c11157 | ||
|
|
ea27e68ee1 | ||
|
|
1b02b5b157 | ||
|
|
ecf1abae78 | ||
|
|
8e439b1115 | ||
|
|
427d2a05e5 | ||
|
|
d8de540e0c | ||
|
|
4a55e1ea3a | ||
|
|
074e3653e2 | ||
|
|
7b11b44abe | ||
|
|
d9ebd32485 | ||
|
|
403d5d6542 | ||
|
|
8476de9640 | ||
|
|
4afedf1a01 | ||
|
|
3574a3a4fb | ||
|
|
ef5e11f45b | ||
|
|
d81f720502 | ||
|
|
1ccda920fe | ||
|
|
fd89900dc5 | ||
|
|
1d7900ade3 | ||
|
|
7b4b0d1c61 | ||
|
|
aef06ded6b | ||
|
|
6270f7dc24 | ||
|
|
c343c2ff1d | ||
|
|
925d8b5315 | ||
|
|
9447381549 | ||
|
|
c1f8c9e397 | ||
|
|
f29d0fd9f2 | ||
|
|
cf6422caf3 | ||
|
|
f90824fa17 | ||
|
|
a797465ae5 | ||
|
|
622561f756 | ||
|
|
11ac8c7392 | ||
|
|
02b3fb1d63 | ||
|
|
a8ce3bccdf | ||
|
|
5ec0192bcc | ||
|
|
b39e78fca5 | ||
|
|
bb80ceaccc | ||
|
|
ecfc1f147d | ||
|
|
0610c489bb | ||
|
|
5565895819 | ||
|
|
36cd5411d0 | ||
|
|
fd85696378 | ||
|
|
980dd2fd41 | ||
|
|
4485800e21 | ||
|
|
72f051f3ce | ||
|
|
a52b9ee8ff | ||
|
|
5e535062da | ||
|
|
4be827544e | ||
|
|
f9db3faade | ||
|
|
b487834d12 | ||
|
|
b6bca9f137 | ||
|
|
dcb7b8350e | ||
|
|
c0807c1af7 | ||
|
|
25e38f6ca7 | ||
|
|
8dd92f71a9 | ||
|
|
801e2f1777 | ||
|
|
5e55e09e3e | ||
|
|
1cdfb829d7 | ||
|
|
265a2feb29 | ||
|
|
cd572334c9 | ||
|
|
9e79cf37f8 | ||
|
|
c53bc4ddf9 | ||
|
|
c003189d0d | ||
|
|
e33f6c244d | ||
|
|
621b4816b3 | ||
|
|
f0f4f7e91d | ||
|
|
893c95521b | ||
|
|
a9ff51bd61 | ||
|
|
ce3031b925 | ||
|
|
3d8a2b859e | ||
|
|
752de8fe9d | ||
|
|
ec795a4711 | ||
|
|
2e81e27272 | ||
|
|
e63cb52630 | ||
|
|
499f9c8fca | ||
|
|
fd227888b6 | ||
|
|
742887bf00 | ||
|
|
81971967c3 | ||
|
|
40bc1b33d2 | ||
|
|
98a26c4f2c | ||
|
|
77fcc4b6aa | ||
|
|
9fcdc93c06 | ||
|
|
b12188ec80 | ||
|
|
cfa786850f | ||
|
|
ccff6be969 | ||
|
|
7e86e38dab | ||
|
|
bf0fa84bbc | ||
|
|
19da9042ff | ||
|
|
5b07c8d229 | ||
|
|
d5e2f7e6b3 | ||
|
|
f5cc0ef906 | ||
|
|
9eb5baddd6 | ||
|
|
0061a3ebaf | ||
|
|
4fd5ac9be6 | ||
|
|
6b0f62a36e | ||
|
|
43f0221304 | ||
|
|
634b440c56 | ||
|
|
fe53555fc2 | ||
|
|
06e0f04214 | ||
|
|
ccb22dc976 | ||
|
|
46e39d1036 | ||
|
|
f51ab59748 | ||
|
|
98a71be80b | ||
|
|
3d738eecec | ||
|
|
b5a9bae106 | ||
|
|
20dd4182cb | ||
|
|
866f6f9330 | ||
|
|
5d9857544a | ||
|
|
f4087d2ad2 | ||
|
|
5e6662ab12 | ||
|
|
232925b7bf | ||
|
|
c34df6b7b3 | ||
|
|
ccf21f6f1b | ||
|
|
c4b53a7d42 | ||
|
|
ff703cf01b | ||
|
|
46598830e9 | ||
|
|
d7ea41a529 | ||
|
|
f1edcebc79 | ||
|
|
104f3d2502 | ||
|
|
adebd40d30 | ||
|
|
98ac72074c | ||
|
|
c36a7e3ada | ||
|
|
8f7ce168a0 | ||
|
|
982c234a50 | ||
|
|
6cf36c91ea | ||
|
|
85e9a4fa99 | ||
|
|
f1370c5e32 | ||
|
|
8764ae3852 | ||
|
|
b1916a190e | ||
|
|
f6f40c815a | ||
|
|
91f3cb9878 | ||
|
|
5767fb15cd | ||
|
|
f80fadff0e | ||
|
|
e9b0095754 | ||
|
|
1cbd955e79 | ||
|
|
0c8c4d6895 | ||
|
|
78ba7d52f6 | ||
|
|
fe2dd75a59 | ||
|
|
c0f0d45377 | ||
|
|
c9c18011f3 | ||
|
|
406ad8778c | ||
|
|
3682702e91 | ||
|
|
724b8a3c31 | ||
|
|
c04d6163e7 | ||
|
|
753aeb4829 | ||
|
|
116200cf73 | ||
|
|
99242225d6 | ||
|
|
d8fea640f8 | ||
|
|
8a5b898606 | ||
|
|
8bc30da621 | ||
|
|
8cabea5cb8 | ||
|
|
1902fda159 | ||
|
|
52c59d6890 | ||
|
|
89109a16c6 | ||
|
|
0faced7d4a | ||
|
|
f34e9e393a | ||
|
|
fc64c37724 | ||
|
|
f784af285f | ||
|
|
04523c77d2 | ||
|
|
000a038af1 | ||
|
|
787833f1be | ||
|
|
786e575dbe | ||
|
|
4ffee8c5d1 | ||
|
|
ef2ebbd570 | ||
|
|
7d572d9e96 | ||
|
|
b1d83ba8d6 | ||
|
|
969bc87431 | ||
|
|
7a91498cf1 | ||
|
|
d55240a598 | ||
|
|
4e1fa95035 | ||
|
|
26e916e46b | ||
|
|
28c05b22e8 | ||
|
|
e01f24f833 | ||
|
|
ccd6e44edf | ||
|
|
7b2c2e8a33 | ||
|
|
cd4605e4c1 | ||
|
|
ca2bc8b15f | ||
|
|
4f73f8a1f9 | ||
|
|
ace0ba9456 | ||
|
|
883b0d0313 | ||
|
|
57321dc1f6 | ||
|
|
8c16ff089b | ||
|
|
1992069af1 | ||
|
|
23fc9a7a72 | ||
|
|
5ba7fcaeea | ||
|
|
eeec63c7dd | ||
|
|
421aeb4605 | ||
|
|
8c095a6e39 | ||
|
|
1748728c45 | ||
|
|
72518e20ee | ||
|
|
8e4dcd0509 | ||
|
|
27b371a485 | ||
|
|
7b06bb7549 | ||
|
|
78b1561820 | ||
|
|
dee16de03e | ||
|
|
3efdfc5345 | ||
|
|
141570636e | ||
|
|
74423e5d19 | ||
|
|
e55fe43ca6 | ||
|
|
c1750af54a | ||
|
|
38f3fd0c9f | ||
|
|
84b42d28b9 | ||
|
|
e5e6b53687 | ||
|
|
3e73c81b25 | ||
|
|
9f5f8e5d92 | ||
|
|
3149d8ebc0 | ||
|
|
c7e2785d38 | ||
|
|
0992445ae9 | ||
|
|
9f7466ef90 | ||
|
|
a7e433a512 | ||
|
|
114642d78c | ||
|
|
f95a867742 | ||
|
|
35c697560e | ||
|
|
f4ad15e644 | ||
|
|
b0110a74e7 | ||
|
|
f993bdc7ef | ||
|
|
1aab4c072c | ||
|
|
966d321703 | ||
|
|
30b7064e30 | ||
|
|
a005e4568f | ||
|
|
2913063924 | ||
|
|
0cf354cc88 | ||
|
|
607cfd1f29 | ||
|
|
3cbe228dc1 | ||
|
|
4f06236bc4 | ||
|
|
161d211c07 | ||
|
|
8a138fbd03 | ||
|
|
ea399047d9 | ||
|
|
f0d3892b26 | ||
|
|
f24f671a90 | ||
|
|
e5f5eed425 | ||
|
|
26def813b0 | ||
|
|
47b5780c5c | ||
|
|
916d184076 | ||
|
|
fc1c9428e3 | ||
|
|
6cb4ce0e19 | ||
|
|
24ec89a800 | ||
|
|
d4d7134bf8 | ||
|
|
1a2ba56f46 | ||
|
|
540df268c2 | ||
|
|
c9a4384b5e | ||
|
|
bee913bbb1 | ||
|
|
848c565c8c | ||
|
|
010fdd20a1 | ||
|
|
66fd177000 | ||
|
|
c5be4f4e08 | ||
|
|
f9c8ca5df2 | ||
|
|
7364024bba | ||
|
|
bbe433784d | ||
|
|
c214cf1a43 | ||
|
|
47eecb84f5 | ||
|
|
2629c779af | ||
|
|
6416ef51ff | ||
|
|
9f4d8a5090 | ||
|
|
51183b36f0 | ||
|
|
5738f9a159 | ||
|
|
5f499b9545 | ||
|
|
fd9a713c7e | ||
|
|
d5dbfc886d | ||
|
|
fb17acd122 | ||
|
|
a4ed0758b0 | ||
|
|
a303c3c73e | ||
|
|
2fc3d84b5a | ||
|
|
162f81078e | ||
|
|
a267446f7b | ||
|
|
dc60db2a43 | ||
|
|
d0aab05e79 | ||
|
|
a0cda321b7 | ||
|
|
aecc82e174 | ||
|
|
1f21bf877f | ||
|
|
68e85ab1b6 | ||
|
|
c552c852cd | ||
|
|
922eec2db2 | ||
|
|
f079b6dad0 | ||
|
|
dcfa047b0b | ||
|
|
a4b8e0b9e4 | ||
|
|
a85df65f85 | ||
|
|
d0bc04fc93 | ||
|
|
d3d8603620 | ||
|
|
4b5d141f20 | ||
|
|
04be1d4b42 | ||
|
|
6f1c931ff0 | ||
|
|
315a11dfe2 | ||
|
|
22699a204d | ||
|
|
bf08ff591c | ||
|
|
d56abc3d34 | ||
|
|
5a04f30104 | ||
|
|
a62390d1a0 | ||
|
|
e46ff239af | ||
|
|
d02cf2f509 | ||
|
|
74158694c5 | ||
|
|
2fc5fd4f29 | ||
|
|
c087a48d52 | ||
|
|
2b0c7a1b73 | ||
|
|
7b97764dbc | ||
|
|
7e6719050b | ||
|
|
ff9bc74c86 | ||
|
|
123246fca6 | ||
|
|
65c5922a3e | ||
|
|
cd7cb147b9 | ||
|
|
4d04f94c52 | ||
|
|
31d7f69193 | ||
|
|
614f13377b | ||
|
|
50f21cb7db | ||
|
|
b5e51ead29 | ||
|
|
1f6f4ed879 | ||
|
|
d9e7db69fe | ||
|
|
0fe047171b | ||
|
|
7ff18f060c | ||
|
|
497c3e595b | ||
|
|
3bedee75d3 | ||
|
|
5b2499984d | ||
|
|
5bc3d24b2f | ||
|
|
2d456e88eb | ||
|
|
2a94150097 | ||
|
|
28563ad088 | ||
|
|
93bcace20f | ||
|
|
2726f21cbc | ||
|
|
478e445a5a | ||
|
|
6537d5ed8c | ||
|
|
4f8bf2b04d | ||
|
|
1dbf17bebb | ||
|
|
4ce5add5df | ||
|
|
4b95c1f517 | ||
|
|
8fc814fc62 | ||
|
|
5b690f9411 | ||
|
|
191aca1fb0 | ||
|
|
36c6f4ca3a | ||
|
|
d0efd0e4c9 | ||
|
|
3a468a53d9 | ||
|
|
3d9181d270 | ||
|
|
b6639504b6 | ||
|
|
cd8aa92cbb | ||
|
|
016f202423 | ||
|
|
cbf860074b | ||
|
|
7a68cb7ca0 | ||
|
|
9ed4b24533 | ||
|
|
025b31c019 | ||
|
|
408196f304 | ||
|
|
5780d9d53b | ||
|
|
930353286f | ||
|
|
2d42272e60 | ||
|
|
2f2ac00a09 | ||
|
|
1719c4b5a3 | ||
|
|
f88a55e790 | ||
|
|
b6f31abcfe | ||
|
|
b87f21fe1f | ||
|
|
18fbe56462 | ||
|
|
ec43609820 | ||
|
|
1d3c93ccb2 | ||
|
|
ed54f6ec8d | ||
|
|
a96eae46af | ||
|
|
562aeab1aa | ||
|
|
60914fa76a | ||
|
|
adf2cc2039 | ||
|
|
6c130b32ad | ||
|
|
e6be51953c | ||
|
|
7f8db7ab8d | ||
|
|
9f16d053e1 | ||
|
|
8b1022f66b | ||
|
|
2fb95cc2b0 | ||
|
|
5477f42740 | ||
|
|
8a00168b63 | ||
|
|
cae0583e0f | ||
|
|
6ff086df3a | ||
|
|
9c2b27f37a | ||
|
|
c3f15b952d | ||
|
|
cc49aae245 | ||
|
|
d3f7fda778 | ||
|
|
b053d66ea7 | ||
|
|
ed3944ebef | ||
|
|
60892ae45d | ||
|
|
68aca88c54 | ||
|
|
7dba3f54ee | ||
|
|
a44635e309 | ||
|
|
665e94784c | ||
|
|
3bdf764f83 | ||
|
|
f7c33680a4 | ||
|
|
737c52541f | ||
|
|
e72533506b | ||
|
|
e127579fc8 | ||
|
|
b107cc03bf | ||
|
|
e55001b88f | ||
|
|
3d2117809f | ||
|
|
5b934bb377 | ||
|
|
a94464b9c9 | ||
|
|
98a82a0720 | ||
|
|
0a5e4603c9 | ||
|
|
c88bb591eb | ||
|
|
81e45acc43 | ||
|
|
385484eb9d | ||
|
|
c74bb6cb9b | ||
|
|
38782e260a | ||
|
|
89950440f2 | ||
|
|
b0b93768bb | ||
|
|
5e1a6eafe4 | ||
|
|
a0b48f0f47 | ||
|
|
f055231e52 | ||
|
|
003e98c231 | ||
|
|
43f637e403 | ||
|
|
f8e15e1c55 | ||
|
|
fce49680d7 | ||
|
|
69dcaca324 | ||
|
|
606ac3255d | ||
|
|
0ed0031412 | ||
|
|
391d8303cb | ||
|
|
4e998be695 | ||
|
|
871af05f68 | ||
|
|
57631f8962 | ||
|
|
bca2b91417 | ||
|
|
ac0e353a54 | ||
|
|
6810174fcd | ||
|
|
e06a138aad | ||
|
|
bd91f334d9 | ||
|
|
b2633a51d4 | ||
|
|
3690fb4979 | ||
|
|
517a643bd4 | ||
|
|
44d919c757 | ||
|
|
e21f768a92 | ||
|
|
16c0599470 | ||
|
|
172b90ec50 | ||
|
|
f3555486f5 | ||
|
|
044348708e | ||
|
|
75c1378d1f | ||
|
|
df2ee5cbcb | ||
|
|
96fb108894 | ||
|
|
5f4e3adfd2 | ||
|
|
badcf820c9 | ||
|
|
acf0753504 | ||
|
|
f04b72c341 | ||
|
|
4a34c553c7 | ||
|
|
6c83c6464a | ||
|
|
b34c9d36ba | ||
|
|
aafbfd3b4e | ||
|
|
a72a39502f | ||
|
|
9303672121 | ||
|
|
b7a508d5a7 | ||
|
|
6e470fc9bb | ||
|
|
7104b04817 | ||
|
|
ff6773df4e | ||
|
|
89c58bcb6f | ||
|
|
964e6db800 | ||
|
|
ceec53da17 | ||
|
|
fc14eff290 | ||
|
|
096fefd8c8 | ||
|
|
6919ee4ef4 | ||
|
|
e490414484 | ||
|
|
300c4ecb0f | ||
|
|
9d36fa348f | ||
|
|
54d9154a14 | ||
|
|
03d5a82137 | ||
|
|
ac665d360c | ||
|
|
d70e0fc359 | ||
|
|
3b97ae3b9d | ||
|
|
3b13fb4143 | ||
|
|
71c5c0f366 | ||
|
|
07058c5a12 | ||
|
|
f42aae843c | ||
|
|
7d14b71a93 | ||
|
|
ff6ab10893 | ||
|
|
c87a140734 | ||
|
|
1ee08c991f | ||
|
|
3d0c0f5028 | ||
|
|
9c82ff8b96 | ||
|
|
fc12e53ff5 | ||
|
|
4290f79640 | ||
|
|
efb44ba59d | ||
|
|
71ac788b20 | ||
|
|
dc42015e69 | ||
|
|
9044f210ee | ||
|
|
26c55bd57a | ||
|
|
2f77c9f33e | ||
|
|
78f41b38e1 | ||
|
|
d66bc5ad90 | ||
|
|
59bc220602 | ||
|
|
e14ca1a423 | ||
|
|
2b53ace8a4 | ||
|
|
1a5c2573b7 | ||
|
|
90275fe991 | ||
|
|
7bfa24d0da | ||
|
|
a58b3920db | ||
|
|
1b3e40feac | ||
|
|
a867d41d2a | ||
|
|
b7b655e180 | ||
|
|
763f59fc58 | ||
|
|
62476c5901 | ||
|
|
6bce4f9877 | ||
|
|
64de9aa056 | ||
|
|
650c848243 | ||
|
|
5ed2190ebd | ||
|
|
c4c01d601c | ||
|
|
49ea232c3a | ||
|
|
397e1e3d40 | ||
|
|
ec476fc67e | ||
|
|
1e3d833b02 | ||
|
|
d78e59b75c | ||
|
|
571c4745f5 | ||
|
|
7e7f55386d | ||
|
|
0e64dc84de | ||
|
|
926dca3214 | ||
|
|
e8af9459ab | ||
|
|
0730261342 | ||
|
|
5617f8721d | ||
|
|
5dba2f4b56 | ||
|
|
338a2b1a51 | ||
|
|
9a29116d6b | ||
|
|
4c35de1d1f | ||
|
|
5df1fcb7bd | ||
|
|
51c22900db | ||
|
|
a305b1a2c5 | ||
|
|
fda2333cf2 | ||
|
|
acad66dad1 | ||
|
|
d46b47a5d8 | ||
|
|
554a6d82db | ||
|
|
eb150eba1f | ||
|
|
06a4108a7d | ||
|
|
a8f1589dbf | ||
|
|
1ccfa4f11e | ||
|
|
e4ca44e95f | ||
|
|
3cba1bd990 | ||
|
|
18c6d17b24 | ||
|
|
0a3b121244 | ||
|
|
7afda6e4f5 | ||
|
|
5fb0bcb854 | ||
|
|
1adf7426c2 | ||
|
|
8b74745f9e | ||
|
|
f7f0be502d | ||
|
|
a757b43164 | ||
|
|
148cec4690 | ||
|
|
c1810aab15 | ||
|
|
eaeed0c93a | ||
|
|
e704e29174 | ||
|
|
59889a4436 | ||
|
|
82b174701f | ||
|
|
1d5718a1a8 | ||
|
|
a39c24ef6a | ||
|
|
19d2ea2c8c | ||
|
|
786d7706e7 | ||
|
|
08c6b61a2e | ||
|
|
cde17a8c9d | ||
|
|
a0db22bdf3 | ||
|
|
b91205d991 |
54
.asf.yaml
Normal file
54
.asf.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
# https://cwiki.apache.org/confluence/display/INFRA/.asf.yaml+features+for+git+repositories
|
||||
---
|
||||
github:
|
||||
description: "Apache Superset is a Data Visualization and Data Exploration Platform"
|
||||
homepage: https://superset.apache.org/
|
||||
labels:
|
||||
- superset
|
||||
- apache
|
||||
- apache-superset
|
||||
- data-visualization
|
||||
- data-viz
|
||||
- analytics
|
||||
- business-intelligence
|
||||
- data-science
|
||||
- data-engineering
|
||||
- asf
|
||||
- bi
|
||||
- business-analytics
|
||||
- data-analytics
|
||||
- data-analysis
|
||||
- data-science
|
||||
- python
|
||||
- react
|
||||
- sql-editor
|
||||
- flask
|
||||
features:
|
||||
# Enable issues management
|
||||
issues: true
|
||||
# Enable projects for project management boards
|
||||
projects: true
|
||||
# Enable wiki for documentation
|
||||
wiki: true
|
||||
|
||||
enabled_merge_buttons:
|
||||
squash: true
|
||||
merge: false
|
||||
rebase: false
|
||||
@@ -34,6 +34,7 @@
|
||||
tests/
|
||||
docs/
|
||||
install/
|
||||
superset/assets/node_modules/
|
||||
superset/assets/cypress/
|
||||
superset/assets/coverage/
|
||||
superset-frontend/node_modules/
|
||||
superset-frontend/cypress/
|
||||
superset-frontend/coverage/
|
||||
venv
|
||||
|
||||
47
.editorconfig
Normal file
47
.editorconfig
Normal file
@@ -0,0 +1,47 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
|
||||
# 4 space indentation for Python files
|
||||
[*.py]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
max_line_length=88
|
||||
|
||||
# 2 space indentation for Frontend files
|
||||
[*.{js,jsx,ts,tsx,html,less,css}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# 2 space indentation for json and yaml files
|
||||
[*.{json,yml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# Tab indentation
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
@@ -14,5 +14,5 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
FLASK_APP=superset:app
|
||||
FLASK_ENV=development
|
||||
FLASK_APP="superset.app:create_app()"
|
||||
FLASK_ENV="development"
|
||||
|
||||
12
.fossa.yml
12
.fossa.yml
@@ -26,13 +26,11 @@ analyze:
|
||||
modules:
|
||||
- name: assets
|
||||
type: npm
|
||||
target: superset/assets
|
||||
path: superset/assets
|
||||
- name: docs
|
||||
type: pip
|
||||
target: docs
|
||||
path: docs
|
||||
- name: .
|
||||
target: superset-frontend
|
||||
path: superset-frontend
|
||||
- name: base
|
||||
type: pip
|
||||
target: .
|
||||
path: .
|
||||
options:
|
||||
requirements: ./requirements/base.txt
|
||||
|
||||
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -1,6 +1,7 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
labels: "#bug"
|
||||
|
||||
---
|
||||
|
||||
@@ -32,11 +33,10 @@ If applicable, add screenshots to help explain your problem.
|
||||
- superset version: `superset version`
|
||||
- python version: `python --version`
|
||||
- node.js version: `node -v`
|
||||
- npm version: `npm -v`
|
||||
|
||||
### Checklist
|
||||
|
||||
Make sure these boxes are checked before submitting your issue - thank you!
|
||||
Make sure to follow these steps before submitting your issue - thank you!
|
||||
|
||||
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
|
||||
- [ ] I have reproduced the issue with at least the latest released version of superset.
|
||||
|
||||
20
.github/ISSUE_TEMPLATE/cosmetic.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/cosmetic.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Cosmetic Issue
|
||||
about: Describe a cosmetic issue with CSS, positioning, layout, labeling, or similar
|
||||
labels: "cosmetic-issue"
|
||||
|
||||
---
|
||||
|
||||
## Screenshot
|
||||
|
||||
[drag & drop image(s) here!]
|
||||
|
||||
## Description
|
||||
|
||||
[describe the issue here!]
|
||||
|
||||
## Design input
|
||||
[describe any input/collaboration you'd like from designers, and
|
||||
tag accordingly. For design review, add the
|
||||
label `design:review`. If this includes a design proposal,
|
||||
include the label `design:suggest`]
|
||||
1
.github/ISSUE_TEMPLATE/feature_request.md
vendored
1
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -1,6 +1,7 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
labels: "#enhancement"
|
||||
|
||||
---
|
||||
|
||||
|
||||
12
.github/ISSUE_TEMPLATE/security_vulnerability.md
vendored
Normal file
12
.github/ISSUE_TEMPLATE/security_vulnerability.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: Security vulnerability
|
||||
about: Report a security vulnerability or issue
|
||||
labels: "#security"
|
||||
|
||||
---
|
||||
|
||||
## DO NOT REPORT SECURITY VULNERABILITIES HERE
|
||||
|
||||
Please report security vulnerabilities to private@superset.apache.org.
|
||||
|
||||
In the event a community member discovers a security flaw in Superset, it is important to follow the [Apache Security Guidelines](https://www.apache.org/security/committers.html) and release a fix as quickly as possible before public disclosure. Reporting security vulnerabilities through the usual GitHub Issues channel is not ideal as it will publicize the flaw before a fix can be applied.
|
||||
4
.github/ISSUE_TEMPLATE/sip.md
vendored
4
.github/ISSUE_TEMPLATE/sip.md
vendored
@@ -1,9 +1,13 @@
|
||||
---
|
||||
name: SIP
|
||||
about: Superset Improvement Proposal
|
||||
labels: "#SIP"
|
||||
|
||||
---
|
||||
|
||||
*Please make sure you are familiar with the SIP process documented*
|
||||
(here)[https://github.com/apache/superset/issues/5602]
|
||||
|
||||
## [SIP] Proposal for XXX
|
||||
|
||||
### Motivation
|
||||
|
||||
13
.github/PULL_REQUEST_TEMPLATE.md
vendored
13
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,14 +1,3 @@
|
||||
### CATEGORY
|
||||
|
||||
Choose one
|
||||
|
||||
- [ ] Bug Fix
|
||||
- [ ] Enhancement (new features, refinement)
|
||||
- [ ] Refactor
|
||||
- [ ] Add tests
|
||||
- [ ] Build / Development Environment
|
||||
- [ ] Documentation
|
||||
|
||||
### SUMMARY
|
||||
<!--- Describe the change below, including rationale and design decisions -->
|
||||
|
||||
@@ -27,5 +16,3 @@ Choose one
|
||||
- [ ] Confirm DB Migration upgrade and downgrade tested.
|
||||
- [ ] Introduces new feature or API
|
||||
- [ ] Removes existing feature or API
|
||||
|
||||
### REVIEWERS
|
||||
|
||||
1
.github/actions/cached-dependencies/.editorconfig
vendored
Normal file
1
.github/actions/cached-dependencies/.editorconfig
vendored
Normal file
@@ -0,0 +1 @@
|
||||
indent_size = 2
|
||||
3
.github/actions/cached-dependencies/.eslintignore
vendored
Normal file
3
.github/actions/cached-dependencies/.eslintignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
dist/
|
||||
lib/
|
||||
node_modules/
|
||||
26
.github/actions/cached-dependencies/.eslintrc.js
vendored
Normal file
26
.github/actions/cached-dependencies/.eslintrc.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
module.exports = {
|
||||
plugins: ['jest', '@typescript-eslint'],
|
||||
extends: ['plugin:jest/all'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 9,
|
||||
sourceType: 'module',
|
||||
},
|
||||
rules: {
|
||||
'eslint-comments/no-use': 'off',
|
||||
'import/no-namespace': 'off',
|
||||
'no-unused-vars': 'off',
|
||||
'no-console': 'off',
|
||||
'jest/prefer-expect-assertions': 'off',
|
||||
'jest/no-disabled-tests': 'warn',
|
||||
'jest/no-focused-tests': 'error',
|
||||
'jest/no-identical-title': 'error',
|
||||
'jest/prefer-to-have-length': 'warn',
|
||||
'jest/valid-expect': 'error',
|
||||
},
|
||||
env: {
|
||||
node: true,
|
||||
es6: true,
|
||||
'jest/globals': true,
|
||||
},
|
||||
};
|
||||
34
.github/actions/cached-dependencies/.github/workflows/tests.yml
vendored
Normal file
34
.github/actions/cached-dependencies/.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Tests
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest]
|
||||
name: Test on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Run prettier format check
|
||||
run: npm run format-check
|
||||
- name: Build
|
||||
run: npm run build
|
||||
- name: Run tests
|
||||
run: npm run test
|
||||
- name: Upload code coverage
|
||||
run: |
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
6
.github/actions/cached-dependencies/.gitignore
vendored
Normal file
6
.github/actions/cached-dependencies/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
lib
|
||||
coverage
|
||||
node_modules
|
||||
|
||||
!dist
|
||||
!dist/cache
|
||||
3
.github/actions/cached-dependencies/.prettierignore
vendored
Normal file
3
.github/actions/cached-dependencies/.prettierignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
dist/
|
||||
lib/
|
||||
node_modules/
|
||||
11
.github/actions/cached-dependencies/.prettierrc.json
vendored
Normal file
11
.github/actions/cached-dependencies/.prettierrc.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"printWidth": 80,
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all",
|
||||
"bracketSpacing": true,
|
||||
"arrowParens": "avoid",
|
||||
"parser": "typescript"
|
||||
}
|
||||
22
.github/actions/cached-dependencies/LICENSE
vendored
Normal file
22
.github/actions/cached-dependencies/LICENSE
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 GitHub, Inc. and contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
212
.github/actions/cached-dependencies/README.md
vendored
Normal file
212
.github/actions/cached-dependencies/README.md
vendored
Normal file
@@ -0,0 +1,212 @@
|
||||
# cached-dependencies
|
||||
|
||||
[](https://github.com/ktmud/cached-dependencies/actions?query=workflow%3ATests) [](https://codecov.io/gh/ktmud/cached-dependencies)
|
||||
|
||||
Enable **multi-layer cache** and **shortcut commands** in any workflows.
|
||||
|
||||
Manage multiple cache targets in one step. Use either the built-in cache configs for npm, yarn, and pip, or write your own. Create a bash command library to easily reduce redudencies across workflows. Most useful for building webapps that require multi-stage building processes.
|
||||
|
||||
This is your all-in-one action for everything related to setting up dependencies with cache.
|
||||
|
||||
## Inputs
|
||||
|
||||
- **run**: bash commands to run, allows shortcut commands
|
||||
- **caches**: path to a JS module that defines cache targets, defaults to `.github/workflows/caches.js`
|
||||
- **bashlib**: path to a BASH scripts that defines shortcut commands, defaults to `.github/workflows/bashlib.sh`
|
||||
- **parallel**: whether to run the commands in parallel with node subprocesses
|
||||
|
||||
## Examples
|
||||
|
||||
Following workflow sets up dependencies for a typical Python web app with both `~/.pip` and `~/.npm` cache configured in one simple step:
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
build_and_test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
uses: ktmud/cached-dependencies@v1
|
||||
with:
|
||||
run: |
|
||||
npm-install
|
||||
npm run build
|
||||
|
||||
pip-install
|
||||
python ./bin/manager.py fill_test_data
|
||||
```
|
||||
|
||||
Here we used predefined `npm-install` and `pip-install` commands to install dependencies with correponding caches.
|
||||
|
||||
You may also replace `npm-install` with `yarn-install` to install npm pacakges with `yarn.lock`.
|
||||
|
||||
```yaml
|
||||
- name: Install dependencies
|
||||
uses: ktmud/cached-dependencies@v1
|
||||
with:
|
||||
run: |
|
||||
yarn-install
|
||||
yarn build
|
||||
|
||||
pip-install
|
||||
python ./bin/manager.py fill_test_data
|
||||
```
|
||||
|
||||
See below for more details.
|
||||
|
||||
## Usage
|
||||
|
||||
### Cache configs
|
||||
|
||||
Under the hood, we use [@actions/cache](https://github.com/marketplace/actions/cache) to manage cache storage. But instead of defining only one cache at a time and specify them in workflow YAMLs, you manage all caches in a spearate JS file: `.github/workflows/caches.js`.
|
||||
|
||||
Here is [the default configuration](https://github.com/ktmud/cached-dependencies/blob/master/src/cache/caches.ts) for Linux:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
pip: {
|
||||
path: [`${process.env.HOME}/.cache/pip`],
|
||||
hashFiles: ['requirements*.txt'],
|
||||
keyPrefix: 'pip-',
|
||||
restoreKeys: 'pip-',
|
||||
},
|
||||
npm: {
|
||||
path: [`${HOME}/.npm`],
|
||||
hashFiles: [
|
||||
`package-lock.json`,
|
||||
`*/*/package-lock.json`,
|
||||
`!node_modules/*/package-lock.json`,
|
||||
],
|
||||
},
|
||||
yarn: {
|
||||
path: [`${HOME}/.npm`],
|
||||
// */* is for supporting lerna monorepo with depth=2
|
||||
hashFiles: [`yarn.lock`, `*/*/yarn.lock`, `!node_modules/*/yarn.lock`],
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
In which `hashFiles` and `keyPrefix` will be used to compute the primary cache key used in [@actions/cache](https://github.com/marketplace/actions/cache). `keyPrefix` will default to `${cacheName}-` and `restoreKeys` will default to `keyPrefix` if not specified.
|
||||
|
||||
It is recommended to always use absolute paths in these configs so you can share them across different worflows more easily (in case you the action is called from different working directories).
|
||||
|
||||
#### Speficy when to restore and save
|
||||
|
||||
With the predefined `cache-store` and `cache-save` bash commands, you have full flexibility on when to restore and save cache:
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ktmud/cached-dependencies@v1
|
||||
with:
|
||||
run: |
|
||||
cache-restore npm
|
||||
npm install
|
||||
cache-save npm
|
||||
|
||||
cache-restore pip
|
||||
pip install -r requirements.txt
|
||||
cache-save pip
|
||||
```
|
||||
|
||||
### Shortcut commands
|
||||
|
||||
All predefined shortcut commands can be found [here](https://github.com/ktmud/cached-dependencies/blob/master/src/scripts/bashlib.sh). You can also customize them or add new ones in `.github/workflows/bashlib.sh`.
|
||||
|
||||
For example, if you want to install additional packages for before saving `pip` cache, simply add this to the `bashlib.sh` file:
|
||||
|
||||
```bash
|
||||
# override the default `pip-install` command
|
||||
pip-install() {
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
cache-restore pip
|
||||
|
||||
echo "::group::pip install"
|
||||
pip install -r requirements.txt # prod requirements
|
||||
pip install -r requirements-dev.txt # dev requirements
|
||||
pip install -e ".[postgres,mysql]" # current pacakge with some extras
|
||||
echo "::endgroup::"
|
||||
|
||||
cache-save pip
|
||||
}
|
||||
```
|
||||
|
||||
### Default setup command
|
||||
|
||||
When `run` is not provided:
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
name: Build
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
uses: ktmud/cached-depdencies@v1
|
||||
```
|
||||
|
||||
You must provide a `default-setup-command` in the bashlib. For example,
|
||||
|
||||
```bash
|
||||
default-setup-command() {
|
||||
pip-install & npm-install
|
||||
}
|
||||
```
|
||||
|
||||
This will start installing pip and npm dependencies at the same time.
|
||||
|
||||
### Customize config locations
|
||||
|
||||
Both the two config files, `.github/workflows/bashlib.sh` and `.github/workflows/caches.js`, can be placed in other locations:
|
||||
|
||||
```yaml
|
||||
- uses: ktmud/cached-dependencies@v1
|
||||
with:
|
||||
caches: ${{ github.workspace }}/.github/configs/caches.js
|
||||
bashlib: ${{ github.workspace }}/.github/configs/bashlib.sh
|
||||
```
|
||||
|
||||
### Run commands in parallel
|
||||
|
||||
When `parallel` is set to `true`, the `run` input will be split into an array of commands and passed to `Promise.all(...)` to execute in parallel. For example,
|
||||
|
||||
```yaml
|
||||
- uses: ktmud/cached-dependencies@v1
|
||||
with:
|
||||
parallel: true
|
||||
run: |
|
||||
pip-install
|
||||
npm-install
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
```yaml
|
||||
- uses: ktmud/cached-dependencies@v1
|
||||
with:
|
||||
run: |
|
||||
pip-install & npm-install
|
||||
```
|
||||
|
||||
If one or more of your commands must spread across multiple lines, you can add a new line between the parallel commands. Each command within a parallel group will still run sequentially.
|
||||
|
||||
```yaml
|
||||
- uses: ktmud/cached-dependencies@v1
|
||||
with:
|
||||
run: |
|
||||
cache-restore pip
|
||||
pip install requirements*.txt
|
||||
# additional pip packages
|
||||
pip install package1 package2 pacakge2
|
||||
cache-save pip
|
||||
|
||||
npm-install
|
||||
|
||||
cache-restore cypress
|
||||
cd cypress/ && npm install
|
||||
cache-save cypress
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This project is released under [the MIT License](LICENSE).
|
||||
124
.github/actions/cached-dependencies/__tests__/cache.test.ts
vendored
Normal file
124
.github/actions/cached-dependencies/__tests__/cache.test.ts
vendored
Normal file
@@ -0,0 +1,124 @@
|
||||
import path from 'path';
|
||||
import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
import * as core from '@actions/core';
|
||||
import * as cache from '../src/cache';
|
||||
import * as inputsUtils from '../src/utils/inputs';
|
||||
import * as actionUtils from '@actions/cache/src/utils/actionUtils';
|
||||
import defaultCaches from '../src/cache/caches';
|
||||
import { setInputs, getInput, maybeArrayToString } from '../src/utils/inputs';
|
||||
import { Inputs, InputName, GitHubEvent, EnvVariable } from '../src/constants';
|
||||
import caches, { npmExpectedHash } from './fixtures/caches';
|
||||
|
||||
describe('patch core states', () => {
|
||||
it('should log error if states file invalid', () => {
|
||||
const logWarningMock = jest.spyOn(actionUtils, 'logWarning');
|
||||
fs.writeFileSync(`${os.tmpdir()}/cached--states.json`, 'INVALID_JSON', {
|
||||
encoding: 'utf-8',
|
||||
});
|
||||
core.getState('haha');
|
||||
expect(logWarningMock).toHaveBeenCalledTimes(2);
|
||||
});
|
||||
it('should persist state', () => {
|
||||
core.saveState('test', '100');
|
||||
expect(core.getState('test')).toStrictEqual('100');
|
||||
});
|
||||
});
|
||||
|
||||
describe('cache runner', () => {
|
||||
it('should use default cache config', async () => {
|
||||
await cache.loadCustomCacheConfigs();
|
||||
// but `npm` actually come from `src/cache/caches.ts`
|
||||
const inputs = await cache.getCacheInputs('npm');
|
||||
expect(inputs?.[InputName.Path]).toStrictEqual(
|
||||
maybeArrayToString(defaultCaches.npm.path),
|
||||
);
|
||||
expect(inputs?.[InputName.RestoreKeys]).toStrictEqual('npm-');
|
||||
});
|
||||
|
||||
it('should override cache config', async () => {
|
||||
setInputs({
|
||||
[InputName.Caches]: path.resolve(__dirname, 'fixtures/caches'),
|
||||
});
|
||||
await cache.loadCustomCacheConfigs();
|
||||
|
||||
const inputs = await cache.getCacheInputs('npm');
|
||||
expect(inputs?.[InputName.Path]).toStrictEqual(
|
||||
maybeArrayToString(caches.npm.path),
|
||||
);
|
||||
expect(inputs?.[InputName.Key]).toStrictEqual(`npm-${npmExpectedHash}`);
|
||||
expect(inputs?.[InputName.RestoreKeys]).toStrictEqual(
|
||||
maybeArrayToString(caches.npm.restoreKeys),
|
||||
);
|
||||
});
|
||||
|
||||
it('should apply inputs and restore cache', async () => {
|
||||
setInputs({
|
||||
[InputName.Caches]: path.resolve(__dirname, 'fixtures/caches'),
|
||||
[EnvVariable.GitHubEventName]: GitHubEvent.PullRequest,
|
||||
});
|
||||
|
||||
const setInputsMock = jest.spyOn(inputsUtils, 'setInputs');
|
||||
const inputs = await cache.getCacheInputs('npm');
|
||||
const result = await cache.run('restore', 'npm');
|
||||
|
||||
expect(result).toBeUndefined();
|
||||
|
||||
// before run
|
||||
expect(setInputsMock).toHaveBeenNthCalledWith(1, inputs);
|
||||
|
||||
// after run
|
||||
expect(setInputsMock).toHaveBeenNthCalledWith(2, {
|
||||
[InputName.Key]: '',
|
||||
[InputName.Path]: '',
|
||||
[InputName.RestoreKeys]: '',
|
||||
});
|
||||
|
||||
// inputs actually restored to original value
|
||||
expect(getInput(InputName.Key)).toStrictEqual('');
|
||||
|
||||
// pretend still in execution context
|
||||
setInputs(inputs as Inputs);
|
||||
|
||||
// `core.getState` should return the primary key
|
||||
expect(core.getState('CACHE_KEY')).toStrictEqual(inputs?.[InputName.Key]);
|
||||
|
||||
setInputsMock.mockRestore();
|
||||
});
|
||||
|
||||
it('should run saveCache', async () => {
|
||||
// call to save should also work
|
||||
const logWarningMock = jest.spyOn(actionUtils, 'logWarning');
|
||||
|
||||
setInputs({
|
||||
[InputName.Parallel]: 'true',
|
||||
});
|
||||
await cache.run('save', 'npm');
|
||||
expect(logWarningMock).toHaveBeenCalledWith(
|
||||
'Cache Service Url not found, unable to restore cache.',
|
||||
);
|
||||
});
|
||||
|
||||
it('should exit on invalid args', async () => {
|
||||
// other calls do generate errors
|
||||
const processExitMock = jest
|
||||
.spyOn(process, 'exit')
|
||||
// @ts-ignore
|
||||
.mockImplementation(() => {});
|
||||
|
||||
// incomplete arguments
|
||||
await cache.run();
|
||||
await cache.run('save');
|
||||
|
||||
// bad arguments
|
||||
await cache.run('save', 'unknown-cache');
|
||||
await cache.run('unknown-action', 'unknown-cache');
|
||||
|
||||
setInputs({
|
||||
[InputName.Caches]: 'non-existent',
|
||||
});
|
||||
await cache.run('save', 'npm');
|
||||
|
||||
expect(processExitMock).toHaveBeenCalledTimes(5);
|
||||
});
|
||||
});
|
||||
5
.github/actions/cached-dependencies/__tests__/fixtures/bashlib.sh
vendored
Normal file
5
.github/actions/cached-dependencies/__tests__/fixtures/bashlib.sh
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
default-setup-command() {
|
||||
print-cachescript-path
|
||||
}
|
||||
14
.github/actions/cached-dependencies/__tests__/fixtures/caches.ts
vendored
Normal file
14
.github/actions/cached-dependencies/__tests__/fixtures/caches.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Example cache config.
|
||||
*/
|
||||
export const npmHashFiles = ['.*ignore'];
|
||||
export const npmExpectedHash =
|
||||
'13ed29a1c7ec906e7dcb20626957ebfcd3f0f2174bd2685a012105792bf1ff55';
|
||||
|
||||
export default {
|
||||
npm: {
|
||||
path: [`~/.npm`],
|
||||
hashFiles: npmHashFiles,
|
||||
restoreKeys: 'node-npm-',
|
||||
},
|
||||
};
|
||||
101
.github/actions/cached-dependencies/__tests__/setup.test.ts
vendored
Normal file
101
.github/actions/cached-dependencies/__tests__/setup.test.ts
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
/**
|
||||
* Test default runner.
|
||||
*/
|
||||
import { setInputs } from '../src/utils/inputs';
|
||||
import { InputName, DefaultInputs } from '../src/constants';
|
||||
import * as setup from '../src/setup';
|
||||
import path from 'path';
|
||||
|
||||
const extraBashlib = path.resolve(__dirname, './fixtures/bashlib.sh');
|
||||
|
||||
describe('setup runner', () => {
|
||||
// don't actually run the bash script
|
||||
const runCommandMock = jest.spyOn(setup, 'runCommand');
|
||||
|
||||
it('should allow custom bashlib', async () => {
|
||||
setInputs({
|
||||
[InputName.Bashlib]: extraBashlib,
|
||||
});
|
||||
await setup.run();
|
||||
expect(runCommandMock).toHaveBeenCalledTimes(1);
|
||||
expect(runCommandMock).toHaveBeenCalledWith(
|
||||
DefaultInputs[InputName.Run],
|
||||
extraBashlib,
|
||||
);
|
||||
});
|
||||
|
||||
it('should allow inline bash overrides', async () => {
|
||||
const processExitMock = jest
|
||||
.spyOn(process, 'exit')
|
||||
// @ts-ignore
|
||||
.mockImplementation(() => {});
|
||||
|
||||
setInputs({
|
||||
[InputName.Bashlib]: '',
|
||||
[InputName.Parallel]: 'false',
|
||||
[InputName.Run]: `
|
||||
${DefaultInputs[InputName.Run]}() {
|
||||
echo "It works!"
|
||||
exit 202
|
||||
}
|
||||
${DefaultInputs[InputName.Run]}
|
||||
`,
|
||||
});
|
||||
// allow the bash script to run for one test, but override the default
|
||||
await setup.run();
|
||||
expect(runCommandMock).toHaveBeenCalledTimes(1);
|
||||
expect(processExitMock).toHaveBeenCalledTimes(1);
|
||||
expect(processExitMock).toHaveBeenCalledWith(1);
|
||||
});
|
||||
|
||||
it('should use run commands', async () => {
|
||||
// don't run the commands when there is no overrides
|
||||
runCommandMock.mockImplementation(async () => {});
|
||||
|
||||
setInputs({
|
||||
[InputName.Bashlib]: 'non-existent',
|
||||
[InputName.Run]: 'print-cachescript-path',
|
||||
});
|
||||
|
||||
await setup.run();
|
||||
|
||||
expect(runCommandMock).toHaveBeenCalledTimes(1);
|
||||
expect(runCommandMock).toHaveBeenCalledWith('print-cachescript-path', '');
|
||||
});
|
||||
|
||||
it('should handle single-new-line parallel commands', async () => {
|
||||
setInputs({
|
||||
[InputName.Run]: `
|
||||
test-command-1
|
||||
test-command-2
|
||||
`,
|
||||
[InputName.Parallel]: 'true',
|
||||
});
|
||||
|
||||
await setup.run();
|
||||
|
||||
expect(runCommandMock).toHaveBeenNthCalledWith(1, 'test-command-1', '');
|
||||
expect(runCommandMock).toHaveBeenNthCalledWith(2, 'test-command-2', '');
|
||||
});
|
||||
|
||||
it('should handle multi-new-line parallel commands', async () => {
|
||||
setInputs({
|
||||
[InputName.Run]: `
|
||||
test-1-1
|
||||
test-1-2
|
||||
|
||||
test-2
|
||||
`,
|
||||
[InputName.Parallel]: 'true',
|
||||
});
|
||||
|
||||
await setup.run();
|
||||
|
||||
expect(runCommandMock).toHaveBeenNthCalledWith(
|
||||
1,
|
||||
'test-1-1\n test-1-2',
|
||||
'',
|
||||
);
|
||||
expect(runCommandMock).toHaveBeenNthCalledWith(2, 'test-2', '');
|
||||
});
|
||||
});
|
||||
10
.github/actions/cached-dependencies/__tests__/tsconfig.json
vendored
Normal file
10
.github/actions/cached-dependencies/__tests__/tsconfig.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"outDir": "../build",
|
||||
"noEmit": true,
|
||||
"rootDir": "../"
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
25
.github/actions/cached-dependencies/action.yml
vendored
Normal file
25
.github/actions/cached-dependencies/action.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Cached Dependencies
|
||||
description: Setup multi-layered cache and dependencies in one step, share predefined commands across workflows
|
||||
author: Jesse Yang <hello@yjc.me>
|
||||
branding:
|
||||
icon: layers
|
||||
color: yellow
|
||||
inputs:
|
||||
caches:
|
||||
required: false
|
||||
description: Path to a JS file with cache configs
|
||||
default: ${{ github.workspace }}/.github/workflows/caches.js
|
||||
bashlib:
|
||||
required: false
|
||||
description: Path to a Bash script with command shortcuts
|
||||
default: ${{ github.workspace }}/.github/workflows/bashlib.sh
|
||||
run:
|
||||
required: false
|
||||
description: Setup commands to run, can use shortcuts defined in bashlib
|
||||
default: default-setup-command
|
||||
parallel:
|
||||
required: false
|
||||
description: Whether to run commands in parallel
|
||||
runs:
|
||||
using: node12
|
||||
main: dist/index.js
|
||||
1757
.github/actions/cached-dependencies/dist/index.js
vendored
Normal file
1757
.github/actions/cached-dependencies/dist/index.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6125
.github/actions/cached-dependencies/dist/scripts/cache/index.js
vendored
Normal file
6125
.github/actions/cached-dependencies/dist/scripts/cache/index.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
57
.github/actions/cached-dependencies/dist/scripts/cache/thread.js
vendored
Normal file
57
.github/actions/cached-dependencies/dist/scripts/cache/thread.js
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
'use strict';
|
||||
const fs = require('fs');
|
||||
const crypto = require('crypto');
|
||||
const {parentPort} = require('worker_threads');
|
||||
|
||||
const handlers = {
|
||||
hashFile: (algorithm, filePath) => new Promise((resolve, reject) => {
|
||||
const hasher = crypto.createHash(algorithm);
|
||||
fs.createReadStream(filePath)
|
||||
// TODO: Use `Stream.pipeline` when targeting Node.js 12.
|
||||
.on('error', reject)
|
||||
.pipe(hasher)
|
||||
.on('error', reject)
|
||||
.on('finish', () => {
|
||||
const {buffer} = hasher.read();
|
||||
resolve({value: buffer, transferList: [buffer]});
|
||||
});
|
||||
}),
|
||||
hash: async (algorithm, input) => {
|
||||
const hasher = crypto.createHash(algorithm);
|
||||
|
||||
if (Array.isArray(input)) {
|
||||
for (const part of input) {
|
||||
hasher.update(part);
|
||||
}
|
||||
} else {
|
||||
hasher.update(input);
|
||||
}
|
||||
|
||||
const hash = hasher.digest().buffer;
|
||||
return {value: hash, transferList: [hash]};
|
||||
}
|
||||
};
|
||||
|
||||
parentPort.on('message', async message => {
|
||||
try {
|
||||
const {method, args} = message;
|
||||
const handler = handlers[method];
|
||||
|
||||
if (handler === undefined) {
|
||||
throw new Error(`Unknown method '${method}'`);
|
||||
}
|
||||
|
||||
const {value, transferList} = await handler(...args);
|
||||
parentPort.postMessage({id: message.id, value}, transferList);
|
||||
} catch (error) {
|
||||
const newError = {message: error.message, stack: error.stack};
|
||||
|
||||
for (const [key, value] of Object.entries(error)) {
|
||||
if (typeof value !== 'object') {
|
||||
newError[key] = value;
|
||||
}
|
||||
}
|
||||
|
||||
parentPort.postMessage({id: message.id, error: newError});
|
||||
}
|
||||
});
|
||||
21
.github/actions/cached-dependencies/jest.config.js
vendored
Normal file
21
.github/actions/cached-dependencies/jest.config.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
clearMocks: true,
|
||||
moduleFileExtensions: ['js', 'ts'],
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/*.test.ts'],
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest',
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'/node_modules/(?!@actions).+\\.js$',
|
||||
],
|
||||
verbose: true,
|
||||
};
|
||||
|
||||
// suppress debug messages
|
||||
const processStdoutWrite = process.stdout.write.bind(process.stdout);
|
||||
process.stdout.write = (str, encoding, cb) => {
|
||||
processStdoutWrite(str.split('\n').filter(x => {
|
||||
return !/^::debug::/.test(x);
|
||||
}).join('\n'), encoding, cb);
|
||||
};
|
||||
8197
.github/actions/cached-dependencies/package-lock.json
generated
vendored
Normal file
8197
.github/actions/cached-dependencies/package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
47
.github/actions/cached-dependencies/package.json
vendored
Normal file
47
.github/actions/cached-dependencies/package.json
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "setup-superset-action",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"keywords": [
|
||||
"actions",
|
||||
"node",
|
||||
"setup",
|
||||
"superset"
|
||||
],
|
||||
"main": "dist/run",
|
||||
"scripts": {
|
||||
"all": "npm run format && npm run lint && npm run test && npm run build",
|
||||
"build": "npm run clean && tsc && ncc build -o dist src/run.ts && ncc build -o dist/scripts/cache src/scripts/cache.ts",
|
||||
"clean": "rm -rf ./lib ./dist",
|
||||
"coverage": "npm run test && open ./coverage/lcov-report/index.html",
|
||||
"format": "prettier --write **/*.ts",
|
||||
"format-check": "prettier --check **/*.ts",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"test": "jest --clearCache && jest --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/cache": "actions/cache#d29c1df198dd38ac88e0ae23a2881b99c2d20e68",
|
||||
"@actions/core": "1.2.4",
|
||||
"@actions/exec": "1.0.4",
|
||||
"@actions/glob": "0.1.0",
|
||||
"@types/uuid": "7.0.4",
|
||||
"hasha": "5.2.0",
|
||||
"tempy": "0.6.0",
|
||||
"uuid": "7.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "26.0.7",
|
||||
"@types/node": "12.12.53",
|
||||
"@typescript-eslint/eslint-plugin": "3.7.1",
|
||||
"@typescript-eslint/parser": "3.7.1",
|
||||
"@zeit/ncc": "0.22.3",
|
||||
"eslint": "7.5.0",
|
||||
"eslint-plugin-jest": "23.19.0",
|
||||
"jest": "26.1.0",
|
||||
"js-yaml": "3.14.0",
|
||||
"prettier": "2.0.5",
|
||||
"prettier-plugin-packagejson": "2.2.5",
|
||||
"ts-jest": "26.1.4",
|
||||
"typescript": "3.9.7"
|
||||
}
|
||||
}
|
||||
5
.github/actions/cached-dependencies/renovate.json
vendored
Normal file
5
.github/actions/cached-dependencies/renovate.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
}
|
||||
49
.github/actions/cached-dependencies/src/cache/caches.ts
vendored
Normal file
49
.github/actions/cached-dependencies/src/cache/caches.ts
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* Default cache configs
|
||||
*/
|
||||
import * as os from 'os';
|
||||
|
||||
export interface CacheConfig {
|
||||
path: string[] | string;
|
||||
hashFiles: string[] | string;
|
||||
keyPrefix?: string;
|
||||
restoreKeys?: string[] | string;
|
||||
}
|
||||
|
||||
export interface CacheConfigs {
|
||||
[cacheName: string]: CacheConfig;
|
||||
}
|
||||
|
||||
const { HOME = '~' } = process.env;
|
||||
const platform = os.platform() as 'linux' | 'darwin' | 'win32';
|
||||
const pathByPlatform = {
|
||||
linux: {
|
||||
pip: `${HOME}/.cache/pip`,
|
||||
},
|
||||
darwin: {
|
||||
pip: `${HOME}/Library/Caches/pip`,
|
||||
},
|
||||
win32: {
|
||||
pip: `${HOME}\\AppData\\Local\\pip\\Cache`,
|
||||
},
|
||||
};
|
||||
|
||||
export default {
|
||||
pip: {
|
||||
path: pathByPlatform[platform].pip,
|
||||
hashFiles: 'requirements*.txt',
|
||||
},
|
||||
npm: {
|
||||
path: `${HOME}/.npm`,
|
||||
hashFiles: [
|
||||
`package-lock.json`,
|
||||
// support lerna monorepo with depth=2
|
||||
`*/*/package-lock.json`,
|
||||
`!node_modules/*/package-lock.json`,
|
||||
],
|
||||
},
|
||||
yarn: {
|
||||
path: `${HOME}/.npm`,
|
||||
hashFiles: [`yarn.lock`, `*/*/yarn.lock`, `!node_modules/*/yarn.lock`],
|
||||
},
|
||||
} as CacheConfigs;
|
||||
146
.github/actions/cached-dependencies/src/cache/index.ts
vendored
Normal file
146
.github/actions/cached-dependencies/src/cache/index.ts
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* Execute @actions/cache with predefined cache configs.
|
||||
*/
|
||||
import { beginImport, doneImport } from './patch'; // monkey patch @actions modules
|
||||
|
||||
beginImport();
|
||||
import saveCache from '@actions/cache/src/save';
|
||||
import restoreCache from '@actions/cache/src/restore';
|
||||
doneImport();
|
||||
|
||||
import hasha from 'hasha';
|
||||
import * as fs from 'fs';
|
||||
import * as core from '@actions/core';
|
||||
import * as glob from '@actions/glob';
|
||||
import { Inputs, InputName, DefaultInputs } from '../constants';
|
||||
import { applyInputs, getInput, maybeArrayToString } from '../utils/inputs';
|
||||
import caches from './caches'; // default cache configs
|
||||
|
||||
// GitHub uses `sha256` for the built-in `${{ hashFiles(...) }}` expression
|
||||
// https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#hashfiles
|
||||
const HASH_OPTION = { algorithm: 'sha256' };
|
||||
|
||||
/**
|
||||
* Load custom cache configs from the `caches` path defined in inputs.
|
||||
*
|
||||
* @returns Whether the loading is successfull.
|
||||
*/
|
||||
export async function loadCustomCacheConfigs() {
|
||||
const customCachePath = getInput(InputName.Caches);
|
||||
try {
|
||||
core.debug(`Reading cache configs from '${customCachePath}'`);
|
||||
const customCache = await import(customCachePath);
|
||||
Object.assign(caches, customCache.default);
|
||||
} catch (error) {
|
||||
if (
|
||||
customCachePath !== DefaultInputs[InputName.Caches] ||
|
||||
!error.message.includes('Cannot find module')
|
||||
) {
|
||||
core.error(error.message);
|
||||
core.setFailed(
|
||||
`Failed to load custom cache configs: '${customCachePath}'`,
|
||||
);
|
||||
return process.exit(1);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate SHA256 hash for a list of files matched by glob patterns.
|
||||
*
|
||||
* @param {string[]} patterns - The glob pattern.
|
||||
* @param {string} extra - The extra string to append to the file hashes to
|
||||
* comptue the final hash.
|
||||
*/
|
||||
export async function hashFiles(
|
||||
patterns: string[] | string,
|
||||
extra: string = '',
|
||||
) {
|
||||
const globber = await glob.create(maybeArrayToString(patterns));
|
||||
let hash = '';
|
||||
let counter = 0;
|
||||
for await (const file of globber.globGenerator()) {
|
||||
if (!fs.statSync(file).isDirectory()) {
|
||||
hash += hasha.fromFileSync(file, HASH_OPTION);
|
||||
counter += 1;
|
||||
}
|
||||
}
|
||||
core.debug(`Computed hash for ${counter} files. Pattern: ${patterns}`);
|
||||
return hasha(hash + extra, HASH_OPTION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate GitHub Action inputs based on predefined cache config. Will be used
|
||||
* to override env variables.
|
||||
*
|
||||
* @param {string} cacheName - Name of the predefined cache config.
|
||||
*/
|
||||
export async function getCacheInputs(
|
||||
cacheName: string,
|
||||
): Promise<Inputs | null> {
|
||||
if (!(cacheName in caches)) {
|
||||
return null;
|
||||
}
|
||||
const { keyPrefix, restoreKeys, path, hashFiles: patterns } = caches[
|
||||
cacheName
|
||||
];
|
||||
const pathString = maybeArrayToString(path);
|
||||
const prefix = keyPrefix || `${cacheName}-`;
|
||||
// include `path` to hash, too, so to burse caches in case users change
|
||||
// the path definition.
|
||||
const hash = await hashFiles(patterns, pathString);
|
||||
return {
|
||||
[InputName.Key]: `${prefix}${hash}`,
|
||||
[InputName.Path]: pathString,
|
||||
// only use prefix as restore key if it is never defined
|
||||
[InputName.RestoreKeys]:
|
||||
restoreKeys === undefined ? prefix : maybeArrayToString(restoreKeys),
|
||||
};
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
restore(inputs: Inputs) {
|
||||
return applyInputs(inputs, restoreCache);
|
||||
},
|
||||
save(inputs: Inputs) {
|
||||
return applyInputs(inputs, saveCache);
|
||||
},
|
||||
};
|
||||
|
||||
export type ActionChoice = keyof typeof actions;
|
||||
|
||||
export async function run(
|
||||
action: string | undefined = undefined,
|
||||
cacheName: string | undefined = undefined,
|
||||
) {
|
||||
if (!action || !(action in actions)) {
|
||||
core.setFailed(`Choose a cache action from: [restore, save]`);
|
||||
return process.exit(1);
|
||||
}
|
||||
if (!cacheName) {
|
||||
core.setFailed(`Must provide a cache name.`);
|
||||
return process.exit(1);
|
||||
}
|
||||
|
||||
const runInParallel = getInput(InputName.Parallel);
|
||||
|
||||
if (await loadCustomCacheConfigs()) {
|
||||
if (runInParallel) {
|
||||
core.info(`${action.toUpperCase()} cache for ${cacheName}`);
|
||||
} else {
|
||||
core.startGroup(`${action.toUpperCase()} cache for ${cacheName}`);
|
||||
}
|
||||
const inputs = await getCacheInputs(cacheName);
|
||||
if (inputs) {
|
||||
core.info(JSON.stringify(inputs, null, 2));
|
||||
await actions[action as ActionChoice](inputs);
|
||||
} else {
|
||||
core.setFailed(`Cache '${cacheName}' not defined, failed to ${action}.`);
|
||||
return process.exit(1);
|
||||
}
|
||||
if (!runInParallel) {
|
||||
core.endGroup();
|
||||
}
|
||||
}
|
||||
}
|
||||
95
.github/actions/cached-dependencies/src/cache/patch.ts
vendored
Normal file
95
.github/actions/cached-dependencies/src/cache/patch.ts
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
/**
|
||||
* Monkey patch to safely import and use @action/cache modules
|
||||
*/
|
||||
import * as utils from '@actions/cache/src/utils/actionUtils';
|
||||
import * as core from '@actions/core';
|
||||
import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
import { InputName } from '../constants';
|
||||
import { getInput } from '../utils/inputs';
|
||||
|
||||
interface KeyValueStore {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
const { logWarning, isValidEvent } = utils;
|
||||
const { getState, saveState } = core;
|
||||
|
||||
function getStateStoreFile() {
|
||||
const cacheName = getInput(InputName.Key);
|
||||
return `${os.tmpdir()}/cached-${cacheName}-states.json`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load states from the persistent store.
|
||||
*
|
||||
* The default `core.saveState` only writes states as command output, and
|
||||
* `core.getState` is only possible to read the state in a later step via ENV
|
||||
* variables.
|
||||
*
|
||||
* So we use a temp file to save and load states, so to allow persistent
|
||||
* states within the same step.
|
||||
*
|
||||
* Since the state output is not uniq to caches, each cache should have their
|
||||
* own file for persistent states.
|
||||
*/
|
||||
function loadStates() {
|
||||
const stateStore = getStateStoreFile();
|
||||
const states: KeyValueStore = {};
|
||||
try {
|
||||
Object.assign(
|
||||
states,
|
||||
JSON.parse(fs.readFileSync(stateStore, { encoding: 'utf-8' })),
|
||||
);
|
||||
core.debug(`Loaded states from: ${stateStore}`)
|
||||
} catch (error) {
|
||||
// pass
|
||||
if (error.code !== 'ENOENT') {
|
||||
utils.logWarning(`Could not load states: ${stateStore}`)
|
||||
utils.logWarning(error.message);
|
||||
}
|
||||
}
|
||||
return states;
|
||||
}
|
||||
|
||||
/**
|
||||
* Save states to the persistent storage.
|
||||
*/
|
||||
function persistState(name: string, value: any) {
|
||||
const states = loadStates();
|
||||
const stateStore = getStateStoreFile();
|
||||
const valueString = typeof value === 'string' ? value : JSON.stringify(value);
|
||||
|
||||
// make sure value is always string
|
||||
states[name] = valueString;
|
||||
|
||||
// persist state in the temp file
|
||||
fs.writeFileSync(stateStore, JSON.stringify(states, null, 2), {
|
||||
encoding: 'utf-8',
|
||||
});
|
||||
core.debug(`Persist state "${name}=${valueString}" to ${stateStore}`);
|
||||
|
||||
// still pass the original value to the original function, though
|
||||
return saveState(name, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get states from persistent store, fallback to "official" states.
|
||||
*/
|
||||
function obtainState(name: string) {
|
||||
const states = loadStates();
|
||||
return states[name] || getState(name);
|
||||
}
|
||||
|
||||
export function beginImport() {
|
||||
Object.defineProperty(utils, 'isValidEvent', { value: () => false });
|
||||
Object.defineProperty(utils, 'logWarning', { value: () => {} });
|
||||
}
|
||||
|
||||
export function doneImport() {
|
||||
Object.defineProperty(utils, 'isValidEvent', { value: isValidEvent });
|
||||
Object.defineProperty(utils, 'logWarning', { value: logWarning });
|
||||
|
||||
Object.defineProperty(core, 'saveState', { value: persistState });
|
||||
Object.defineProperty(core, 'getState', { value: obtainState });
|
||||
}
|
||||
43
.github/actions/cached-dependencies/src/constants.ts
vendored
Normal file
43
.github/actions/cached-dependencies/src/constants.ts
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
// Possible input names
|
||||
export enum InputName {
|
||||
// @actions/cache specific inputs
|
||||
Key = 'key',
|
||||
Path = 'path',
|
||||
RestoreKeys = 'restore-keys',
|
||||
|
||||
// setup-webapp specific inputs
|
||||
Run = 'run',
|
||||
Caches = 'caches',
|
||||
Bashlib = 'bashlib',
|
||||
Parallel = 'parallel',
|
||||
}
|
||||
|
||||
// Possible GitHub event names
|
||||
export enum GitHubEvent {
|
||||
Push = 'push',
|
||||
PullRequest = 'pull_request',
|
||||
}
|
||||
|
||||
// Directly available environment variables
|
||||
export enum EnvVariable {
|
||||
GitHubEventName = 'GITHUB_EVENT_NAME',
|
||||
}
|
||||
|
||||
export const EnvVariableNames = new Set(Object.values(EnvVariable) as string[]);
|
||||
|
||||
export interface Inputs {
|
||||
[EnvVariable.GitHubEventName]?: string;
|
||||
[InputName.Key]?: string;
|
||||
[InputName.RestoreKeys]?: string;
|
||||
[InputName.Path]?: string;
|
||||
[InputName.Caches]?: string;
|
||||
[InputName.Bashlib]?: string;
|
||||
[InputName.Run]?: string;
|
||||
[InputName.Parallel]?: string;
|
||||
}
|
||||
|
||||
export const DefaultInputs = {
|
||||
[InputName.Caches]: '.github/workflows/caches.js',
|
||||
[InputName.Bashlib]: '.github/workflows/bashlib.sh',
|
||||
[InputName.Run]: 'default-setup-command',
|
||||
} as Inputs;
|
||||
3
.github/actions/cached-dependencies/src/run.ts
vendored
Normal file
3
.github/actions/cached-dependencies/src/run.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { run } from './setup';
|
||||
|
||||
run();
|
||||
61
.github/actions/cached-dependencies/src/scripts/bashlib.sh
vendored
Normal file
61
.github/actions/cached-dependencies/src/scripts/bashlib.sh
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
#!/bin/bash
|
||||
# -----------------------------------------------
|
||||
# Predefined command shortcuts
|
||||
# -----------------------------------------------
|
||||
|
||||
# Exit on any command fails
|
||||
set -e
|
||||
|
||||
bashSource=${BASH_SOURCE[${#BASH_SOURCE[@]} - 1]:-${(%):-%x}}
|
||||
cacheScript="$(dirname $(dirname $(dirname $bashSource)))/dist/scripts/cache"
|
||||
|
||||
print-cachescript-path() {
|
||||
echo $cacheScript
|
||||
}
|
||||
|
||||
cache-restore() {
|
||||
node $cacheScript restore $1
|
||||
}
|
||||
|
||||
cache-save() {
|
||||
node $cacheScript save $1
|
||||
}
|
||||
|
||||
# install python packages
|
||||
pip-install() {
|
||||
cache-restore pip
|
||||
echo "::group::Install Python pacakges"
|
||||
pip install -r requirements.txt # install dependencies
|
||||
pip install -e . # install current directory as editable python package
|
||||
echo "::endgroup"
|
||||
cache-save pip
|
||||
}
|
||||
|
||||
# install npm packages
|
||||
npm-install() {
|
||||
cache-restore npm
|
||||
echo "::group::Install npm pacakges"
|
||||
echo "npm: $(npm --version)"
|
||||
echo "node: $(node --version)"
|
||||
npm ci
|
||||
echo "::endgroup::"
|
||||
cache-save npm
|
||||
}
|
||||
|
||||
# install npm packages via yarn
|
||||
yarn-install() {
|
||||
cache-restore yarn
|
||||
echo "::group::Install npm pacakges via yarn"
|
||||
echo "npm: $(npm --version)"
|
||||
echo "node: $(node --version)"
|
||||
echo "yarn: $(yarn --version)"
|
||||
yarn
|
||||
echo "::endgroup::"
|
||||
cache-save yarn
|
||||
}
|
||||
|
||||
# default setup will install both pip and npm pacakges at the same time
|
||||
default-setup-command() {
|
||||
echo 'Please provide `run` commands or configure `default-setup-command`.'
|
||||
exit 1
|
||||
}
|
||||
18
.github/actions/cached-dependencies/src/scripts/cache.ts
vendored
Normal file
18
.github/actions/cached-dependencies/src/scripts/cache.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Runner script to store/save caches by predefined configs.
|
||||
* Used in `scripts/bashlib.sh`.
|
||||
*/
|
||||
import { EnvVariable } from '../constants';
|
||||
|
||||
// To import `@actions/cache` modules safely, we must set GitHub event name to
|
||||
// a invalid value, so actual runner code doesn't execute.
|
||||
const originalEvent = process.env[EnvVariable.GitHubEventName];
|
||||
process.env[EnvVariable.GitHubEventName] = 'CACHE_HACK';
|
||||
|
||||
import { run } from '../cache';
|
||||
|
||||
// then we restore the event name before the job actually runs
|
||||
process.env[EnvVariable.GitHubEventName] = originalEvent;
|
||||
|
||||
// @ts-ignore
|
||||
run(...process.argv.slice(2));
|
||||
66
.github/actions/cached-dependencies/src/setup.ts
vendored
Normal file
66
.github/actions/cached-dependencies/src/setup.ts
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Load inputs and execute.
|
||||
*/
|
||||
import * as core from '@actions/core';
|
||||
import { exec } from '@actions/exec';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import { DefaultInputs, InputName } from './constants';
|
||||
import { getInput } from './utils/inputs';
|
||||
|
||||
const SHARED_BASHLIB = path.resolve(__dirname, '../src/scripts/bashlib.sh');
|
||||
|
||||
/**
|
||||
* Run bash commands with predefined lib functions.
|
||||
*
|
||||
* @param {string} cmd - The bash commands to execute.
|
||||
*/
|
||||
export async function runCommand(
|
||||
cmd: string,
|
||||
extraBashlib: string,
|
||||
): Promise<void> {
|
||||
const bashlibCommands = [`source ${SHARED_BASHLIB}`];
|
||||
if (extraBashlib) {
|
||||
bashlibCommands.push(`source ${extraBashlib}`);
|
||||
}
|
||||
try {
|
||||
await exec('bash', ['-c', [...bashlibCommands, cmd].join('\n ')]);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
export async function run(): Promise<void> {
|
||||
let bashlib = getInput(InputName.Bashlib);
|
||||
const rawCommands = getInput(InputName.Run);
|
||||
const runInParallel = getInput(InputName.Parallel);
|
||||
|
||||
if (!fs.existsSync(bashlib)) {
|
||||
if (bashlib !== DefaultInputs[InputName.Bashlib]) {
|
||||
core.error(`Custom bashlib "${bashlib}" does not exist.`);
|
||||
}
|
||||
// don't add bashlib to runCommand
|
||||
bashlib = '';
|
||||
}
|
||||
|
||||
if (runInParallel) {
|
||||
// Attempt to split by two or more new lines first, if there is still only
|
||||
// one command, attempt to split by one new line. This is because users
|
||||
// asked for parallelization, so we make our best efforts to get multiple
|
||||
// commands.
|
||||
let commands = rawCommands.split(/\n{2,}/);
|
||||
if (commands.length === 1) {
|
||||
commands = rawCommands.split('\n');
|
||||
}
|
||||
core.debug(`>> Run ${commands.length} commands in parallel...`);
|
||||
await Promise.all(
|
||||
commands
|
||||
.map(x => x.trim())
|
||||
.filter(x => !!x)
|
||||
.map(cmd => exports.runCommand(cmd, bashlib)),
|
||||
);
|
||||
} else if (rawCommands) {
|
||||
await exports.runCommand(rawCommands, bashlib);
|
||||
}
|
||||
}
|
||||
2
.github/actions/cached-dependencies/src/types/external.d.ts
vendored
Normal file
2
.github/actions/cached-dependencies/src/types/external.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare module '@actions/cache/dist/restore';
|
||||
declare module '@actions/cache/dist/save';
|
||||
61
.github/actions/cached-dependencies/src/utils/inputs.ts
vendored
Normal file
61
.github/actions/cached-dependencies/src/utils/inputs.ts
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* Manage inputs and env variables.
|
||||
*/
|
||||
import * as core from '@actions/core';
|
||||
import {
|
||||
Inputs,
|
||||
EnvVariableNames,
|
||||
InputName,
|
||||
DefaultInputs,
|
||||
} from '../constants';
|
||||
|
||||
export function getInput(name: keyof Inputs): string {
|
||||
const value = core.getInput(name);
|
||||
if (name === InputName.Parallel) {
|
||||
return value.toUpperCase() === 'TRUE' ? value : '';
|
||||
}
|
||||
return value || DefaultInputs[name] || '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Update env variables associated with some inputs.
|
||||
* See: https://github.com/actions/toolkit/blob/5b940ebda7e7b86545fe9741903c930bc1191eb0/packages/core/src/core.ts#L69-L77 .
|
||||
*
|
||||
* @param {Inputs} inputs - The new inputs to apply to the env variables.
|
||||
*/
|
||||
export function setInputs(inputs: Inputs): void {
|
||||
for (const [name, value] of Object.entries(inputs)) {
|
||||
const envName = EnvVariableNames.has(name)
|
||||
? name
|
||||
: `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
|
||||
process.env[envName] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply new inputs and execute a runner function, restore them when done.
|
||||
*
|
||||
* @param {Inputs} inputs - The new inputs to apply to the env variables before
|
||||
* excuting the runner.
|
||||
* @param {runner} runner - The runner function that returns a promise.
|
||||
* @returns {Promise<any>} - The result from the runner function.
|
||||
*/
|
||||
export async function applyInputs(
|
||||
inputs: Inputs,
|
||||
runner: () => Promise<void>,
|
||||
): Promise<any> {
|
||||
const originalInputs: Inputs = Object.fromEntries(
|
||||
Object.keys(inputs).map(name => [
|
||||
name,
|
||||
EnvVariableNames.has(name) ? process.env[name] : core.getInput(name),
|
||||
]),
|
||||
);
|
||||
exports.setInputs(inputs);
|
||||
const result = await runner();
|
||||
exports.setInputs(originalInputs);
|
||||
return result;
|
||||
}
|
||||
|
||||
export function maybeArrayToString(input: string[] | string) {
|
||||
return Array.isArray(input) ? input.join('\n') : input;
|
||||
}
|
||||
19
.github/actions/cached-dependencies/tsconfig.json
vendored
Normal file
19
.github/actions/cached-dependencies/tsconfig.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"lib": ["esnext"],
|
||||
"moduleResolution": "node",
|
||||
"outDir": "./lib",
|
||||
"rootDir": ".",
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"esModuleInterop": true,
|
||||
"preserveSymlinks": true
|
||||
},
|
||||
"include": [
|
||||
"./src",
|
||||
"./node_modules/@actions"
|
||||
],
|
||||
"exclude": ["**/*.test.ts", "__tests__"]
|
||||
}
|
||||
3
.github/actions/cancel-workflow-runs/.eslintignore
vendored
Normal file
3
.github/actions/cancel-workflow-runs/.eslintignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
dist/
|
||||
lib/
|
||||
node_modules/
|
||||
58
.github/actions/cancel-workflow-runs/.eslintrc.json
vendored
Normal file
58
.github/actions/cancel-workflow-runs/.eslintrc.json
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"plugins": ["jest", "@typescript-eslint"],
|
||||
"extends": ["plugin:github/es6"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 9,
|
||||
"sourceType": "module",
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"rules": {
|
||||
"eslint-comments/no-use": "off",
|
||||
"import/no-namespace": "off",
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unused-vars": "error",
|
||||
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
|
||||
"@typescript-eslint/no-require-imports": "error",
|
||||
"@typescript-eslint/array-type": "error",
|
||||
"@typescript-eslint/await-thenable": "error",
|
||||
"@typescript-eslint/ban-ts-ignore": "error",
|
||||
"camelcase": "off",
|
||||
"@typescript-eslint/camelcase": "error",
|
||||
"@typescript-eslint/class-name-casing": "error",
|
||||
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
|
||||
"@typescript-eslint/func-call-spacing": ["error", "never"],
|
||||
"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
|
||||
"@typescript-eslint/no-array-constructor": "error",
|
||||
"@typescript-eslint/no-empty-interface": "error",
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
"@typescript-eslint/no-extraneous-class": "error",
|
||||
"@typescript-eslint/no-for-in-array": "error",
|
||||
"@typescript-eslint/no-inferrable-types": "error",
|
||||
"@typescript-eslint/no-misused-new": "error",
|
||||
"@typescript-eslint/no-namespace": "error",
|
||||
"@typescript-eslint/no-non-null-assertion": "warn",
|
||||
"@typescript-eslint/no-object-literal-type-assertion": "error",
|
||||
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
||||
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
||||
"@typescript-eslint/no-useless-constructor": "error",
|
||||
"@typescript-eslint/no-var-requires": "error",
|
||||
"@typescript-eslint/prefer-for-of": "warn",
|
||||
"@typescript-eslint/prefer-function-type": "warn",
|
||||
"@typescript-eslint/prefer-includes": "error",
|
||||
"@typescript-eslint/prefer-interface": "error",
|
||||
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
||||
"@typescript-eslint/promise-function-async": "error",
|
||||
"@typescript-eslint/require-array-sort-compare": "error",
|
||||
"@typescript-eslint/restrict-plus-operands": "error",
|
||||
"semi": "off",
|
||||
"@typescript-eslint/semi": ["error", "never"],
|
||||
"@typescript-eslint/type-annotation-spacing": "error",
|
||||
"@typescript-eslint/unbound-method": "error"
|
||||
},
|
||||
"env": {
|
||||
"node": true,
|
||||
"es6": true,
|
||||
"jest/globals": true
|
||||
}
|
||||
}
|
||||
36
.github/actions/cancel-workflow-runs/.github/workflows/test.yml
vendored
Normal file
36
.github/actions/cancel-workflow-runs/.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: "Test the build"
|
||||
on: # rebuild any PRs and main branch changes
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
pre-commit: # make sure pre-commits work properly
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.6
|
||||
- name: Cache npm env
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-npm-v1
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ env.cache-name }}-${{ github.job }}-${{ hashFiles('package.json','package-lock.json') }}
|
||||
- name: "Install dependencies for npm"
|
||||
run: |
|
||||
npm ci
|
||||
- name: Cache pre-commit env
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-pre-commit-v1
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: ${{ env.cache-name }}-${{ github.job }}-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
- name: "Install pre-commit"
|
||||
run: |
|
||||
pip install pre-commit
|
||||
- name: "Run pre-commit"
|
||||
run: |
|
||||
pre-commit run --all-files --show-diff-on-failure --color always
|
||||
101
.github/actions/cancel-workflow-runs/.gitignore
vendored
Normal file
101
.github/actions/cancel-workflow-runs/.gitignore
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
# Dependency directory
|
||||
node_modules
|
||||
|
||||
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# next.js build output
|
||||
.next
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# OS metadata
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Ignore built ts files
|
||||
__tests__/runner/*
|
||||
lib/**/*
|
||||
|
||||
.idea
|
||||
47
.github/actions/cancel-workflow-runs/.pre-commit-config.yaml
vendored
Normal file
47
.github/actions/cancel-workflow-runs/.pre-commit-config.yaml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
default_stages: [commit, push]
|
||||
default_language_version:
|
||||
# force all unspecified python hooks to run python3
|
||||
python: python3
|
||||
minimum_pre_commit_version: "1.20.0"
|
||||
repos:
|
||||
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
||||
rev: v1.1.7
|
||||
hooks:
|
||||
- id: forbid-tabs
|
||||
exclude: ^dist/index.js$
|
||||
- repo: https://github.com/thlorenz/doctoc.git
|
||||
rev: v1.4.0
|
||||
hooks:
|
||||
- id: doctoc
|
||||
name: Add TOC for md files
|
||||
files: ^README\.md$|^CONTRIBUTING\.md$|^UPDATING.md$|^dev/README\.md$|^dev/BACKPORT_PACKAGES.md$
|
||||
- repo: meta
|
||||
hooks:
|
||||
- id: check-hooks-apply
|
||||
- repo: https://github.com/adrienverge/yamllint
|
||||
rev: v1.23.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
name: Check yaml files with yamllint
|
||||
entry: yamllint -c yamllint-config.yml
|
||||
types: [yaml]
|
||||
exclude: ^.*init_git_sync\.template\.yaml$|^.*airflow\.template\.yaml$|^chart/templates/.*\.yaml$
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: build
|
||||
name: Build package for distribution
|
||||
language: system
|
||||
entry: bash -c "npm run release"
|
||||
files: .*\.ts$
|
||||
require_serial: true
|
||||
pass_filenames: false
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: check-merge-conflict
|
||||
- id: detect-private-key
|
||||
- id: end-of-file-fixer
|
||||
exclude: ^dist/.*
|
||||
- id: trailing-whitespace
|
||||
exclude: ^dist/.*
|
||||
3
.github/actions/cancel-workflow-runs/.prettierignore
vendored
Normal file
3
.github/actions/cancel-workflow-runs/.prettierignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
dist/
|
||||
lib/
|
||||
node_modules/
|
||||
11
.github/actions/cancel-workflow-runs/.prettierrc.json
vendored
Normal file
11
.github/actions/cancel-workflow-runs/.prettierrc.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"printWidth": 80,
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"bracketSpacing": false,
|
||||
"arrowParens": "avoid",
|
||||
"parser": "typescript"
|
||||
}
|
||||
22
.github/actions/cancel-workflow-runs/LICENSE
vendored
Normal file
22
.github/actions/cancel-workflow-runs/LICENSE
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 GitHub, Inc. and contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
731
.github/actions/cancel-workflow-runs/README.md
vendored
Normal file
731
.github/actions/cancel-workflow-runs/README.md
vendored
Normal file
@@ -0,0 +1,731 @@
|
||||
<p><a href="https://github.com/potiuk/cancel-workflow-runs/actions">
|
||||
<img alt="cancel-workflow-runs status"
|
||||
src="https://github.com/potiuk/cancel-workflow-runs/workflows/Test%20the%20build/badge.svg"></a>
|
||||
|
||||
# Cancel Workflow Runs action
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
|
||||
|
||||
- [Context and motivation](#context-and-motivation)
|
||||
- [Usage](#usage)
|
||||
- [Inputs and outputs](#inputs-and-outputs)
|
||||
- [Inputs](#inputs)
|
||||
- [Outputs](#outputs)
|
||||
- [Most often used canceling example](#most-often-used-canceling-example)
|
||||
- [More Examples](#more-examples)
|
||||
- [Repositories that use Pull Requests from forks](#repositories-that-use-pull-requests-from-forks)
|
||||
- [Cancel duplicate runs for the source workflow](#cancel-duplicate-runs-for-the-source-workflow)
|
||||
- [Cancel duplicate jobs for triggered workflow](#cancel-duplicate-jobs-for-triggered-workflow)
|
||||
- [Cancel the "self" source workflow run](#cancel-the-self-source-workflow-run)
|
||||
- [Cancel the "self" triggered workflow run](#cancel-the-self-triggered-workflow-run)
|
||||
- [Fail-fast source workflow runs with failed jobs](#fail-fast-source-workflow-runs-with-failed-jobs)
|
||||
- [Fail-fast source workflow runs with failed jobs and corresponding triggered runs](#fail-fast-source-workflow-runs-with-failed-jobs-and-corresponding-triggered-runs)
|
||||
- [Fail-fast for triggered workflow runs with failed jobs](#fail-fast-for-triggered-workflow-runs-with-failed-jobs)
|
||||
- [Cancel another workflow run](#cancel-another-workflow-run)
|
||||
- [Cancel all duplicates for named jobs](#cancel-all-duplicates-for-named-jobs)
|
||||
- [Repositories that do not use Pull Requests from forks](#repositories-that-do-not-use-pull-requests-from-forks)
|
||||
- [Cancel duplicate runs for "self" workflow](#cancel-duplicate-runs-for-self-workflow)
|
||||
- [Cancel "self" workflow run](#cancel-self-workflow-run)
|
||||
- [Fail-fast workflow runs with failed jobs](#fail-fast-workflow-runs-with-failed-jobs)
|
||||
- [Cancel all runs with named jobs](#cancel-all-runs-with-named-jobs)
|
||||
- [Development environment](#development-environment)
|
||||
- [License](#license)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
# Context and motivation
|
||||
|
||||
Cancel Workflow Runs is an action that utilizes `workflow_run` triggers in order to perform various
|
||||
run cancel operations. The idea is to save number of jobs and free them for other queued runs. It is
|
||||
particularly useful in case your projects development flow where contributors submit pull requests
|
||||
from forks. Using `workflow_run` trigger enables safe canceling of runs triggered by such pull requests.
|
||||
|
||||
In case your CI takes a lot of time and uses a lot of jobs, the action might help your project
|
||||
to reduce job usage and decrease waiting time as it detects and cancels runs that are still executed,
|
||||
but we know already they are superseded by newer runs.
|
||||
|
||||
The main purpose of this action is canceling duplicated runs for the same branch as the current run,
|
||||
effectively limiting the resource consumption of the workflow to one run per branch. In short, the action
|
||||
is useful if you want to limit jobs usage on GitHub Actions in case of the usage pattern
|
||||
when fixups/rebases are pushed in quick succession to the same branch (fast iterations on a Pull Request).
|
||||
This is achieved by `duplicates` cancel mode. The `duplicates` mode only cancels "past" runs - it does
|
||||
not take into account runs that were started after the "current" run.
|
||||
|
||||
Another use case is to cancel the `pull_request` corresponding to the `workflow_run` triggered run.
|
||||
This can happen when the triggered `workflow_run` finds that it makes no sense to proceed with
|
||||
the source run. This is achieved by `self` cancel mode.
|
||||
|
||||
There are also two supplementary cancel modes for the action. Those supplementary use cases allow for further
|
||||
optimisations - failing fast in case we detect that important job failed and canceling duplicates of the
|
||||
`workflow_run` triggered events in case they execute some heavy jobs. This is achieved by `failedJobs` and
|
||||
`namedJobs` cancel modes.
|
||||
|
||||
Note that `namedjobs` cancel mode is solely for the purpose of bypassing current limitations
|
||||
of GitHub Actions. Currently, there is no way to retrieve connection between triggering and triggered
|
||||
workflow in case of `workflow_run`, as well as retrieving repository and branch of the triggering
|
||||
workflow. The action uses workaround - it requires designing workflows in the way that they pass necessary
|
||||
information via carefully crafted job names. The job names are accessible via GitHub API, and they can be
|
||||
resolved during execution of the workflow using information about the linked workflow available
|
||||
at the workflow runtime. Hopefully this information will soon be available in GitHub Actions allowing
|
||||
removal of `namedJobs` cancel mode and simplifying the examples and workflows using the Action.
|
||||
|
||||
Another feature of the Action is to notify the PRs linked to the workflows. Normally when workflows
|
||||
get cancelled there is no information why it happens, but this action can add an explanatory comment
|
||||
to the PR if the PR gets cancelled. This is controlled by `notifyPRCancel` boolean input.
|
||||
|
||||
Also, for the `workflow_run` events, GitHub does not yet provide an easy interface linking the original
|
||||
Pull Request and the Workflow_run. You can ask the CancelWorkflowRun action to add extra comment to the PR
|
||||
adding explanatory message followed by a link to the `workflow_run` run.
|
||||
|
||||
You can take a look at the description provided in the
|
||||
[Apache Airflow's CI](https://github.com/apache/airflow/blob/master/CI.rst) and
|
||||
[the workflows](https://github.com/apache/airflow/blob/master/.github/workflows)
|
||||
|
||||
Started from simple cancel workflow developed by [n1hility](https://github.com/n1hility)
|
||||
that implemented cancelling previous runs before introducing `workflow_run` type of event by
|
||||
GitHub Actions: [Cancel](https://github.com/n1hility/cancel-previous-runs).
|
||||
|
||||
# Usage
|
||||
|
||||
If you want a comprehensive solution, you should use the action as follows:
|
||||
|
||||
1) In case your project does not use public forks, it's enough to have one action with the `duplicates`
|
||||
cancel mode in the workflow. This is a rare thing in open-source projects (usually those projects
|
||||
accept pull requests from forks) and more often applicable for private repositories.
|
||||
|
||||
2) If you use forks, you should create a separate "Cancelling" `workflow_run` triggered workflow.
|
||||
The `workflow_run` should be responsible for all canceling actions. The examples below show
|
||||
the possible ways the action can be utilized.
|
||||
|
||||
# Inputs and outputs
|
||||
|
||||
## Inputs
|
||||
|
||||
| Input | Required | Default | Comment |
|
||||
|--------------------------|----------|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `token` | yes | | The github token passed from `${{ secrets.GITHUB_TOKEN }}` |
|
||||
| `cancelMode` | no | `duplicates` | The mode to run cancel on. The available options are `duplicates`, `self`, `failedJobs`, `namedJobs` |
|
||||
| `cancelFutureDuplicates` | no | true | In case of duplicate canceling, cancel also future duplicates leaving only the "freshest" running job and not all the future jobs. By default it is set to true. |
|
||||
| `sourceRunId` | no | | Useful only in `workflow_run` triggered events. It should be set to the id of the workflow triggering the run `${{ github.event.workflow_run.id }}` in case cancel operation should cancel the source workflow. |
|
||||
| `notifyPRCancel` | no | | Boolean. If set to true, it notifies the cancelled PRs with a comment containing reason why they are being cancelled. |
|
||||
| `notifyPRCancelMessage` | no | | Optional cancel message to use instead of the default one when notifyPRCancel is true. It is only used in 'self' cancelling mode. |
|
||||
| `notifyPRMessageStart` | no | | Only for workflow_run events triggered by the PRs. If not empty, it notifies those PRs with the message specified at the start of the workflow - adding the link to the triggered workflow_run. |
|
||||
| `jobNameRegexps` | no | | An array of job name regexps. Only runs containing any job name matching any of of the regexp in this array are considered for cancelling in `failedJobs` and `namedJobs` and `allDuplicateNamedJobs` modes. |
|
||||
| `skipEventTypes` | no | | Array of event names that should be skipped when cancelling (JSON-encoded string). This might be used in order to skip direct pushes or scheduled events. |
|
||||
| `selfPreservation` | no | true | Do not cancel self. |
|
||||
| `workflowFileName` | no | | Name of the workflow file. It can be used if you want to cancel a different workflow than yours. |
|
||||
|
||||
|
||||
The job cancel modes work as follows:
|
||||
|
||||
| Cancel Mode | No `sourceRunId` specified | The `sourceRunId` set to `${{ github.event.workflow_run.id }}` |
|
||||
|--------------------------|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
|
||||
| `duplicates` | Cancels duplicate runs from the same repo/branch as current run. | Cancels duplicate runs for the same repo/branch as the source run. |
|
||||
| `allDuplicates` | Cancels duplicate runs from all running workflows. | Cancels duplicate runs from all running workflows. |
|
||||
| `self` | Cancels self run. | Cancel the `sourceRunId` run. |
|
||||
| `failedJobs` | Cancels all runs of own workflow that have matching jobs that failed. | Cancels all runs of the `sourceRunId` workflow that have matching jobs that failed. |
|
||||
| `namedJobs` | Cancels all runs of own workflow that have matching jobs. | Cancels all runs of the `sourceRunId` workflow that have matching jobs. |
|
||||
| `allDuplicatedNamedJobs` | Cancels all duplicate runs of own workflow that share matching jobs pattern. | Cancels all runs of the `sourceRunId` workflow that share matching job pattern. |
|
||||
|
||||
|
||||
## Outputs
|
||||
|
||||
| Output | No `sourceRunId` specified | The `sourceRunId` set to `${{ github.event.workflow_run.id }}` |
|
||||
|---------------------|---------------------------------------------------------|------------------------------------------------------------------------------------------------------|
|
||||
| `sourceHeadRepo` | Current repository. Format: `owner/repo` | Repository of the run that triggered this `workflow_run`. Format: `owner/repo` |
|
||||
| `sourceHeadBranch` | Current branch. | Branch of the run that triggered this `workflow_run`. Might be forked repo, if it is a pull_request. |
|
||||
| `sourceHeadSha` | Current commit SHA: `{{ github.sha }}` | Commit sha of the run that triggered this `workflow_run`. |
|
||||
| `mergeCommitSha` | Merge commit SHA if PR-triggered event. | Merge commit SHA if PR-triggered event. |
|
||||
| `targetCommitSha` | Target commit SHA (merge if present, otherwise source). | Target commit SHA (merge if present, otherwise source). |
|
||||
| `pullRequestNumber` | Number of the associated Pull Request (if PR triggered) | Number of the associated Pull Request (if PR triggered) |
|
||||
| `sourceEvent` | Current event: ``${{ github.event }}`` | Event of the run that triggered this `workflow_run` |
|
||||
| `cancelledRuns` | JSON-stringified array of cancelled run ids. | JSON-stringified array of cancelled run ids. |
|
||||
|
||||
## Most often used canceling example
|
||||
|
||||
The most common canceling example is that you want to cancel all duplicates appearing in your build queue.
|
||||
As of 4.1 version of the Action this can be realised by single workflow run that can cancel all duplicates
|
||||
for all running workflows. It is resistant to temporary queues - as it can cancel also the future, queued
|
||||
workflows that have duplicated, fresher (also queued workflows and this is recommended for everyone.
|
||||
|
||||
The below example is a "workflow_run" type of event. The workflow_run event always has "write" access that allows
|
||||
it to cancel other workflows - even if they are coming from pull request.
|
||||
|
||||
```yaml
|
||||
name: Cancelling Duplicates
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
jobs:
|
||||
cancel-duplicate-workflow-runs:
|
||||
name: "Cancel duplicate workflow runs"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Cancel duplicate workflow runs"
|
||||
with:
|
||||
cancelMode: allDuplicates
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
sourceRunId: ${{ github.event.workflow_run.id }}
|
||||
```
|
||||
|
||||
|
||||
# More Examples
|
||||
|
||||
Note that you can combine the steps below in several steps of the same job. The examples here are showing
|
||||
one step per case for clarity.
|
||||
|
||||
## Repositories that use Pull Requests from forks
|
||||
|
||||
Note that in case you implement separate "Canceling workflow", following the examples below, you do not
|
||||
need to add cancel action to any other workflow. All Cancel actions should be configured in this
|
||||
Cancelling workflow.
|
||||
|
||||
Those examples show how you should configure your project with separate `Cancelling` workflow which is
|
||||
triggered via `workflow_run` trigger.
|
||||
|
||||
In the example belows we use the following names:
|
||||
|
||||
* **triggered workflow** - the "Cancelling" workflow - separate workflow triggered by the `workflow_run`
|
||||
event. Its main job is to manage cancelling of other workflows.
|
||||
|
||||
* **triggered run** - the run of the *triggered workflow*. It is triggered by another ("source") run. In the
|
||||
examples below, this run is in "Cancelling" workflow. It always runs in the context of the main repository,
|
||||
even if it is triggered by a Pull Request from a fork.
|
||||
|
||||
* **source workflow** - the "main" workflow - main workflow that performs CI actions. In the examples below,
|
||||
this is a "CI" workflow.
|
||||
|
||||
* **source run** - the run of the *source workflow*. It is the run that triggers the *triggered run*,
|
||||
and it runs most of the CI tasks. In the examples below those are the runs of "CI" workflow.
|
||||
|
||||
### Cancel duplicate runs for the source workflow
|
||||
|
||||
Cancel past, duplicate *source runs* of the *source workflow*. This workflow cancels
|
||||
duplicated, past runs (for the same branch/repo that those associated with the *source run* that triggered
|
||||
the *triggered run*). You have to create it with the `sourceRunId` input with the value of
|
||||
`${{ github.event.workflow_run.id }}` in order to work correctly.
|
||||
|
||||
In the example below, the `Canceling` run cancels past, duplicate runs from the `CI` with the same
|
||||
branch/repo as the *source run* which triggered it - effectively what's left after the action is only
|
||||
the latest *source run* of "CI" from the same branch/repo.
|
||||
|
||||
This works for all kind of triggering events (`push`, `pull_request`, `schedule` ...). It works for
|
||||
events triggered in the local repository, as well as triggered from the forks, so you do not need
|
||||
to set up any extra actions to cancel internal Pushes/Pull Requests.
|
||||
|
||||
You can also choose to skip certain types of events (for example `push` and `schedule` if you want your
|
||||
jobs to run to full completion for this kind of events.
|
||||
|
||||
```yaml
|
||||
name: Cancelling
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
jobs:
|
||||
cancel-duplicate-workflow-runs:
|
||||
name: "Cancel duplicate workflow runs"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Cancel duplicate workflow runs"
|
||||
with:
|
||||
cancelMode: duplicates
|
||||
cancelFutureDuplicates: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
sourceRunId: ${{ github.event.workflow_run.id }}
|
||||
notifyPRCancel: true
|
||||
skipEventTypes: '["push", "schedule"]'
|
||||
```
|
||||
|
||||
Note that `duplicate` cancel mode cannot be used for `workflow_run` type of event without `sourceId` input.
|
||||
The action will throw an error in this case because it is not really doing what you would expect it to do.
|
||||
All `workflow_run` events have the same branch and repository (they are all run in the context of the
|
||||
target branch and repository) no matter what is the source of the event, therefore cancelling duplicates
|
||||
would cancel all the runs originated from all the branches and this is not really expected.
|
||||
|
||||
If you want to cancel duplicate runs of the *triggered workflow*, you need to utilize the
|
||||
`namedJob` cancel mode as described in the next chapter
|
||||
[Cancel duplicate jobs for triggered workflow](#cancel-duplicate-jobs-for-triggered-workflow) using outputs
|
||||
from the duplicate canceling for *source workflow* run above.
|
||||
|
||||
Hopefully we will have an easier way of doing that in the future once GitHub Actions API will allow
|
||||
searching for source runs (it's not available at this moment).
|
||||
|
||||
### Cancel duplicate jobs for triggered workflow
|
||||
|
||||
Cancels all past runs from the *triggered workflow* if any of the job names match any of the regular
|
||||
expressions. Note that it does not take into account the branch of the runs. It will cancel all runs
|
||||
with matching job names no mater the branch/repo.
|
||||
|
||||
This example is much more complex. It shows the actual case on how you can design your jobs using with
|
||||
using outputs from the cancel duplicate action and running subsequent cancel with namedJobs cancel
|
||||
mode. Hopefully in the future better solution will come from Github Actions and such cancel flow will
|
||||
be natively supported by GitHub Actions but as of now (August 2020) such native support is not
|
||||
possible. The example below uses specially named jobs that contain Branch, Repo and Run id of
|
||||
the triggering run. The cancel operation finds the runs that have jobs with the names following
|
||||
pattern containing the same repo and branch as the source run branch and repo in order to cancel duplicates.
|
||||
|
||||
In the case below, this workflow will first cancel the "CI" duplicate runs from the same branch and then
|
||||
it will cancel the runs from the Cancelling workflow which contain the same repo and branch as
|
||||
in job names, effectively implementing cancelling duplicate runs for the Cancelling workflow.
|
||||
|
||||
|
||||
```yaml
|
||||
name: Cancelling
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
jobs:
|
||||
cancel-duplicate-ci-runs:
|
||||
name: "Cancel duplicate CI runs"
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
sourceHeadRepo: ${{ steps.cancel.outputs.sourceHeadRepo }}
|
||||
sourceHeadBranch: ${{ steps.cancel.outputs.sourceHeadBranch }}
|
||||
sourceHeadSha: ${{ steps.cancel.outputs.sourceHeadSha }}
|
||||
sourceEvent: ${{ steps.cancel.outputs.sourceEvent }}
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
id: cancel
|
||||
name: "Cancel duplicate CI runs"
|
||||
with:
|
||||
cancelMode: duplicates
|
||||
cancelFutureDuplicates: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
notifyPRCancel: true
|
||||
notifyPRMessageStart: |
|
||||
Note! The Docker Images for the build are prepared in a separate workflow,
|
||||
that you will not see in the list of checks.
|
||||
|
||||
You can checks the status of those images in:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Cancel duplicate Cancelling runs"
|
||||
with:
|
||||
cancelMode: namedJobs
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
notifyPRCancel: true
|
||||
jobNameRegexps: >
|
||||
["Build info
|
||||
repo: ${{ steps.cancel.outputs.sourceHeadRepo }}
|
||||
branch: ${{ steps.cancel.outputs.sourceHeadBranch }}.*"]
|
||||
|
||||
build-info:
|
||||
name: >
|
||||
Build info
|
||||
repo: ${{ needs.cancel-workflow-runs.outputs.sourceHeadRepo }}
|
||||
branch: ${{ needs.cancel-workflow-runs.outputs.sourceHeadBranch }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: [cancel-duplicate-ci-runs]
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
steps:
|
||||
- name: >
|
||||
[${{ needs.cancel-workflow-runs.outputs.sourceEvent }}] will checkout
|
||||
Run id: ${{ github.run_id }}
|
||||
Source Run id: ${{ github.event.workflow_run.id }}
|
||||
Sha: ${{ needs.cancel-workflow-runs.outputs.sourceHeadSha }}
|
||||
Repo: ${{ needs.cancel-workflow-runs.outputs.sourceHeadRepo }}
|
||||
Branch: ${{ needs.cancel-workflow-runs.outputs.sourceHeadBranch }}
|
||||
run: |
|
||||
printenv
|
||||
```
|
||||
|
||||
|
||||
### Cancel the "self" source workflow run
|
||||
|
||||
This is useful in case you decide to cancel the *source run* that triggered the *triggered run*.
|
||||
In the case below, the step cancels the `CI` workflow that triggered the `Cancelling` run.
|
||||
|
||||
```yaml
|
||||
name: Cancelling
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
cancel-self-source-workflow-run:
|
||||
name: "Cancel the self CI workflow run"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Cancel the self CI workflow run"
|
||||
uses: potiuk/cancel-workflow-runs@master
|
||||
with:
|
||||
cancelMode: self
|
||||
notifyPRCancel: true
|
||||
notifyPRCancelMessage: Cancelled because image building failed.
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
sourceRunId: ${{ github.event.workflow_run.id }}
|
||||
```
|
||||
|
||||
|
||||
### Cancel the "self" triggered workflow run
|
||||
|
||||
This is useful in case you decide to cancel the *triggered run*. The difference vs. previous case is that
|
||||
you do not specify the `sourceRunId` input.
|
||||
|
||||
In the case below - self workflow will be cancelled.
|
||||
|
||||
```yaml
|
||||
name: Cancelling
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
cancel-self-cancelling-run:
|
||||
name: "Cancel the self Canceling workflow run"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Cancel the self Cancelling workflow run"
|
||||
uses: potiuk/cancel-workflow-runs@master
|
||||
with:
|
||||
cancelMode: self
|
||||
notifyPRCancel: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
```
|
||||
|
||||
Note that if you want to cancel both - source workflow and self workflow you need to first cancel
|
||||
the source workflow, and then cancel the self one, not the other way round :).
|
||||
|
||||
### Fail-fast source workflow runs with failed jobs
|
||||
|
||||
Cancels all runs from the *source workflow* if there are failed jobs matching any of the regular expressions.
|
||||
Note that the action does not take into account the branch/repos of the runs. It will cancel all runs
|
||||
with failed jobs no mater the branch/repo.
|
||||
|
||||
In the case below, if any of `CI` workflow runs (even with different branch heads) have failed jobs
|
||||
names matching `^Static checks$` and `^Build docs^` or `^Build prod image .*` regexp - they
|
||||
will be cancelled.
|
||||
|
||||
```yaml
|
||||
name: Cancelling
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
jobs:
|
||||
fail-fast-triggered-workflow-named-jobs-runs:
|
||||
name: "Fail fast CI runs"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Fail fast CI runs"
|
||||
with:
|
||||
cancelMode: failedJobs
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
sourceRunId: ${{ github.event.workflow_run.id }}
|
||||
notifyPRCancel: true
|
||||
jobNameRegexps: '["^Static checks$", "^Build docs$", "^Build prod image.*"]'
|
||||
```
|
||||
|
||||
Note that if you not only want to cancel the failed triggering workflows but also
|
||||
the want to fail the corresponding "Cancelling" workflows, you need to implement the solution
|
||||
described in the next chapter.
|
||||
|
||||
### Fail-fast source workflow runs with failed jobs and corresponding triggered runs
|
||||
|
||||
Cancels all runs from the *source workflow* if there are failed jobs matching any of the regular expressions,
|
||||
also cancels the corresponding *triggered runs*.
|
||||
Note that the action does not take into account the branch/repos of the runs. It will cancel all runs
|
||||
with failed jobs no mater the branch/repo.
|
||||
|
||||
In the case below, if any of `CI` workflow runs (even with different branch heads) have failed jobs
|
||||
names matching `^Static checks$` and `^Build docs^` or `^Build prod image .*` regexp - they
|
||||
will be cancelled as well as the corresponding "Cancelling" workflow runs.
|
||||
|
||||
There is no native support yet in GitHub actions to do it easily, so the example below shows how this can be
|
||||
achieved using `namedJobs` and output returned from the previous `Cancel Workflow Runs` action. Hopefull
|
||||
this will be simplified when GitHub Actions introduce native support for it.
|
||||
|
||||
```yaml
|
||||
name: Cancelling
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
jobs:
|
||||
fail-fast-triggered-workflow-named-jobs-runs:
|
||||
name: "Fail fast CI runs"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Fail fast CI. Source run: ${{ github.event.workflow_run.id }}"
|
||||
id: cancel-failed
|
||||
with:
|
||||
cancelMode: failedJobs
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
sourceRunId: ${{ github.event.workflow_run.id }}
|
||||
notifyPRCancel: true
|
||||
jobNameRegexps: '["^Static checks$", "^Build docs$", "^Build prod image.*"]'
|
||||
- name: "Extract canceled failed runs"
|
||||
id: extract-cancelled-failed-runs
|
||||
if: steps.cancel-failed.outputs.cancelledRuns != '[]'
|
||||
run: |
|
||||
REGEXP="Fail fast CI. Source run: "
|
||||
SEPARATOR=""
|
||||
for run_id in $(echo "${{ steps.cancel-failed.outputs.cancelledRuns }}" | jq '.[]')
|
||||
do
|
||||
REGEXP="${REGEXP}${SEPARATOR}(${run_id})"
|
||||
SEPARATOR="|"
|
||||
done
|
||||
echo "::set-output name=matching-regexp::${REGEXP}"
|
||||
- name: "Cancel triggered 'Cancelling' runs for the cancelled failed runs"
|
||||
if: steps.cancel-failed.outputs.cancelledRuns != '[]'
|
||||
uses: potiuk/cancel-workflow-runs@master
|
||||
with:
|
||||
cancelMode: namedJobs
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
notifyPRCancel: true
|
||||
jobNameRegexps: ${{ steps.extract-cancelled-failed.runs.matching-regexp }}
|
||||
|
||||
```
|
||||
|
||||
Note that if you not only want to cancel the failed triggering workflows but also
|
||||
the want to fail the corresponding "Cancelling" workflows, you need to implement the solution
|
||||
described in the next chapter.
|
||||
|
||||
### Fail-fast for triggered workflow runs with failed jobs
|
||||
|
||||
Cancels all runs from the *triggered workflow* if there are failed jobs matching any of the regular
|
||||
expressions. Note that it does not take into account the branch/repos of the runs. It will cancel all runs
|
||||
with failed jobs no mater the branch/repo.
|
||||
|
||||
In the case below, if any of `Cancelling` workflow runs (even with different branch heads) have failed jobs
|
||||
names matching `^Static checks$` and `^Build docs^` or `^Build prod image .*` regexp - they
|
||||
will be cancelled.
|
||||
|
||||
```yaml
|
||||
name: Cancelling
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
jobs:
|
||||
fail-fast-triggered-workflow-named-jobs-runs:
|
||||
name: "Fail fast Canceling runs"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Fail fast Canceling runs"
|
||||
with:
|
||||
cancelMode: failedJobs
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
jobNameRegexps: '["^Static checks$", "^Build docs$", "^Build prod image.*"]'
|
||||
```
|
||||
|
||||
### Cancel another workflow run
|
||||
|
||||
This is useful in case you decide to cancel the *source run* that triggered the *triggered run*.
|
||||
In the case below, the step cancels the `CI` workflow that triggered the `Cancelling` run.
|
||||
|
||||
```yaml
|
||||
name: Cancelling
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
cancel-other-workflow-run:
|
||||
name: "Cancel the self CI workflow run"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Cancel the self CI workflow run"
|
||||
uses: potiuk/cancel-workflow-runs@master
|
||||
with:
|
||||
cancelMode: duplicates
|
||||
cancelFutureDuplicates: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
workflowFileName: other_workflow.yml
|
||||
```
|
||||
|
||||
### Cancel all duplicates for named jobs
|
||||
|
||||
Cancels all duplicated runs for all jobs that match specified regular expression.
|
||||
Note that it does not take into account the branch of the runs. It will cancel all duplicates with
|
||||
the same match for jobs, no matter what branch originated it.
|
||||
|
||||
This is useful in case of job names generated dynamically.
|
||||
|
||||
In the case below, for all the runs that have job names generated containing Branch/Repo/Event combination
|
||||
that have the same match, the duplicates will get cancelled leaving only the most recent run for each exact
|
||||
match.
|
||||
|
||||
Note that the match must be identical. If there are two jobs that have a different Branch
|
||||
they will both match the same pattern, but they are not considered duplicates.
|
||||
|
||||
Also, this is one of the jobs It has also self-preservation turned off.
|
||||
This means that in case the job determines that it is itself a duplicate it will cancel itself. That's
|
||||
why checking for duplicates of self-workflow should be the last step in the cancelling process.
|
||||
|
||||
|
||||
```yaml
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
jobs:
|
||||
cancel-self-failed-runs:
|
||||
name: "Cancel the self workflow run"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Cancel past CI runs"
|
||||
with:
|
||||
cancelMode: allDuplicatedNamedJobs
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
jobNameRegexps: '["Branch: .* Repo: .* Event: .* "]'
|
||||
selfPreservation: false
|
||||
notifyPRCancel: true
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Repositories that do not use Pull Requests from forks
|
||||
|
||||
Note that examples in this chapter only work if you do not have Pull Requests coming from forks (so for
|
||||
example if you only work in a private repository). When those action runs within the usual `pull_request`
|
||||
triggered runs coming from a fork, they have not enough permissions to cancel running workflows.
|
||||
|
||||
If you want to cancel `pull_requests` from forks, you need to use `workflow_run` triggered runs - see the
|
||||
[Repositories that use Pull Requests from fork](#repositories-that-use-pull-requests-from-forks) chapter.
|
||||
|
||||
Note that in case you configure the separate `workflow_run` Cancelling workflow, there is no need to add
|
||||
the action to the "source" workflows. The "Canceling workflow" pattern handles well not only Pull Requests
|
||||
from the forks, but also all other cases - including cancelling Pull Requests for the same repository
|
||||
and canceling scheduled runs.
|
||||
|
||||
### Cancel duplicate runs for "self" workflow
|
||||
|
||||
Cancels past runs for the same workflow (with the same branch).
|
||||
|
||||
In the case below, any of the direct "push" events will cancel all past runs for the same branch as the
|
||||
one being pushed. However, it can be configured for "pull_request" (in the same repository) or "schedule"
|
||||
type of events as well. It will also notify the PR with the comment containining why it has been
|
||||
cancelled.
|
||||
|
||||
```yaml
|
||||
name: CI
|
||||
on: push
|
||||
jobs:
|
||||
cancel-duplicate-workflow-runs:
|
||||
name: "Cancel duplicate workflow runs"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Cancel duplicate workflow runs"
|
||||
with:
|
||||
cancelMode: duplicates
|
||||
cancelFutureDuplicates: true
|
||||
notifyPRCancel: true
|
||||
```
|
||||
|
||||
### Cancel "self" workflow run
|
||||
|
||||
This is useful in case you decide to cancel "self" run.
|
||||
|
||||
In the case below - own workflow will be cancelled immediately. It can be configured for "push",
|
||||
"pull_request" (from the same repository) or "schedule" type of events.
|
||||
|
||||
```yaml
|
||||
name: CI
|
||||
on: push
|
||||
jobs:
|
||||
cancel-self-run:
|
||||
name: "Cancel the self workflow run"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Cancel the self workflow run"
|
||||
uses: potiuk/cancel-workflow-runs@master
|
||||
with:
|
||||
cancelMode: self
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
notifyPRCancel: true
|
||||
```
|
||||
|
||||
### Fail-fast workflow runs with failed jobs
|
||||
|
||||
Cancels all runs (including self run!) if they have failed jobs matching any of the regular expressions.
|
||||
Note that it does not take into account the branch of the running jobs. It will cancel all runs with failed
|
||||
jobs, no matter what branch originated it.
|
||||
|
||||
In the case below, if any of the own workflow runs have failed jobs matching any of the
|
||||
`^Static checks$` and `^Build docs^` or `^Build prod image .*` regexp, this workflow will cancel the runs.
|
||||
|
||||
```yaml
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
cancel-self-failed-runs:
|
||||
name: "Cancel failed runs"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Cancel failed runs"
|
||||
with:
|
||||
cancelMode: failedJobs
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
jobNameRegexps: '["^Static checks$", "^Build docs$", "^Build prod image.*"]'
|
||||
notifyPRCancel: true
|
||||
```
|
||||
|
||||
### Cancel all runs with named jobs
|
||||
|
||||
Cancels all runs (including self run!) if any of the job names match any of the regular
|
||||
expressions. Note that it does not take into account the branch of the runs. It will cancel all runs with
|
||||
matching jobs, no matter what branch originated it.
|
||||
|
||||
This is useful in case of job names generated dynamically.
|
||||
|
||||
In the case below, if any of the "self" workflow runs has job names that matches any of the
|
||||
`^Static checks$` and `^Build docs^` or `^Build prod image .*` regexp, this workflow will cancel the runs.
|
||||
|
||||
```yaml
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: ['CI']
|
||||
types: ['requested']
|
||||
|
||||
jobs:
|
||||
cancel-self-failed-runs:
|
||||
name: "Cancel the self workflow run"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: potiuk/cancel-workflow-runs@master
|
||||
name: "Cancel past CI runs"
|
||||
with:
|
||||
cancelMode: namedJobs
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
jobNameRegexps: '["^Static checks$", "^Build docs$", "^Build prod image.*"]'
|
||||
notifyPRCancel: true
|
||||
```
|
||||
|
||||
|
||||
## Development environment
|
||||
|
||||
It is highly recommended tu use [pre commit](https://pre-commit.com). The pre-commits
|
||||
installed via pre-commit tool handle automatically linting (including automated fixes) as well
|
||||
as building and packaging Javascript index.js from the main.ts Typescript code, so you do not have
|
||||
to run it yourself.
|
||||
|
||||
## License
|
||||
[MIT License](LICENSE) covers the scripts and documentation in this project.
|
||||
5
.github/actions/cancel-workflow-runs/__tests__/main.test.ts
vendored
Normal file
5
.github/actions/cancel-workflow-runs/__tests__/main.test.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as process from 'process'
|
||||
import * as cp from 'child_process'
|
||||
import * as path from 'path'
|
||||
|
||||
test('no op', () => {})
|
||||
74
.github/actions/cancel-workflow-runs/action.yml
vendored
Normal file
74
.github/actions/cancel-workflow-runs/action.yml
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
name: 'Cancel Workflow Runs'
|
||||
description: 'Cancel Workflow Runs - duplicates, failed, named in order to limit job usage,'
|
||||
author: 'potiuk'
|
||||
inputs:
|
||||
token:
|
||||
description: The GITHUB_TOKEN secret of the repository
|
||||
required: true
|
||||
sourceRunId:
|
||||
description: |
|
||||
The run that triggered the action. It should be set to
|
||||
`$\{\{ github.event.workflow_run.id` variable \}\}` if used in `workflow_run` triggered run if
|
||||
you want to act on source workflow rather than the triggered run.
|
||||
required: false
|
||||
notifyPRCancel:
|
||||
description: |
|
||||
Boolean. If set to true, it notifies the cancelled PRs with a comment containing reason why
|
||||
they are being cancelled.
|
||||
required: false
|
||||
notifyPRCancelMessage:
|
||||
description: |
|
||||
Optional cancel message to use instead of the default one when notifyPRCancel is true. Only
|
||||
used in 'self' cancel mode.
|
||||
required: false
|
||||
notifyPRMessageStart:
|
||||
description: |
|
||||
Only for workflow_run events triggered by the PRs. If not empty, it notifies those PRs with the
|
||||
message specified at the start of the workflow - adding the link to the triggered workflow_run.
|
||||
required: false
|
||||
cancelMode:
|
||||
description: |
|
||||
The mode of cancel. One of:
|
||||
* `duplicates` - cancels duplicate runs from the same repo/branch as local run or
|
||||
sourceId workflow. This is the default mode when cancelMode is not specified.
|
||||
* `allDuplicates` - cancels duplicate runs from all workflows. It is more aggressive version of
|
||||
duplicate canceling - as it cancels all duplicates. It is helpful in case
|
||||
of long queues of builds - as it is enough that one of the workflows that
|
||||
cancel duplicates is executed, it can effectively clean-up the queue in this
|
||||
case for all the future, queued runs.
|
||||
* `self` - cancels self run - either own run if sourceRunId is not set, or
|
||||
the source run that triggered the `workflow_run'
|
||||
* `failedJobs` - cancels all runs that failed in jobs matching one of the regexps
|
||||
* `namedJobs` - cancels runs where names of some jobs match some of regexps
|
||||
required: false
|
||||
cancelFutureDuplicates:
|
||||
description: |
|
||||
In case of duplicate canceling, cancel also future duplicates leaving only the "freshest" running
|
||||
job and not all the future jobs. By default it is set to true.
|
||||
required: false
|
||||
selfPreservation:
|
||||
description: |
|
||||
Do not cancel your own run. There are cases where selfPreservation should be disabled but it is
|
||||
enabled by default. You can disable it by setting 'false' as value.
|
||||
required: false
|
||||
jobNameRegexps:
|
||||
description: |
|
||||
Array of job name regexps (JSON-encoded string). Used by `failedJobs` and `namedJobs` cancel modes
|
||||
to match job names of workflow runs.
|
||||
required: false
|
||||
skipEventTypes:
|
||||
description: |
|
||||
Array of event names that should be skipped when cancelling (JSON-encoded string). This might be used
|
||||
in order to skip direct pushes or scheduled events.
|
||||
required: false
|
||||
workflowFileName:
|
||||
description: |
|
||||
Name of the workflow file. It can be used if you want to cancel a different workflow than yours.
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: 'node12'
|
||||
main: 'dist/index.js'
|
||||
branding:
|
||||
icon: 'play'
|
||||
color: 'blue'
|
||||
11
.github/actions/cancel-workflow-runs/jest.config.js
vendored
Normal file
11
.github/actions/cancel-workflow-runs/jest.config.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
clearMocks: true,
|
||||
moduleFileExtensions: ['js', 'ts'],
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/*.test.ts'],
|
||||
testRunner: 'jest-circus/runner',
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest'
|
||||
},
|
||||
verbose: true
|
||||
}
|
||||
10921
.github/actions/cancel-workflow-runs/package-lock.json
generated
vendored
Normal file
10921
.github/actions/cancel-workflow-runs/package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
48
.github/actions/cancel-workflow-runs/package.json
vendored
Normal file
48
.github/actions/cancel-workflow-runs/package.json
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "typescript-action",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"description": "TypeScript template action",
|
||||
"main": "lib/main.js",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"format": "prettier --write **/*.ts",
|
||||
"format-check": "prettier --check **/*.ts",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"pack": "ncc build",
|
||||
"test": "jest",
|
||||
"all": "npm run build && npm run format && npm run lint && npm run pack && npm test",
|
||||
"release": "ncc build -o dist src/main.ts"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/actions/typescript-action.git"
|
||||
},
|
||||
"keywords": [
|
||||
"actions",
|
||||
"node",
|
||||
"setup"
|
||||
],
|
||||
"author": "YourNameOrOrganization",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.2.2",
|
||||
"@actions/github": "^2.1.0",
|
||||
"jstreemap": "^1.28.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^24.0.23",
|
||||
"@types/node": "^12.7.12",
|
||||
"@typescript-eslint/parser": "^2.8.0",
|
||||
"@zeit/ncc": "^0.20.5",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-github": "^2.0.0",
|
||||
"eslint-plugin-jest": "^22.21.0",
|
||||
"jest": "^26.2.2",
|
||||
"jest-circus": "^26.2.2",
|
||||
"js-yaml": "^3.13.1",
|
||||
"prettier": "^1.19.1",
|
||||
"ts-jest": "^26.1.4",
|
||||
"typescript": "^3.6.4"
|
||||
}
|
||||
}
|
||||
1519
.github/actions/cancel-workflow-runs/src/main.ts
vendored
Normal file
1519
.github/actions/cancel-workflow-runs/src/main.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12
.github/actions/cancel-workflow-runs/tsconfig.json
vendored
Normal file
12
.github/actions/cancel-workflow-runs/tsconfig.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
||||
"outDir": "./lib", /* Redirect output structure to the directory. */
|
||||
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||
"strict": true, /* Enable all strict type-checking options. */
|
||||
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||
},
|
||||
"exclude": ["node_modules", "**/*.test.ts"]
|
||||
}
|
||||
22
.github/actions/cancel-workflow-runs/yamllint-config.yml
vendored
Normal file
22
.github/actions/cancel-workflow-runs/yamllint-config.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
line-length:
|
||||
max: 110
|
||||
13
.github/actions/comment-on-pr/Dockerfile
vendored
Normal file
13
.github/actions/comment-on-pr/Dockerfile
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM ruby:2.6.0
|
||||
|
||||
LABEL "com.github.actions.name"="Comment on PR"
|
||||
LABEL "com.github.actions.description"="Leaves a comment on an open PR matching a push event."
|
||||
LABEL "com.github.actions.repository"="https://github.com/unsplash/comment-on-pr"
|
||||
LABEL "com.github.actions.maintainer"="Aaron Klaassen <aaron@unsplash.com>"
|
||||
LABEL "com.github.actions.icon"="message-square"
|
||||
LABEL "com.github.actions.color"="blue"
|
||||
|
||||
RUN gem install octokit
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
7
.github/actions/comment-on-pr/LICENSE
vendored
Normal file
7
.github/actions/comment-on-pr/LICENSE
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Copyright 2019 Unsplash Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
27
.github/actions/comment-on-pr/README.md
vendored
Normal file
27
.github/actions/comment-on-pr/README.md
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# Comment on PR via GitHub Action
|
||||
|
||||
A GitHub action to comment on the relevant open PR when a commit is pushed.
|
||||
|
||||
## Usage
|
||||
|
||||
- Requires the `GITHUB_TOKEN` secret.
|
||||
- Requires the comment's message in the `msg` parameter.
|
||||
- Supports `push` and `pull_request` event types.
|
||||
|
||||
### Sample workflow
|
||||
|
||||
```
|
||||
name: comment-on-pr example
|
||||
on: pull_request
|
||||
jobs:
|
||||
example:
|
||||
name: sample comment
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: comment PR
|
||||
uses: unsplash/comment-on-pr@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
msg: "Check out this message!"
|
||||
```
|
||||
15
.github/actions/comment-on-pr/action.yml
vendored
Normal file
15
.github/actions/comment-on-pr/action.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Comment on PR
|
||||
author: Aaron Klaassen <aaron@unsplash.com>
|
||||
description: Leaves a comment on an open PR matching a push event.
|
||||
branding:
|
||||
icon: 'message-square'
|
||||
color: 'blue'
|
||||
inputs:
|
||||
msg:
|
||||
description: Comment's message
|
||||
required: true
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
args:
|
||||
- ${{ inputs.msg }}
|
||||
47
.github/actions/comment-on-pr/entrypoint.sh
vendored
Executable file
47
.github/actions/comment-on-pr/entrypoint.sh
vendored
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require "json"
|
||||
require "octokit"
|
||||
|
||||
json = File.read(ENV.fetch("GITHUB_EVENT_PATH"))
|
||||
event = JSON.parse(json)
|
||||
|
||||
github = Octokit::Client.new(access_token: ENV["GITHUB_TOKEN"])
|
||||
|
||||
if !ENV["GITHUB_TOKEN"]
|
||||
puts "Missing GITHUB_TOKEN"
|
||||
exit(1)
|
||||
end
|
||||
|
||||
if ARGV.empty?
|
||||
puts "Missing message argument."
|
||||
exit(1)
|
||||
end
|
||||
|
||||
repo = event["repository"]["full_name"]
|
||||
|
||||
if ENV.fetch("GITHUB_EVENT_NAME") == "pull_request"
|
||||
pr_number = event["number"]
|
||||
else
|
||||
pulls = github.pull_requests(repo, state: "open")
|
||||
|
||||
push_head = event["after"]
|
||||
pr = pulls.find { |pr| pr["head"]["sha"] == push_head }
|
||||
|
||||
if !pr
|
||||
puts "Couldn't find an open pull request for branch with head at #{push_head}."
|
||||
exit(1)
|
||||
end
|
||||
pr_number = pr["number"]
|
||||
end
|
||||
message = ARGV.join(' ')
|
||||
|
||||
coms = github.issue_comments(repo, pr_number)
|
||||
duplicate = coms.find { |c| c["user"]["login"] == "github-actions[bot]" && c["body"] == message }
|
||||
|
||||
if duplicate
|
||||
puts "The PR already contains a database change notification"
|
||||
exit(0)
|
||||
end
|
||||
|
||||
github.add_comment(repo, pr_number, message)
|
||||
55
.github/actions/file-changes-action/.codecov.yml
vendored
Normal file
55
.github/actions/file-changes-action/.codecov.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
codecov:
|
||||
notify:
|
||||
require_ci_to_pass: yes
|
||||
|
||||
coverage:
|
||||
notify:
|
||||
slack:
|
||||
default:
|
||||
threshold: 1%
|
||||
message: "Coverage {{changed}} for {{owner}}/{{repo}}" # customize the message
|
||||
attachments: "sunburst, diff"
|
||||
only_pulls: false
|
||||
status:
|
||||
src:
|
||||
target: auto
|
||||
threshold: 7%
|
||||
base: auto
|
||||
if_ci_failed: success
|
||||
paths:
|
||||
- src/
|
||||
- '!src/tests/'
|
||||
flags:
|
||||
- src
|
||||
test:
|
||||
target: 60%
|
||||
threshold: 10%
|
||||
if_ci_failed: error
|
||||
base: auto
|
||||
paths:
|
||||
- src/tests/
|
||||
flags:
|
||||
- test
|
||||
precision: 2
|
||||
round: down
|
||||
range: "70...100"
|
||||
flags:
|
||||
src:
|
||||
paths:
|
||||
- src
|
||||
- '!src/tests/'
|
||||
test:
|
||||
paths:
|
||||
- src/tests/
|
||||
parsers:
|
||||
gcov:
|
||||
branch_detection:
|
||||
conditional: yes
|
||||
loop: yes
|
||||
method: no
|
||||
macro: no
|
||||
|
||||
comment:
|
||||
layout: "reach,diff,flags,tree"
|
||||
behavior: default
|
||||
require_changes: no
|
||||
73
.github/actions/file-changes-action/.eslintrc.yml
vendored
Normal file
73
.github/actions/file-changes-action/.eslintrc.yml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
plugins:
|
||||
- '@typescript-eslint'
|
||||
- eslint-comments
|
||||
- promise
|
||||
- unicorn
|
||||
extends:
|
||||
- airbnb-typescript
|
||||
- plugin:@typescript-eslint/recommended
|
||||
- plugin:eslint-comments/recommended
|
||||
- plugin:promise/recommended
|
||||
- plugin:unicorn/recommended
|
||||
- prettier
|
||||
- prettier/@typescript-eslint
|
||||
settings:
|
||||
import/parsers:
|
||||
'@typescript-eslint/parser':
|
||||
- .ts
|
||||
- .tsx
|
||||
- .js
|
||||
import/resolver:
|
||||
typescript: {}
|
||||
rules:
|
||||
unicorn/filename-case: off
|
||||
react/static-property-placement: 0
|
||||
no-prototype-builtins: 0
|
||||
import/prefer-default-export: 0
|
||||
'@typescript-eslint/no-explicit-any': 0
|
||||
import/no-default-export: error
|
||||
no-use-before-define:
|
||||
- error
|
||||
-
|
||||
functions: false
|
||||
classes: true
|
||||
variables: true
|
||||
'@typescript-eslint/explicit-function-return-type':
|
||||
- error
|
||||
-
|
||||
allowExpressions: true
|
||||
allowTypedFunctionExpressions: true
|
||||
'@typescript-eslint/no-use-before-define':
|
||||
- error
|
||||
-
|
||||
functions: false
|
||||
classes: true
|
||||
variables: true
|
||||
typedefs: true
|
||||
'@typescript-eslint/indent':
|
||||
- 2
|
||||
- 2
|
||||
unicorn/prevent-abbreviations: 0
|
||||
import/no-extraneous-dependencies: [error, {devDependencies: ['**/*.ts']}]
|
||||
parser: "@typescript-eslint/parser"
|
||||
parserOptions:
|
||||
project: ./tsconfig.json
|
||||
ecmaVersion: 2019
|
||||
sourceType: module
|
||||
env:
|
||||
node: true
|
||||
browser: true
|
||||
ignorePatterns:
|
||||
- '*.js'
|
||||
overrides:
|
||||
- files: ['src/tests/**/*']
|
||||
plugins:
|
||||
- jest
|
||||
extends:
|
||||
- plugin:jest/recommended
|
||||
rules:
|
||||
global-require: 0
|
||||
'@typescript-eslint/no-var-requires': 0
|
||||
no-console: 0
|
||||
'@typescript-eslint/no-unused-vars': 0
|
||||
'@typescript-eslint/no-throw-literal': 0
|
||||
3
.github/actions/file-changes-action/.github/CONTRIBUTING.md
vendored
Normal file
3
.github/actions/file-changes-action/.github/CONTRIBUTING.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Contributing
|
||||
|
||||
The repository is released under the MIT license, and follows a standard Github development process, using Github tracker for issues and merging pull requests into master.
|
||||
17
.github/actions/file-changes-action/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
17
.github/actions/file-changes-action/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**Workflow**
|
||||
If applicable, provide a workflow file to help explain your problem.
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
17
.github/actions/file-changes-action/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
17
.github/actions/file-changes-action/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
14
.github/actions/file-changes-action/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
14
.github/actions/file-changes-action/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
### Type of Change
|
||||
<!-- What type of change does your code introduce? -->
|
||||
- [ ] New feature
|
||||
- [ ] Bug fix
|
||||
- [ ] Documentation
|
||||
- [ ] Refactor
|
||||
- [ ] Chore
|
||||
|
||||
### Resolves
|
||||
- Fixes #[Add issue number here.]
|
||||
|
||||
### Describe Changes
|
||||
<!-- Describe your changes in detail, if applicable. -->
|
||||
_Describe what this Pull Request does_
|
||||
1
.github/actions/file-changes-action/.github/actions/integration/events/files.csv
vendored
Normal file
1
.github/actions/file-changes-action/.github/actions/integration/events/files.csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.codecov.yml,.eslintignore,.eslintrc.json,.eslintrc.yml,.github/workflows/integration.yml,.github/workflows/pr.yml,.github/workflows/push.yml,.github/workflows/readme.md,.gitignore,.prettierignore,.prettierrc.json,.prettierrc.yml,.releaserc.yml,Makefile,README.md,__tests__/main.test.ts,action.yml,dist/index.js,jest.config.js,package.json,src/ChangedFiles.ts,src/File.ts,src/FilesHelper.ts,src/GithubHelper.ts,src/InputHelper.ts,src/UtilsHelper.ts,src/main.ts,src/tests/FilesHelper.test.ts,src/tests/GithubHelper.test.ts,src/tests/InputHelper.test.ts,src/tests/UtilsHelper.test.ts,src/tests/main.test.ts,src/tests/mocks/core/index.test.ts,src/tests/mocks/core/index.ts,src/tests/mocks/env/events/issue_comment_created.json,src/tests/mocks/env/events/issue_comment_edited.json,src/tests/mocks/env/events/pull_request_opened.json,src/tests/mocks/env/events/pull_request_reopened.json,src/tests/mocks/env/events/pull_request_synchronize.json,src/tests/mocks/env/events/push.json,src/tests/mocks/env/events/push_merge.json,src/tests/mocks/env/events/schedule.json,src/tests/mocks/env/index.test.ts,src/tests/mocks/env/index.ts,src/tests/mocks/fs/index.test.ts,src/tests/mocks/fs/index.ts,src/tests/mocks/github/index.test.ts,src/tests/mocks/github/index.ts,src/tests/mocks/octokit/endpoint/merge.test.ts,src/tests/mocks/octokit/endpoint/merge.ts,src/tests/mocks/octokit/index.test.ts,src/tests/mocks/octokit/index.ts,src/tests/mocks/octokit/paginate.test.ts,src/tests/mocks/octokit/paginate.ts,src/tests/mocks/octokit/payloads.ts,src/tests/mocks/octokit/pulls/listFiles.test.ts,src/tests/mocks/octokit/pulls/listFiles.ts,src/tests/mocks/octokit/repos/compareCommits.test.ts,src/tests/mocks/octokit/repos/compareCommits.ts,src/tests/payloads.ts,src/typings/ActionError/index.d.ts,src/typings/ChangedFiles/index.d.ts,src/typings/CoreMock/index.d.ts,src/typings/FsMock/index.d.ts,src/typings/GitHubFile/index.d.ts,src/typings/GitHubMock/index.d.ts,src/typings/Inferred/index.d.ts,src/typings/Inputs/index.d.ts,src/typings/OctokitMock/index.d.ts,src/typings/TestInput/index.d.ts,tsconfig.build.json,tsconfig.json,yarn.lock
|
||||
|
75
.github/actions/file-changes-action/.github/actions/integration/events/files.json
vendored
Normal file
75
.github/actions/file-changes-action/.github/actions/integration/events/files.json
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
[
|
||||
".codecov.yml",
|
||||
".eslintignore",
|
||||
".eslintrc.json",
|
||||
".eslintrc.yml",
|
||||
".github/workflows/integration.yml",
|
||||
".github/workflows/pr.yml",
|
||||
".github/workflows/push.yml",
|
||||
".github/workflows/readme.md",
|
||||
".gitignore",
|
||||
".prettierignore",
|
||||
".prettierrc.json",
|
||||
".prettierrc.yml",
|
||||
".releaserc.yml",
|
||||
"Makefile",
|
||||
"README.md",
|
||||
"__tests__/main.test.ts",
|
||||
"action.yml",
|
||||
"dist/index.js",
|
||||
"jest.config.js",
|
||||
"package.json",
|
||||
"src/ChangedFiles.ts",
|
||||
"src/File.ts",
|
||||
"src/FilesHelper.ts",
|
||||
"src/GithubHelper.ts",
|
||||
"src/InputHelper.ts",
|
||||
"src/UtilsHelper.ts",
|
||||
"src/main.ts",
|
||||
"src/tests/FilesHelper.test.ts",
|
||||
"src/tests/GithubHelper.test.ts",
|
||||
"src/tests/InputHelper.test.ts",
|
||||
"src/tests/UtilsHelper.test.ts",
|
||||
"src/tests/main.test.ts",
|
||||
"src/tests/mocks/core/index.test.ts",
|
||||
"src/tests/mocks/core/index.ts",
|
||||
"src/tests/mocks/env/events/issue_comment_created.json",
|
||||
"src/tests/mocks/env/events/issue_comment_edited.json",
|
||||
"src/tests/mocks/env/events/pull_request_opened.json",
|
||||
"src/tests/mocks/env/events/pull_request_reopened.json",
|
||||
"src/tests/mocks/env/events/pull_request_synchronize.json",
|
||||
"src/tests/mocks/env/events/push.json",
|
||||
"src/tests/mocks/env/events/push_merge.json",
|
||||
"src/tests/mocks/env/events/schedule.json",
|
||||
"src/tests/mocks/env/index.test.ts",
|
||||
"src/tests/mocks/env/index.ts",
|
||||
"src/tests/mocks/fs/index.test.ts",
|
||||
"src/tests/mocks/fs/index.ts",
|
||||
"src/tests/mocks/github/index.test.ts",
|
||||
"src/tests/mocks/github/index.ts",
|
||||
"src/tests/mocks/octokit/endpoint/merge.test.ts",
|
||||
"src/tests/mocks/octokit/endpoint/merge.ts",
|
||||
"src/tests/mocks/octokit/index.test.ts",
|
||||
"src/tests/mocks/octokit/index.ts",
|
||||
"src/tests/mocks/octokit/paginate.test.ts",
|
||||
"src/tests/mocks/octokit/paginate.ts",
|
||||
"src/tests/mocks/octokit/payloads.ts",
|
||||
"src/tests/mocks/octokit/pulls/listFiles.test.ts",
|
||||
"src/tests/mocks/octokit/pulls/listFiles.ts",
|
||||
"src/tests/mocks/octokit/repos/compareCommits.test.ts",
|
||||
"src/tests/mocks/octokit/repos/compareCommits.ts",
|
||||
"src/tests/payloads.ts",
|
||||
"src/typings/ActionError/index.d.ts",
|
||||
"src/typings/ChangedFiles/index.d.ts",
|
||||
"src/typings/CoreMock/index.d.ts",
|
||||
"src/typings/FsMock/index.d.ts",
|
||||
"src/typings/GitHubFile/index.d.ts",
|
||||
"src/typings/GitHubMock/index.d.ts",
|
||||
"src/typings/Inferred/index.d.ts",
|
||||
"src/typings/Inputs/index.d.ts",
|
||||
"src/typings/OctokitMock/index.d.ts",
|
||||
"src/typings/TestInput/index.d.ts",
|
||||
"tsconfig.build.json",
|
||||
"tsconfig.json",
|
||||
"yarn.lock"
|
||||
]
|
||||
1
.github/actions/file-changes-action/.github/actions/integration/events/files.txt
vendored
Normal file
1
.github/actions/file-changes-action/.github/actions/integration/events/files.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.codecov.yml .eslintignore .eslintrc.json .eslintrc.yml .github/workflows/integration.yml .github/workflows/pr.yml .github/workflows/push.yml .github/workflows/readme.md .gitignore .prettierignore .prettierrc.json .prettierrc.yml .releaserc.yml Makefile README.md __tests__/main.test.ts action.yml dist/index.js jest.config.js package.json src/ChangedFiles.ts src/File.ts src/FilesHelper.ts src/GithubHelper.ts src/InputHelper.ts src/UtilsHelper.ts src/main.ts src/tests/FilesHelper.test.ts src/tests/GithubHelper.test.ts src/tests/InputHelper.test.ts src/tests/UtilsHelper.test.ts src/tests/main.test.ts src/tests/mocks/core/index.test.ts src/tests/mocks/core/index.ts src/tests/mocks/env/events/issue_comment_created.json src/tests/mocks/env/events/issue_comment_edited.json src/tests/mocks/env/events/pull_request_opened.json src/tests/mocks/env/events/pull_request_reopened.json src/tests/mocks/env/events/pull_request_synchronize.json src/tests/mocks/env/events/push.json src/tests/mocks/env/events/push_merge.json src/tests/mocks/env/events/schedule.json src/tests/mocks/env/index.test.ts src/tests/mocks/env/index.ts src/tests/mocks/fs/index.test.ts src/tests/mocks/fs/index.ts src/tests/mocks/github/index.test.ts src/tests/mocks/github/index.ts src/tests/mocks/octokit/endpoint/merge.test.ts src/tests/mocks/octokit/endpoint/merge.ts src/tests/mocks/octokit/index.test.ts src/tests/mocks/octokit/index.ts src/tests/mocks/octokit/paginate.test.ts src/tests/mocks/octokit/paginate.ts src/tests/mocks/octokit/payloads.ts src/tests/mocks/octokit/pulls/listFiles.test.ts src/tests/mocks/octokit/pulls/listFiles.ts src/tests/mocks/octokit/repos/compareCommits.test.ts src/tests/mocks/octokit/repos/compareCommits.ts src/tests/payloads.ts src/typings/ActionError/index.d.ts src/typings/ChangedFiles/index.d.ts src/typings/CoreMock/index.d.ts src/typings/FsMock/index.d.ts src/typings/GitHubFile/index.d.ts src/typings/GitHubMock/index.d.ts src/typings/Inferred/index.d.ts src/typings/Inputs/index.d.ts src/typings/OctokitMock/index.d.ts src/typings/TestInput/index.d.ts tsconfig.build.json tsconfig.json yarn.lock
|
||||
1
.github/actions/file-changes-action/.github/actions/integration/events/files_added.csv
vendored
Normal file
1
.github/actions/file-changes-action/.github/actions/integration/events/files_added.csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.codecov.yml,.eslintrc.yml,.prettierrc.yml,.releaserc.yml,src/FilesHelper.ts,src/GithubHelper.ts,src/InputHelper.ts,src/UtilsHelper.ts,src/tests/FilesHelper.test.ts,src/tests/GithubHelper.test.ts,src/tests/InputHelper.test.ts,src/tests/UtilsHelper.test.ts,src/tests/main.test.ts,src/tests/mocks/core/index.test.ts,src/tests/mocks/core/index.ts,src/tests/mocks/env/events/issue_comment_created.json,src/tests/mocks/env/events/issue_comment_edited.json,src/tests/mocks/env/events/pull_request_opened.json,src/tests/mocks/env/events/pull_request_reopened.json,src/tests/mocks/env/events/pull_request_synchronize.json,src/tests/mocks/env/events/push.json,src/tests/mocks/env/events/push_merge.json,src/tests/mocks/env/events/schedule.json,src/tests/mocks/env/index.test.ts,src/tests/mocks/env/index.ts,src/tests/mocks/fs/index.test.ts,src/tests/mocks/fs/index.ts,src/tests/mocks/github/index.test.ts,src/tests/mocks/github/index.ts,src/tests/mocks/octokit/endpoint/merge.test.ts,src/tests/mocks/octokit/endpoint/merge.ts,src/tests/mocks/octokit/index.test.ts,src/tests/mocks/octokit/index.ts,src/tests/mocks/octokit/paginate.test.ts,src/tests/mocks/octokit/paginate.ts,src/tests/mocks/octokit/payloads.ts,src/tests/mocks/octokit/pulls/listFiles.test.ts,src/tests/mocks/octokit/pulls/listFiles.ts,src/tests/mocks/octokit/repos/compareCommits.test.ts,src/tests/mocks/octokit/repos/compareCommits.ts,src/tests/payloads.ts,src/typings/ActionError/index.d.ts,src/typings/ChangedFiles/index.d.ts,src/typings/CoreMock/index.d.ts,src/typings/FsMock/index.d.ts,src/typings/GitHubFile/index.d.ts,src/typings/GitHubMock/index.d.ts,src/typings/Inferred/index.d.ts,src/typings/Inputs/index.d.ts,src/typings/OctokitMock/index.d.ts,src/typings/TestInput/index.d.ts,tsconfig.build.json
|
||||
|
54
.github/actions/file-changes-action/.github/actions/integration/events/files_added.json
vendored
Normal file
54
.github/actions/file-changes-action/.github/actions/integration/events/files_added.json
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
[
|
||||
".codecov.yml",
|
||||
".eslintrc.yml",
|
||||
".prettierrc.yml",
|
||||
".releaserc.yml",
|
||||
"src/FilesHelper.ts",
|
||||
"src/GithubHelper.ts",
|
||||
"src/InputHelper.ts",
|
||||
"src/UtilsHelper.ts",
|
||||
"src/tests/FilesHelper.test.ts",
|
||||
"src/tests/GithubHelper.test.ts",
|
||||
"src/tests/InputHelper.test.ts",
|
||||
"src/tests/UtilsHelper.test.ts",
|
||||
"src/tests/main.test.ts",
|
||||
"src/tests/mocks/core/index.test.ts",
|
||||
"src/tests/mocks/core/index.ts",
|
||||
"src/tests/mocks/env/events/issue_comment_created.json",
|
||||
"src/tests/mocks/env/events/issue_comment_edited.json",
|
||||
"src/tests/mocks/env/events/pull_request_opened.json",
|
||||
"src/tests/mocks/env/events/pull_request_reopened.json",
|
||||
"src/tests/mocks/env/events/pull_request_synchronize.json",
|
||||
"src/tests/mocks/env/events/push.json",
|
||||
"src/tests/mocks/env/events/push_merge.json",
|
||||
"src/tests/mocks/env/events/schedule.json",
|
||||
"src/tests/mocks/env/index.test.ts",
|
||||
"src/tests/mocks/env/index.ts",
|
||||
"src/tests/mocks/fs/index.test.ts",
|
||||
"src/tests/mocks/fs/index.ts",
|
||||
"src/tests/mocks/github/index.test.ts",
|
||||
"src/tests/mocks/github/index.ts",
|
||||
"src/tests/mocks/octokit/endpoint/merge.test.ts",
|
||||
"src/tests/mocks/octokit/endpoint/merge.ts",
|
||||
"src/tests/mocks/octokit/index.test.ts",
|
||||
"src/tests/mocks/octokit/index.ts",
|
||||
"src/tests/mocks/octokit/paginate.test.ts",
|
||||
"src/tests/mocks/octokit/paginate.ts",
|
||||
"src/tests/mocks/octokit/payloads.ts",
|
||||
"src/tests/mocks/octokit/pulls/listFiles.test.ts",
|
||||
"src/tests/mocks/octokit/pulls/listFiles.ts",
|
||||
"src/tests/mocks/octokit/repos/compareCommits.test.ts",
|
||||
"src/tests/mocks/octokit/repos/compareCommits.ts",
|
||||
"src/tests/payloads.ts",
|
||||
"src/typings/ActionError/index.d.ts",
|
||||
"src/typings/ChangedFiles/index.d.ts",
|
||||
"src/typings/CoreMock/index.d.ts",
|
||||
"src/typings/FsMock/index.d.ts",
|
||||
"src/typings/GitHubFile/index.d.ts",
|
||||
"src/typings/GitHubMock/index.d.ts",
|
||||
"src/typings/Inferred/index.d.ts",
|
||||
"src/typings/Inputs/index.d.ts",
|
||||
"src/typings/OctokitMock/index.d.ts",
|
||||
"src/typings/TestInput/index.d.ts",
|
||||
"tsconfig.build.json"
|
||||
]
|
||||
1
.github/actions/file-changes-action/.github/actions/integration/events/files_added.txt
vendored
Normal file
1
.github/actions/file-changes-action/.github/actions/integration/events/files_added.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.codecov.yml .eslintrc.yml .prettierrc.yml .releaserc.yml src/FilesHelper.ts src/GithubHelper.ts src/InputHelper.ts src/UtilsHelper.ts src/tests/FilesHelper.test.ts src/tests/GithubHelper.test.ts src/tests/InputHelper.test.ts src/tests/UtilsHelper.test.ts src/tests/main.test.ts src/tests/mocks/core/index.test.ts src/tests/mocks/core/index.ts src/tests/mocks/env/events/issue_comment_created.json src/tests/mocks/env/events/issue_comment_edited.json src/tests/mocks/env/events/pull_request_opened.json src/tests/mocks/env/events/pull_request_reopened.json src/tests/mocks/env/events/pull_request_synchronize.json src/tests/mocks/env/events/push.json src/tests/mocks/env/events/push_merge.json src/tests/mocks/env/events/schedule.json src/tests/mocks/env/index.test.ts src/tests/mocks/env/index.ts src/tests/mocks/fs/index.test.ts src/tests/mocks/fs/index.ts src/tests/mocks/github/index.test.ts src/tests/mocks/github/index.ts src/tests/mocks/octokit/endpoint/merge.test.ts src/tests/mocks/octokit/endpoint/merge.ts src/tests/mocks/octokit/index.test.ts src/tests/mocks/octokit/index.ts src/tests/mocks/octokit/paginate.test.ts src/tests/mocks/octokit/paginate.ts src/tests/mocks/octokit/payloads.ts src/tests/mocks/octokit/pulls/listFiles.test.ts src/tests/mocks/octokit/pulls/listFiles.ts src/tests/mocks/octokit/repos/compareCommits.test.ts src/tests/mocks/octokit/repos/compareCommits.ts src/tests/payloads.ts src/typings/ActionError/index.d.ts src/typings/ChangedFiles/index.d.ts src/typings/CoreMock/index.d.ts src/typings/FsMock/index.d.ts src/typings/GitHubFile/index.d.ts src/typings/GitHubMock/index.d.ts src/typings/Inferred/index.d.ts src/typings/Inputs/index.d.ts src/typings/OctokitMock/index.d.ts src/typings/TestInput/index.d.ts tsconfig.build.json
|
||||
1
.github/actions/file-changes-action/.github/actions/integration/events/files_modified.csv
vendored
Normal file
1
.github/actions/file-changes-action/.github/actions/integration/events/files_modified.csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.github/workflows/integration.yml,.github/workflows/pr.yml,.github/workflows/push.yml,.github/workflows/readme.md,.gitignore,.prettierignore,README.md,action.yml,jest.config.js,package.json,src/main.ts,tsconfig.json,yarn.lock
|
||||
|
15
.github/actions/file-changes-action/.github/actions/integration/events/files_modified.json
vendored
Normal file
15
.github/actions/file-changes-action/.github/actions/integration/events/files_modified.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
[
|
||||
".github/workflows/integration.yml",
|
||||
".github/workflows/pr.yml",
|
||||
".github/workflows/push.yml",
|
||||
".github/workflows/readme.md",
|
||||
".gitignore",
|
||||
".prettierignore",
|
||||
"README.md",
|
||||
"action.yml",
|
||||
"jest.config.js",
|
||||
"package.json",
|
||||
"src/main.ts",
|
||||
"tsconfig.json",
|
||||
"yarn.lock"
|
||||
]
|
||||
1
.github/actions/file-changes-action/.github/actions/integration/events/files_modified.txt
vendored
Normal file
1
.github/actions/file-changes-action/.github/actions/integration/events/files_modified.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.github/workflows/integration.yml .github/workflows/pr.yml .github/workflows/push.yml .github/workflows/readme.md .gitignore .prettierignore README.md action.yml jest.config.js package.json src/main.ts tsconfig.json yarn.lock
|
||||
1
.github/actions/file-changes-action/.github/actions/integration/events/files_removed.csv
vendored
Normal file
1
.github/actions/file-changes-action/.github/actions/integration/events/files_removed.csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.eslintignore,.eslintrc.json,.prettierrc.json,Makefile,__tests__/main.test.ts,dist/index.js,src/ChangedFiles.ts,src/File.ts
|
||||
|
10
.github/actions/file-changes-action/.github/actions/integration/events/files_removed.json
vendored
Normal file
10
.github/actions/file-changes-action/.github/actions/integration/events/files_removed.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
".eslintignore",
|
||||
".eslintrc.json",
|
||||
".prettierrc.json",
|
||||
"Makefile",
|
||||
"__tests__/main.test.ts",
|
||||
"dist/index.js",
|
||||
"src/ChangedFiles.ts",
|
||||
"src/File.ts"
|
||||
]
|
||||
1
.github/actions/file-changes-action/.github/actions/integration/events/files_removed.txt
vendored
Normal file
1
.github/actions/file-changes-action/.github/actions/integration/events/files_removed.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.eslintignore .eslintrc.json .prettierrc.json Makefile __tests__/main.test.ts dist/index.js src/ChangedFiles.ts src/File.ts
|
||||
157
.github/actions/file-changes-action/.github/actions/integration/test.sh
vendored
Executable file
157
.github/actions/file-changes-action/.github/actions/integration/test.sh
vendored
Executable file
@@ -0,0 +1,157 @@
|
||||
json_output='["functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda.json", "functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json", "functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json", "functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json"]'
|
||||
csv_output="functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda.json,functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json,functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json,functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json"
|
||||
txt_hard_output='functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda.json_<br /> _functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json_<br /> _functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json_<br /> _functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json'
|
||||
txt_output='functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda.json functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json functions/twitch-sadako/webhookSubscribeLambda/test/webhookSubscribeLambda_post.json'
|
||||
|
||||
testOutput () {
|
||||
# read from var
|
||||
if [ "${2}" == "json" ]; then
|
||||
local output_length=$(echo "${1}" | jq '. | length')
|
||||
elif [ "${2}" == "," ]; then
|
||||
local output_length=$(awk -F"${2}" '{print NF-1}' <<< $(echo "${1}"))
|
||||
else
|
||||
local output_length=$(awk -F"${2}" '{print NF-1}' <<< $(echo "${1}"))
|
||||
fi
|
||||
echo "$output_length"
|
||||
}
|
||||
|
||||
testFile () {
|
||||
# read from file
|
||||
if [ "${2}" == "json" ]; then
|
||||
local file_length=$(jq -r '. | length' ${file}.json)
|
||||
elif [ "${2}" == "," ]; then
|
||||
local file_length=$(cat ${file}.csv | awk -F"${2}" '{print NF-1}')
|
||||
else
|
||||
local file_length=$(cat ${file}.txt | awk -F"${2}" '{print NF-1}')
|
||||
fi
|
||||
echo "$file_length"
|
||||
}
|
||||
|
||||
cleanTest () {
|
||||
rm -rf $1.json $1.csv $1.txt
|
||||
}
|
||||
|
||||
prepareTest () {
|
||||
# if prefix is simple setup test var and file
|
||||
if [ "$1" == "simple_" ]; then
|
||||
# declare a var named simple_FILE
|
||||
if [ "$dev" == "dev" ]; then
|
||||
local file_prefix="events/"
|
||||
else
|
||||
local file_prefix=""
|
||||
fi
|
||||
declare -n file=${1}${2}
|
||||
if [ "$3" == "json" ]; then
|
||||
echo ${json_output} > "${file_prefix}${!file}.json"
|
||||
elif [ "$3" == "," ]; then
|
||||
echo ${csv_output} > "${file_prefix}${!file}.csv"
|
||||
elif [ "$3" == "_<br /> _" ]; then
|
||||
echo ${txt_hard_output} > "${file_prefix}${!file}.txt"
|
||||
else
|
||||
echo ${txt_output} > "${file_prefix}${!file}.txt"
|
||||
fi
|
||||
if [ "$4" == "json" ]; then
|
||||
file=$json_output
|
||||
elif [ "$4" == "," ]; then
|
||||
file=$csv_output
|
||||
elif [ "$4" == "_<br /> _" ]; then
|
||||
file=$txt_hard_output
|
||||
else
|
||||
file=$txt_output
|
||||
fi
|
||||
else
|
||||
declare -n file=${2}
|
||||
if [ "$dev" == "dev" ]; then
|
||||
if [ "$4" == "json" ]; then
|
||||
file="$(cat events/${!file}.json)"
|
||||
elif [ "$4" == "," ]; then
|
||||
file="$(cat events/${!file}.csv)"
|
||||
else
|
||||
file="$(cat events/${!file}.txt)"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
echo "${file}"
|
||||
}
|
||||
|
||||
testResults () {
|
||||
if [ "$1" == 'simple_' ]; then
|
||||
expected=3
|
||||
if [ "$2" == 'json' ]; then
|
||||
expected=$(($expected+1))
|
||||
fi
|
||||
# echo $result
|
||||
if [ "$3" != "$expected" ]; then
|
||||
echo -e "\t\033[1;91mTest failure $5/($1)$4:'$2' { EXPECTED:$expected RECEIVED:$3 } \033[0m"
|
||||
exit 1;
|
||||
fi
|
||||
else
|
||||
if [ "$4" == 'files' ]; then
|
||||
expected=72
|
||||
elif [ "$4" == 'files_added' ]; then
|
||||
expected=51
|
||||
elif [ "$4" == 'files_modified' ]; then
|
||||
expected=12
|
||||
elif [ "$4" == 'files_removed' ]; then
|
||||
expected=7
|
||||
fi
|
||||
if [ "$2" == 'json' ]; then
|
||||
expected=$(($expected+1))
|
||||
fi
|
||||
if [ "$3" != "$expected" ]; then
|
||||
echo -e "\t\033[1;91mTest failure $5/($1)$4:'$2' { EXPECTED:$expected RECEIVED:$3 } \033[0m"
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
echo -e "\t\033[1;92mTest success $5/($1)$4:'$2' { $expected == $3 } \033[0m"
|
||||
}
|
||||
|
||||
runTest () {
|
||||
for prefix in "simple_" "real"; do \
|
||||
file=${1}
|
||||
if [ "$prefix" == 'simple_' ]; then
|
||||
if [ "$dev" == "dev" ]; then
|
||||
file=events/${prefix}${1}
|
||||
else
|
||||
file=${prefix}${1}
|
||||
fi
|
||||
elif [ "$prefix" != 'simple_' ] && [ "$dev" == "dev" ]; then
|
||||
file=events/${1}
|
||||
fi
|
||||
input="$(prepareTest $prefix $1 "$2" "$3")"
|
||||
local file_length=$(testFile $file "${2}")
|
||||
local output_length=$(testOutput "${input}" "${3}")
|
||||
testResults $prefix "${2}" "$file_length" "$1" "fileOutput"
|
||||
testResults $prefix "${3}" "$output_length" "$1" "output"
|
||||
if [ "$prefix" == 'simple_' ]; then
|
||||
cleanTest $file
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
test () {
|
||||
if [ "$dev" == "dev" ]; then
|
||||
echo -e "\t\033[1;91mDEV MODE\033[0m"
|
||||
fi
|
||||
if [ "$output" == "" ] || [ "$fileOutput" == "" ]; then
|
||||
for fileOutput in "json" "," " "; do \
|
||||
echo -e "\033[1;92mFILEOUTPUT:'$fileOutput'\033[0m"
|
||||
for output in "json" "," " "; do \
|
||||
echo -e "\033[1;92mOUTPUT:'$output'\033[0m"
|
||||
for file in "files" "files_modified" "files_added" "files_removed"; do \
|
||||
echo -e "\033[1;92mFILE:'$file'\033[0m"
|
||||
runTest $file "$fileOutput" "$output"
|
||||
done
|
||||
done
|
||||
done
|
||||
else
|
||||
for file in "files" "files_modified" "files_added" "files_removed"; do \
|
||||
echo -e "\033[1;92mFILE:'$file' with FILEOUTPUT:'$fileOutput' OUTPUT:'$output'\033[0m"
|
||||
runTest $file "$fileOutput" "$output"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
dev=$1
|
||||
|
||||
test
|
||||
26
.github/actions/file-changes-action/.github/auto_assign.yml
vendored
Normal file
26
.github/actions/file-changes-action/.github/auto_assign.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# Set to true to add reviewers to pull requests
|
||||
addReviewers: true
|
||||
|
||||
# Set to true to add assignees to pull requests
|
||||
addAssignees: author
|
||||
|
||||
# A list of reviewers to be added to pull requests (GitHub user name)
|
||||
reviewers:
|
||||
- trilom
|
||||
|
||||
# A number of reviewers added to the pull request
|
||||
# Set 0 to add all the reviewers (default: 0)
|
||||
numberOfReviewers: 0
|
||||
|
||||
# A list of assignees, overrides reviewers if set
|
||||
# assignees:
|
||||
# - assigneeA
|
||||
|
||||
# A number of assignees to add to the pull request
|
||||
# Set to 0 to add all of the assignees.
|
||||
# Uses numberOfReviewers if unset.
|
||||
# numberOfAssignees: 2
|
||||
|
||||
# A list of keywords to be skipped the process that add reviewers if pull requests include it
|
||||
# skipKeywords:
|
||||
# - wip
|
||||
42
.github/actions/file-changes-action/.github/labels.yml
vendored
Normal file
42
.github/actions/file-changes-action/.github/labels.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
- name: pretty
|
||||
description: Code that has been linted with eslint and prettier
|
||||
color: 76edd1
|
||||
- name: builds
|
||||
description: Code that builds with yarn and tsc
|
||||
color: 39bc44
|
||||
- name: tested-unit
|
||||
description: Code that has passed unit tests with jest
|
||||
color: 9520bc
|
||||
- name: tested-integration
|
||||
description: Code that has passed integration tests with jest
|
||||
color: fc5aee
|
||||
- name: "doesnt read directions"
|
||||
description: "Doesn't know how to read directions, please PR to develop"
|
||||
color: d876e3
|
||||
- name: automated pr
|
||||
description: This was created by create-pull-request action
|
||||
color: b9ff9b
|
||||
- name: released
|
||||
description: This has been released to NPM, Github Packages, and Actions Marketplace
|
||||
color: ededed
|
||||
- name: bug
|
||||
description: Something isn't working
|
||||
color: d73a4a
|
||||
- name: duplicate
|
||||
description: This issue or pull request already exists
|
||||
color: cfd3d7
|
||||
- name: enhancement
|
||||
description: New feature or request
|
||||
color: a2eeef
|
||||
- name: "automated merge"
|
||||
description: This was merged automatically
|
||||
color: c2e0c6
|
||||
- name: "hold merge"
|
||||
description: This merge will be blocked from automerging until this label is removed
|
||||
color: b60205
|
||||
- name: lintdogged
|
||||
description: Code that has been looked at by reviewdog
|
||||
color: 5F422D
|
||||
- name: failure
|
||||
description: Something bad happened...
|
||||
color: d93f0b
|
||||
97
.github/actions/file-changes-action/.github/workflows/automerge.yml
vendored
Normal file
97
.github/actions/file-changes-action/.github/workflows/automerge.yml
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
# this will tag PRs that are ready for release and automerge them
|
||||
name: Automerge Pull Requests
|
||||
on:
|
||||
# issue_comment:
|
||||
# types: [created]
|
||||
pull_request:
|
||||
branches: [master, next, alpha, beta]
|
||||
types: [labeled, closed]
|
||||
jobs:
|
||||
automerge:
|
||||
name: automerge pr
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
pr_number: ${{ format('{0}{1}', github.event.pull_request.number, github.event.issue.number) }}
|
||||
# if event type is non fork PR or comment on PR from trilom with '/release'
|
||||
if: >-
|
||||
(
|
||||
github.event_name == 'pull_request'
|
||||
&& github.event.pull_request.head.repo.full_name == github.repository
|
||||
&& contains(github.event.pull_request.labels.*.name, 'pretty')
|
||||
&& contains(github.event.pull_request.labels.*.name, 'builds')
|
||||
&& contains(github.event.pull_request.labels.*.name, 'tested-unit')
|
||||
&& contains(github.event.pull_request.labels.*.name, 'tested-integration')
|
||||
&& contains(github.event.pull_request.labels.*.name, 'lintdogged')
|
||||
&& ! contains(github.event.pull_request.labels.*.name, 'automated merge')
|
||||
&& ! contains(github.event.pull_request.labels.*.name, 'hold merge')
|
||||
) || (
|
||||
github.event_name == 'issue_comment'
|
||||
&& github.event.issue.pull_request != ''
|
||||
&& contains(github.event.comment.body, '/release')
|
||||
&& github.actor == 'trilom'
|
||||
&& contains(github.event.issue.labels.*.name, 'pretty')
|
||||
&& contains(github.event.issue.labels.*.name, 'builds')
|
||||
&& contains(github.event.issue.labels.*.name, 'tested-unit')
|
||||
&& contains(github.event.issue.labels.*.name, 'tested-integration')
|
||||
&& contains(github.event.issue.labels.*.name, 'lintdogged')
|
||||
&& ! contains(github.event.issue.labels.*.name, 'automated merge')
|
||||
&& ! contains(github.event.issue.labels.*.name, 'hold merge'))
|
||||
steps:
|
||||
- name: if pretty, builds, tested merge automerge pr
|
||||
# if pretty, builds, and tested labels then merge
|
||||
uses: pascalgn/automerge-action@v0.7.5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
|
||||
MERGE_METHOD: merge
|
||||
# this breaks the /release on issue_comment portion unless I get the head.ref from github-script
|
||||
MERGE_COMMIT_MESSAGE: 'Auto merge from ${{ github.event.pull_request.head.ref }} PR#{pullRequest.number}: {pullRequest.title}'
|
||||
UPDATE_METHOD: merge
|
||||
MERGE_LABELS: 'pretty,builds,tested-unit,tested-integration,lintdogged'
|
||||
UPDATE_LABELS: ''
|
||||
# if failure, get payload of PR and notify
|
||||
- name: if failure, get pr payload
|
||||
uses: actions/github-script@0.8.0
|
||||
id: pr_json
|
||||
if: failure()
|
||||
with:
|
||||
github-token: ${{env.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const result = await github.pulls.get({
|
||||
owner: '${{ github.repository }}'.split('/')[0],
|
||||
repo: '${{ github.repository }}'.split('/')[1],
|
||||
pull_number: ${{ env.pr_number }}
|
||||
})
|
||||
return result.data;
|
||||
- name: if failure, set pr payload outputs
|
||||
if: failure()
|
||||
id: pr
|
||||
run: |
|
||||
echo '${{ steps.pr_json.outputs.result }}' > pr.json
|
||||
echo "::set-output name=user::$( jq -r '.user.login' pr.json )"
|
||||
echo "::set-output name=head::$( jq -r '.head.repo.full_name' pr.json )"
|
||||
echo "::set-output name=head_url::$( jq -r '.head.repo.html_url' pr.json )"
|
||||
echo "::set-output name=base::$( jq -r '.base.repo.full_name' pr.json )"
|
||||
echo "::set-output name=base_url::$( jq -r '.base.repo.html_url' pr.json )"
|
||||
- name: if failure, notify
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
if: failure()
|
||||
with:
|
||||
token: ${{ env.GITHUB_TOKEN }}
|
||||
issue-number: ${{ env.pr_number }}
|
||||
body: |
|
||||
@${{ steps.pr.outputs.user }}, @trilom - it appears that there was an issue with the merge.
|
||||
|
||||
Head Repo/Branch: **[${{ steps.pr.outputs.head }}]**(${{ steps.pr.outputs.head_url }}) merge into **[${{ steps.pr.outputs.base }}]**(${{ steps.pr.outputs.base_url }})
|
||||
|
||||
## Event JSON
|
||||
```json
|
||||
${{ toJSON(steps.pr_json.outputs.result)}}
|
||||
```
|
||||
- uses: actions/github-script@0.6.0
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.issues.addLabels({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
labels: ['automated merge']
|
||||
})
|
||||
19
.github/actions/file-changes-action/.github/workflows/close_pr.yml
vendored
Normal file
19
.github/actions/file-changes-action/.github/workflows/close_pr.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Close Pull Request
|
||||
on:
|
||||
pull_request:
|
||||
branches-ignore: [master]
|
||||
types: [opened, reopened]
|
||||
jobs:
|
||||
# close any fork PRs not opened by trilom to anything but master
|
||||
close_pr:
|
||||
name: close non master PRs from fork
|
||||
runs-on: ubuntu-latest
|
||||
if: (github.actor != 'trilom' || github.actor != 'trilom-bot') && github.event.pull_request.head.repo.full_name != github.repository
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v2
|
||||
with:
|
||||
comment: Please merge your code into master, this will trigger the desired merge workflow.
|
||||
- uses: actions/github@v1.0.0
|
||||
if: success()
|
||||
with:
|
||||
args: label "doesnt read directions"
|
||||
106
.github/actions/file-changes-action/.github/workflows/integration.yml
vendored
Normal file
106
.github/actions/file-changes-action/.github/workflows/integration.yml
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
name: Integration Tests
|
||||
on:
|
||||
issue_comment:
|
||||
types:
|
||||
- created
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
pull_request:
|
||||
branches: [master]
|
||||
push:
|
||||
branches: [master]
|
||||
jobs:
|
||||
# always_job:
|
||||
# name: Always run job
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: dump env
|
||||
# env:
|
||||
# GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
# JOB_CONTEXT: ${{ toJson(job) }}
|
||||
# STEPS_CONTEXT: ${{ toJson(steps) }}
|
||||
# RUNNER_CONTEXT: ${{ toJson(runner) }}
|
||||
# STRATEGY_CONTEXT: ${{ toJson(strategy) }}
|
||||
# MATRIX_CONTEXT: ${{ toJson(matrix) }}
|
||||
# run: |
|
||||
# echo "GITHUB_EVENT_PATH\n$GITHUB_EVENT_PATH"
|
||||
# echo "GITHUB_CONTEXT\n$GITHUB_CONTEXT"
|
||||
# echo "JOB_CONTEXT\n$JOB_CONTEXT"
|
||||
# echo "STEPS_CONTEXT\n$STEPS_CONTEXT"
|
||||
# echo "RUNNER_CONTEXT\n$RUNNER_CONTEXT"
|
||||
# echo "STRATEGY_CONTEXT\n$STRATEGY_CONTEXT"
|
||||
# echo "MATRIX_CONTEXT\n$MATRIX_CONTEXT"
|
||||
integration:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
event_type: ['push', 'pull_request']
|
||||
output: ['json', ',', ' ', '_<br /> _']
|
||||
fileOutput: ['json', ',', ' ', '_<br /> _']
|
||||
if: >-
|
||||
( startsWith(github.head_ref, '1.')
|
||||
|| startsWith(github.head_ref, '2.'))
|
||||
||
|
||||
contains(github.event.head_commit.message, 'Release merge from')
|
||||
||
|
||||
github.event_name == 'schedule'
|
||||
|| (
|
||||
github.event_name == 'issue_comment'
|
||||
&& github.event.issue.number != ''
|
||||
&& contains(github.event.comment.body, '/integration')
|
||||
&& github.actor == 'trilom')
|
||||
steps:
|
||||
# get pr number if exists
|
||||
- id: pr
|
||||
if: github.event_name == 'issue_comment'
|
||||
run: |
|
||||
pr=$(echo "${{github.event.comment.body}}" | sed 's|.*/integration||') &&
|
||||
echo "::set-output name=pr::${pr}"
|
||||
env:
|
||||
comment: ${{ toJson(github) }}
|
||||
# use pr number from integration command
|
||||
- uses: actions/checkout@v2
|
||||
if: github.event_name == 'issue_comment' && steps.pr.outputs.pr != ''
|
||||
with:
|
||||
ref: ${{format('refs/pull/{0}/head', steps.pr.outputs.pr )}}
|
||||
# use the issue number if pr is blank
|
||||
- uses: actions/checkout@v2
|
||||
if: github.event_name == 'issue_comment' && steps.pr.outputs.pr == '' && github.event.issue.pull_request != ''
|
||||
with:
|
||||
ref: ${{format('refs/pull/{0}/head', github.event.issue.number )}}
|
||||
- name: fail if no PR number and issue comment
|
||||
if: github.event_name == 'issue_comment' && steps.pr.outputs.pr == '' && github.event.issue.pull_request == ''
|
||||
run: |
|
||||
echo "Please provide a PR number to use like /integration13 for PR# 13."
|
||||
exit 1
|
||||
- uses: actions/checkout@v2
|
||||
if: github.event_name != 'issue_comment'
|
||||
- run: yarn build-package
|
||||
- uses: ./
|
||||
id: file_changes_build_pr
|
||||
if: matrix.event_type == 'pull_request'
|
||||
with:
|
||||
prNumber: 83
|
||||
output: ${{ matrix.output }}
|
||||
fileOutput: ${{ matrix.fileOutput }}
|
||||
- uses: ./
|
||||
id: file_changes_build_push
|
||||
if: matrix.event_type == 'push'
|
||||
with:
|
||||
pushBefore: 6ac7697cd1c4f23a08d4d4edbe7dab06b34c58a2
|
||||
pushAfter: 4ee1a1a2515f4ac1b90a56aaeb060b97f20c8968
|
||||
output: ${{ matrix.output }}
|
||||
fileOutput: ${{ matrix.fileOutput }}
|
||||
- run: |
|
||||
mv $HOME/files* .
|
||||
chmod +x test.sh && ./test.sh
|
||||
working-directory: .github/actions/integration
|
||||
if: success()
|
||||
env:
|
||||
fileOutput: ${{ matrix.fileOutput }}
|
||||
output: ${{ matrix.output }}
|
||||
files: ${{ format('{0}{1}', steps.file_changes_build_pr.outputs.files, steps.file_changes_build_push.outputs.files ) }}
|
||||
files_modified: ${{ format('{0}{1}', steps.file_changes_build_pr.outputs.files_modified, steps.file_changes_build_push.outputs.files_modified ) }}
|
||||
files_added: ${{ format('{0}{1}', steps.file_changes_build_pr.outputs.files_added, steps.file_changes_build_push.outputs.files_added ) }}
|
||||
files_removed: ${{ format('{0}{1}', steps.file_changes_build_pr.outputs.files_removed, steps.file_changes_build_push.outputs.files_removed ) }}
|
||||
13
.github/actions/file-changes-action/.github/workflows/labels.yml
vendored
Normal file
13
.github/actions/file-changes-action/.github/workflows/labels.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
name: Sync labels
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths: [.github/labels.yml]
|
||||
jobs:
|
||||
make-labels:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: micnncim/action-label-syncer@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
192
.github/actions/file-changes-action/.github/workflows/pr.yml
vendored
Normal file
192
.github/actions/file-changes-action/.github/workflows/pr.yml
vendored
Normal file
@@ -0,0 +1,192 @@
|
||||
name: Contribution Workflow
|
||||
env:
|
||||
isFork: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
add-reviews:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: kentaro-m/auto-assign-action@v1.1.0
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# make sure we can build
|
||||
build:
|
||||
name: yarn install && tsc
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn build
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: failure() && contains(env.isFork, 'false')
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
if ('${{ contains(github.event.pull_request.labels.*.name, 'builds') }}' == 'true') {
|
||||
github.issues.removeLabel({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
name: 'builds'
|
||||
})
|
||||
}
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: contains(env.isFork, 'false')
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
github.issues.addLabels({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
labels: ['builds']
|
||||
})
|
||||
# unit test with jest
|
||||
test-unit:
|
||||
name: jest unit tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn build
|
||||
- run: yarn test-coverage
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
if: contains(env.isFork, 'false')
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: failure() && contains(env.isFork, 'false')
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
if ('${{ contains(github.event.pull_request.labels.*.name, 'tested-unit') }}' == 'true') {
|
||||
github.issues.removeLabel({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
name: 'tested-unit'
|
||||
})
|
||||
}
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: contains(env.isFork, 'false')
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
github.issues.addLabels({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
labels: ['tested-unit']
|
||||
})
|
||||
# integration test with jest
|
||||
test-integration:
|
||||
name: jest integration tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: test-unit
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn build
|
||||
- run: yarn test-integration
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: failure() && contains(env.isFork, 'false')
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
if ('${{ contains(github.event.pull_request.labels.*.name, 'tested-integration') }}' == 'true') {
|
||||
github.issues.removeLabel({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
name: 'tested-integration'
|
||||
})
|
||||
}
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: contains(env.isFork, 'false')
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
github.issues.addLabels({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
labels: ['tested-integration']
|
||||
})
|
||||
# lint code in github check
|
||||
lintdog-fork:
|
||||
name: eslintdog (reviewdog)
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: github.event.pull_request.head.repo.full_name != github.repository
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn build
|
||||
- name: Lint and report
|
||||
uses: reviewdog/action-eslint@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
reporter: github-check
|
||||
eslint_flags: '--ext .ts ./'
|
||||
# lint code and comment back if possible
|
||||
lintdog:
|
||||
name: eslintdog (reviewdog)
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn build
|
||||
- name: Lint and report
|
||||
uses: reviewdog/action-eslint@v1
|
||||
with:
|
||||
github_token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
reporter: github-pr-review
|
||||
eslint_flags: '--ext .ts ./'
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: failure()
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
if ('${{ contains(github.event.pull_request.labels.*.name, 'lintdogged') }}' == 'true') {
|
||||
github.issues.removeLabel({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
name: 'lintdogged'
|
||||
})
|
||||
}
|
||||
- uses: actions/github-script@0.6.0
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
github.issues.addLabels({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
labels: ['lintdogged']
|
||||
})
|
||||
# format and push code back if not forked branch
|
||||
format_check_push:
|
||||
name: prettier
|
||||
runs-on: ubuntu-latest
|
||||
needs: [lintdog, lintdog-fork]
|
||||
if: always()
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2 # checkout for forks
|
||||
if: contains(env.isFork, 'true')
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/checkout@v2 # checkout for PR
|
||||
if: contains(env.isFork, 'false')
|
||||
with:
|
||||
token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
- run: yarn build
|
||||
- run: yarn format-check
|
||||
- name: yarn format and push code if check failed
|
||||
if: failure() && github.actor != 'trilom-bot' && contains(env.isFork, 'false')
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
run: |
|
||||
yarn format
|
||||
sudo yarn clean
|
||||
git config --local user.email "trilom-bot@trailmix.me"
|
||||
git config --local user.name "trilom-bot"
|
||||
git add -A
|
||||
git diff-index --quiet HEAD || git commit -m "Adding format changes 🤖" -a
|
||||
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git HEAD:refs/heads/${{ github.head_ref }} && exit 0
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: failure() && contains(env.isFork, 'false')
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
if ('${{ contains(github.event.pull_request.labels.*.name, 'pretty') }}' == 'true') {
|
||||
github.issues.removeLabel({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
name: 'pretty'
|
||||
})
|
||||
}
|
||||
- uses: actions/github-script@0.6.0
|
||||
if: contains(env.isFork, 'false')
|
||||
with:
|
||||
github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
script: |
|
||||
github.issues.addLabels({owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,
|
||||
labels: ['pretty']
|
||||
})
|
||||
259
.github/actions/file-changes-action/.github/workflows/push.yml
vendored
Normal file
259
.github/actions/file-changes-action/.github/workflows/push.yml
vendored
Normal file
@@ -0,0 +1,259 @@
|
||||
# if a push comes in then this will test it for a release and create a release PR if needed
|
||||
name: Push to release branches
|
||||
on:
|
||||
push:
|
||||
branches: [master, next, alpha, beta]
|
||||
tags-ignore: ['**']
|
||||
jobs:
|
||||
# semantic release an auto-merged branch to github package repo, npm, github actions
|
||||
release:
|
||||
name: Release to NPM, Github, Github Actions Marketplace
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build, test-unit, test-integration, lintdog]
|
||||
if: >
|
||||
github.actor != 'semantic-release-bot'
|
||||
&& ( (contains(github.event.head_commit.message, 'trilom/1.')
|
||||
|| contains(github.event.head_commit.message, 'trilom/2.'))
|
||||
&& ! contains(github.event.head_commit.message, 'chore(release):'))
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
SEMANTIC_RELEASE_PACKAGE: '@${{ github.repository }}'
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: semantic-release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
id: semantic
|
||||
with:
|
||||
semantic_version: 15.14.0
|
||||
extra_plugins: |
|
||||
@semantic-release/git@7.0.18
|
||||
@semantic-release/changelog
|
||||
semantic-release-slack-bot
|
||||
dry_run: false
|
||||
- name: echo release outputs
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
run: |
|
||||
echo ${{ steps.semantic.outputs.new_release_version }}
|
||||
echo ${{ steps.semantic.outputs.new_release_major_version }}
|
||||
echo ${{ steps.semantic.outputs.new_release_minor_version }}
|
||||
echo ${{ steps.semantic.outputs.new_release_patch_version }}
|
||||
- name: Setup Node.js with GitHub Package Registry
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: 'https://npm.pkg.github.com'
|
||||
scope: trilom
|
||||
- name: Publish To GitHub Package Registry
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ env.GITHUB_TOKEN }}
|
||||
# create PR from release branch to master to prepare for release
|
||||
check-release:
|
||||
name: Check if we need to release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build, test-unit, test-integration, lintdog]
|
||||
if: >
|
||||
github.actor != 'semantic-release-bot'
|
||||
&& ! contains(github.event.head_commit.message, 'trilom/1.')
|
||||
&& ! contains(github.event.head_commit.message, 'trilom/2.')
|
||||
&& ! contains(github.event.head_commit.message, 'chore(release):')
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: commit format changes and create authors file
|
||||
run: |
|
||||
git config --local user.email "trilom-bot@trailmix.me"
|
||||
git config --local user.name "trilom-bot"
|
||||
yarn build
|
||||
yarn format
|
||||
git add -A
|
||||
git diff-index --quiet HEAD || git commit -m "Adding format changes 🤖" -a
|
||||
yarn build-release
|
||||
git add -A
|
||||
git diff-index --quiet HEAD || git commit -m "Adding release changes ⚙️" -a
|
||||
git log --format='%aN <%aE>%n%cN <%cE>' | sort -u > AUTHORS
|
||||
sed -i '/trilom-bot/d' AUTHORS
|
||||
sed -i '/semantic-release-bot/d' AUTHORS
|
||||
sed -i '/carnoco@gmail.com/d' AUTHORS
|
||||
sed -i '/GitHub <noreply@github.com>/d' AUTHORS
|
||||
sed -i '/dependabot/d' AUTHORS
|
||||
echo -e "\r\n$(date)" >> AUTHORS
|
||||
git add -A
|
||||
git diff-index --quiet HEAD || git commit -m "Updating AUTHORS 📓" -a
|
||||
# see if we need to release, if so create a automerge release PR and notify the original creator
|
||||
- name: semantic-release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
id: semantic
|
||||
env:
|
||||
SEMANTIC_RELEASE_PACKAGE: '@${{ github.repository }}'
|
||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||
with:
|
||||
semantic_version: 15.14.0
|
||||
extra_plugins: |
|
||||
@semantic-release/git@7.0.18
|
||||
@semantic-release/changelog
|
||||
semantic-release-slack-bot
|
||||
dry_run: true
|
||||
- name: echo release outputs
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
run: |
|
||||
echo ${{ steps.semantic.outputs.new_release_version }}
|
||||
echo ${{ steps.semantic.outputs.new_release_major_version }}
|
||||
echo ${{ steps.semantic.outputs.new_release_minor_version }}
|
||||
echo ${{ steps.semantic.outputs.new_release_patch_version }}
|
||||
- name: push potential formatting changes since there is no release
|
||||
if: steps.semantic.outputs.new_release_published == 'false'
|
||||
run: |
|
||||
git config --local user.email "trilom-bot@trailmix.me"
|
||||
git config --local user.name "trilom-bot"
|
||||
git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:${{ github.ref }}
|
||||
- name: get changed files and format for automerge PR body
|
||||
id: file_changes
|
||||
uses: trilom/file-changes-action@master
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
with:
|
||||
githubToken: ${{ env.GITHUB_TOKEN }}
|
||||
output: '_<br /> _'
|
||||
- name: get original PR number
|
||||
uses: actions/github-script@0.6.0
|
||||
id: pr
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
with:
|
||||
github-token: ${{env.GITHUB_TOKEN}}
|
||||
result-encoding: string
|
||||
script: |
|
||||
const result = await github.repos.listPullRequestsAssociatedWithCommit({
|
||||
owner: context.payload.repository.owner.name,
|
||||
repo: context.payload.repository.name,
|
||||
commit_sha: context.payload.head_commit.id
|
||||
})
|
||||
if (result.data.length >= 1) {
|
||||
return result.data[0].number
|
||||
} else return 87
|
||||
- name: get original PR user
|
||||
uses: actions/github-script@0.6.0
|
||||
id: login
|
||||
if: steps.pr.outputs.result != 0 && steps.semantic.outputs.new_release_published == 'true'
|
||||
with:
|
||||
github-token: ${{env.GITHUB_TOKEN}}
|
||||
result-encoding: string
|
||||
script: |
|
||||
const result = await github.pulls.get({
|
||||
owner: context.payload.repository.owner.name,
|
||||
repo: context.payload.repository.name,
|
||||
pull_number: ${{ steps.pr.outputs.result }}
|
||||
})
|
||||
if (result.data.user === true && result.data.user.login === true) {
|
||||
return result.data.user.login
|
||||
} else return 'trilom';
|
||||
- name: create release PR
|
||||
id: create-pr
|
||||
uses: peter-evans/create-pull-request@v2
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
with:
|
||||
token: ${{ env.GITHUB_TOKEN }}
|
||||
commit-message: '${{ github.event.head_commit.message }}'
|
||||
committer: trilom-bot <trilom-bot@trailmix.me>
|
||||
author: ${{ steps.login.outputs.result }} <${{ steps.login.outputs.result }}@users.noreply.github.com>
|
||||
title: 'releases/v${{ steps.semantic.outputs.new_release_version }} [@${{ steps.login.outputs.result }}] - ${{ github.event.head_commit.message }}'
|
||||
body: |
|
||||
# @${{ steps.login.outputs.result }} would like to merge into file-changes-action
|
||||
[**compare link**](${{ github.event.compare }})
|
||||
|
||||
## Commits
|
||||
```json
|
||||
${{ toJSON(github.event.commits)}}
|
||||
```
|
||||
|
||||
## Files
|
||||
|
||||
_${{ steps.file_changes.outputs.files}}_
|
||||
|
||||
## Files modified
|
||||
|
||||
_${{ steps.file_changes.outputs.files_modified}}_
|
||||
|
||||
## Files added
|
||||
|
||||
_${{ steps.file_changes.outputs.files_added}}_
|
||||
|
||||
## Files removed
|
||||
|
||||
_${{ steps.file_changes.outputs.files_removed}}_
|
||||
labels: 'automated pr'
|
||||
assignees: '${{ steps.login.outputs.result }},trilom'
|
||||
reviewers: trilom
|
||||
branch: '${{ steps.semantic.outputs.new_release_version }}'
|
||||
- name: notify initial commiter of change
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
if: steps.login.outputs.result != '' && steps.semantic.outputs.new_release_published == 'true'
|
||||
with:
|
||||
token: ${{ env.GITHUB_TOKEN }}
|
||||
issue-number: ${{ steps.pr.outputs.result }}
|
||||
body: |
|
||||
Hey @${{ steps.login.outputs.result }},
|
||||
|
||||
This merge has triggered a release, hurray!
|
||||
|
||||
[Here you can follow the release.](https://github.com/trilom/file-changes-action/pull/${{ steps.create-pr.outputs.pr_number }})
|
||||
|
||||
Please use this new **Pull Request** if there are any issues to communicate further.
|
||||
|
||||
Thanks!
|
||||
# - uses: actions/github-script@0.6.0
|
||||
# if: steps.create-pr.outputs.pr_number != '' && steps.semantic.outputs.new_release_published == 'true'
|
||||
# with:
|
||||
# github-token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
# script: |
|
||||
# github.issues.addLabels({owner: context.repo.owner, repo: context.repo.repo, issue_number: ${{ steps.create-pr.outputs.pr_number }},
|
||||
# labels: ['${{ steps.semantic.outputs.new_release_version }}']
|
||||
# })
|
||||
# make sure we can build
|
||||
build:
|
||||
name: yarn install && tsc
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn build
|
||||
# unit test with jest
|
||||
test-unit:
|
||||
name: jest unit tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn build
|
||||
- run: yarn test-coverage
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
# integration test with jest
|
||||
test-integration:
|
||||
name: jest integration tests
|
||||
needs: test-unit
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn build
|
||||
- run: yarn test-integration
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
# lint code and comment back if possible
|
||||
lintdog:
|
||||
name: eslintdog (reviewdog)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Lint and report push
|
||||
uses: reviewdog/action-eslint@v1
|
||||
with:
|
||||
github_token: ${{ secrets.TRILOM_BOT_TOKEN }}
|
||||
reporter: github-check
|
||||
eslint_flags: 'src/**/*.ts'
|
||||
86
.github/actions/file-changes-action/.github/workflows/readme.md
vendored
Normal file
86
.github/actions/file-changes-action/.github/workflows/readme.md
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
|
||||
# Workflow Information
|
||||
|
||||
- [Workflow Information](#workflow-information)
|
||||
- [Overview](#overview)
|
||||
- [Schedule](#schedule)
|
||||
- [Issue Comment](#issue-comment)
|
||||
- [Pull Request](#pull-request)
|
||||
- [Push](#push)
|
||||
|
||||
# Overview
|
||||
|
||||
1. Make a **Pull Request** from your forked branch (forked from _master_) with changes to _trilom/file-changes-action/master_ branch.
|
||||
2. Once merged into master this will lint the code and provide output in the checks, update the AUTHORS file, and package _dist/_. If there is a release then this will create a **Pull Request** from the _v\*\*_ branch to _master_ and a comment will be made on the original **Pull Request** notifying contributors. If there is not a release the changes will be **push**ed to _master_.
|
||||
3. In the **Pull Request** linting and testing will be performed again. If _linted_, _tested-unit_, _tested-integration_, _builds_, and _lintdogged_ label exist and _hold merge_ does not the release will be merged into _master_.
|
||||
4. Once merged this time [semantic-release](https://github.com/semantic-release/semantic-release) will run to create the Github Release, release notes, changelog, notify Slack, package and deploy to NPM and Github Package Repo, label the release, and notify any issues of it's deployment.
|
||||
5. After user semantic-release-bot commits the release commit, this code will be pushed to the release branch.
|
||||
|
||||
## Schedule
|
||||
|
||||
- Everyday at 5:00 AM GMT:
|
||||
- Run integration tests via Github Actions.
|
||||
|
||||
## Issue Comment
|
||||
|
||||
- When any `created` **Issue Comment** type runs on a **Pull Request** from trilom with the body of `/integrationNUMBER`(**integration.yml**):
|
||||
- Run integration tests via Github Actions with PR.
|
||||
- **NOT IMPLEMENTED** When any `created` **Issue Comment** type runs on a **Pull Request** from trilom with the body of `/release`(**automerge.yml**):
|
||||
- If _linted_, _tested-unit_, _tested-integration_, _builds_, _lintdogged_, and _hold merge_ or _automated merge_ **does not** labels exist:
|
||||
- Merge the PR and add the _automated merge_ label
|
||||
- If failure, put some output on the original PR.
|
||||
|
||||
## Pull Request
|
||||
|
||||
- When any `opened`, `reopened`, or `synchronize` **Pull Request** type runs to the _master_ branch from a _v\*\*_ branch:
|
||||
- Run integration tests via Github Actions.
|
||||
|
||||
- When any `opened` or `reopened` **Pull Request** type runs on any branch other than _master_ from anyone other than trilom or trilom-bot from a forked branch(**close_pr.yml**):
|
||||
- Close the **Pull Request** and put the dunce cap on.
|
||||
|
||||
- When any `labeled`, or `closed` **Pull Request** type runs on _master_, _next_, _alpha_, or _beta_(**automerge.yml**):
|
||||
- If _linted_, _tested-unit_, _tested-integration_, _builds_, _lintdogged_, and _hold merge_ or _automated merge_ **does not** labels exist:
|
||||
- Merge the PR and add the _automated merge_ label
|
||||
- If failure, put some output on the original PR.
|
||||
|
||||
- When any `opened`, `reopened`, or `synchronize` **Pull Request** type runs(**pr.yml**):
|
||||
- Assign it to trilom (**add-reviews**)
|
||||
- Build code with `yarn build` which runs `yarn` and `tsc` (**build**)
|
||||
- Label with builds if passing and on inner workspace
|
||||
- Test code with `yarn test-coverage` which runs `jest --coverage` (**test-unit**)
|
||||
- Label with tested-unit if passing and on inner workspace
|
||||
- Test code with `yarn test-integration` which runs `jest -c jest.config.integration.js` (**test-integration**)
|
||||
- Label with tested-integration if passing and on inner workspace
|
||||
- Test code with eslint reviewdog and report back if inner workspace (**lintdog**)
|
||||
- Label with pretty if passing and on inner workspace
|
||||
- Check format of code with `yarn format-check` which runs `prettier --check` (**format_check_push**)
|
||||
- If:
|
||||
- Fork then pull **Pull Request** github.ref with GITHUB_TOKEN
|
||||
- Inner **Pull Request** then pull HEAD repo ref
|
||||
- Build code with `yarn build` which runs `yarn` and `tsc`
|
||||
- If format-check succeeds and on inner workspace
|
||||
- Label with pretty
|
||||
- If format-check fails and on inner workspace and actor is not trilom-bot
|
||||
- Run `yarn format` which runs `prettier --write`
|
||||
- Clean build files with `yarn clean`
|
||||
- Commit the format changes as trilom-bot to **Pull Request** head
|
||||
|
||||
## Push
|
||||
|
||||
- When any **Push** type runs to _master_:
|
||||
- Run integration tests via Github Actions.
|
||||
- When any **Push** type runs to _master_, _next_, _alpha_, or _beta_(**push.yml**):
|
||||
- Build code with `yarn build` which runs `yarn` and `tsc` (**build**)
|
||||
- Test code with `yarn test-coverage` which runs `jest` (**test**)
|
||||
- Test code with eslint reviewdog and report back with github checks(**lintdog**)
|
||||
- When any **Push** type runs to _master_, _next_, _alpha_, or _beta_ with a head_commit message **NOT** containing 'trilom/v1.' or 'trilom/v2.':
|
||||
- Build with `yarn build-release` which runs `yarn && tsc --build tsconfig.build.json && ncc build --minify` to build the **dist/\*\*.js** files, update **AUTHORS**, format **src/\*\*.ts** files and commit.
|
||||
- Test [semantic-release](https://github.com/semantic-release/semantic-release) if a release is ready then create a **Pull Request**
|
||||
- Echo release outputs
|
||||
- Get changed files with [file-changes-action](https://github.com/trilom/file-changes-action) and build a message to post to new **Pull Request**
|
||||
- Comment on the original **Pull Request** with the new details of the release.
|
||||
- If no release, then **Push** changes directly back to master.
|
||||
- When any **Push** type runs to _master_, _next_, _alpha_, or _beta_ with a head_commit message containing 'trilom/v1.' or 'trilom/v2.':
|
||||
- Run [semantic-release](https://github.com/semantic-release/semantic-release) to prepare Github Release, release notes, changelog, notify Slack, package and deploy to NPM and Github Package Repo, label the release, and notify any issues of it's deployment.
|
||||
- When any **Push** type runs to _master_, _next_, _alpha_, or _beta_ from semantic-release-bot with a head_commit message containing 'chore(release):':
|
||||
- Get the **Pull Request** number from the **Push** and push the semantic-release changes to the tagged release branch.
|
||||
100
.github/actions/file-changes-action/.gitignore
vendored
Normal file
100
.github/actions/file-changes-action/.gitignore
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
lib
|
||||
**/outputs/**
|
||||
# Dependency directory
|
||||
node_modules
|
||||
|
||||
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
jspm_packages/
|
||||
|
||||
# # TypeScript v1 declaration files
|
||||
# typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# next.js build output
|
||||
.next
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# OS metadata
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Ignore built ts files
|
||||
__tests__/runner/*
|
||||
2
.github/actions/file-changes-action/.prettierignore
vendored
Normal file
2
.github/actions/file-changes-action/.prettierignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/dist
|
||||
/node_modules
|
||||
9
.github/actions/file-changes-action/.prettierrc.yml
vendored
Normal file
9
.github/actions/file-changes-action/.prettierrc.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
printWidth: 80
|
||||
tabWidth: 2
|
||||
useTabs: false
|
||||
semi: false
|
||||
singleQuote: true
|
||||
trailingComma: none
|
||||
bracketSpacing: false
|
||||
arrowParens: avoid
|
||||
parser: typescript
|
||||
62
.github/actions/file-changes-action/.releaserc.yml
vendored
Normal file
62
.github/actions/file-changes-action/.releaserc.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
branches:
|
||||
- "+([1-9])?(.{+([1-9]),x}).x"
|
||||
- master
|
||||
- next
|
||||
- name: alpha
|
||||
prerelease: true
|
||||
- name: beta
|
||||
prerelease: true
|
||||
dryRun: false
|
||||
plugins:
|
||||
- "@semantic-release/commit-analyzer"
|
||||
- "@semantic-release/release-notes-generator"
|
||||
-
|
||||
- semantic-release-slack-bot
|
||||
- notifyOnSuccess: true
|
||||
notifyOnFail: true
|
||||
markdownReleaseNotes: true
|
||||
onSuccessTemplate:
|
||||
text: "$package_name version v$npm_package_version!\n\n$release_notes"
|
||||
-
|
||||
- "@semantic-release/changelog"
|
||||
- changelogFile: CHANGELOG.md
|
||||
- "@semantic-release/npm"
|
||||
-
|
||||
- "@semantic-release/github"
|
||||
- assets:
|
||||
- path: "dist/**/*.js"
|
||||
label: Packaged JS Code
|
||||
successComment: >
|
||||
# 🎉🦍🎉 This <% issue.pull_request ? 'pull request' : 'issue' %>
|
||||
has been resolved in version *<%= nextRelease.version %>* at
|
||||
*trilom/file-changes-action@<%= nextRelease.gitTag %>*
|
||||
|
||||
` - name: File Changes Action
|
||||
uses: trilom/file-changes-action@<%= nextRelease.gitTag %>`
|
||||
|
||||
## Release<%= _.size(releases) > 1 ? 's' : '' %>
|
||||
|
||||
<% _.forEach(releases, function(release) { %>
|
||||
\n\t\t**Release Name:** [<%= release.name %>](<%= release.url %>)<% }); %>
|
||||
\n\n ## Commits<% _.forEach(commits, function(commit) { %>
|
||||
\n\t\t@<%= commit.author %> - [_<%= commit.message %>_](https://github.com/trilom/file-changes-action/commit/<%= commit.hash %>)<% }); %>"
|
||||
**Release Name:** [<%= release.name %>](<%= release.url %>)<% }); %>
|
||||
|
||||
## Commits
|
||||
|
||||
<% _.forEach(commits, function(commit) { %>
|
||||
@<%= commit.author.name %> - [_<%= commit.message.toString().replace(/[()\\\/_\*]/g, '') %>_](https://github.com/trilom/file-changes-action/commit/<%= commit.hash %>)<% }); %>
|
||||
labels: [failure]
|
||||
releasedLabels: ["releases/${nextRelease.gitTag}"]
|
||||
assignees: trilom
|
||||
-
|
||||
- "@semantic-release/git"
|
||||
- assets: [CHANGELOG.md, package.json, yarn.lock]
|
||||
message: >
|
||||
chore(release): 🎉🦍🎉 Release <%= nextRelease.version %> -
|
||||
<%= new Date().toLocaleDateString('en-US', {year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric' }) %> [skip ci]
|
||||
|
||||
`- name: File Changes Action
|
||||
uses: trilom/file-changes-action@<%= nextRelease.gitTag %>`
|
||||
|
||||
<%= nextRelease.notes %>
|
||||
5
.github/actions/file-changes-action/AUTHORS
vendored
Normal file
5
.github/actions/file-changes-action/AUTHORS
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
Bryan Killian <bryan.v.killian@gmail.com>
|
||||
Daniel Orner <daniel.orner@wishabi.com>
|
||||
Sergey Kluchkovsky <kaineer@gmail.com>
|
||||
|
||||
Thu May 21 14:42:36 UTC 2020
|
||||
45
.github/actions/file-changes-action/CHANGELOG.md
vendored
Normal file
45
.github/actions/file-changes-action/CHANGELOG.md
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
## [1.2.4](https://github.com/trilom/file-changes-action/compare/v1.2.3...v1.2.4) (2020-05-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **change in api:** github api had a change, this should trigger release 1.2.4. this change here quiets a quacker during the intergration test ([99f8f91](https://github.com/trilom/file-changes-action/commit/99f8f91f3ed1430713973d8f1e2848b5acc58163))
|
||||
|
||||
## [1.2.3](https://github.com/trilom/file-changes-action/compare/v1.2.2...v1.2.3) (2020-03-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test release:** testing a release ([dfca448](https://github.com/trilom/file-changes-action/commit/dfca448d9d1f04825a549ba0bc7d6b097df295a2))
|
||||
|
||||
## [1.2.2](https://github.com/trilom/file-changes-action/compare/v1.2.1...v1.2.2) (2020-03-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **issue_comment:** this needs to return PR info not commit info if before and after explicitly set, else PR ([eee976b](https://github.com/trilom/file-changes-action/commit/eee976b2219f243f83583baab84fa89376006acc))
|
||||
* **naming:** renamed "deleted" to "removed". sorry if this is breaking for you. ([800537f](https://github.com/trilom/file-changes-action/commit/800537f435a66454c64fc2b42cfd82ca33cc093d))
|
||||
* **pull_request_synchronize events:** issue with PR Synchronize events, it would return commit files instead of PR files, this is adjusted to return ALL PR files with PR synchronize event ([fb7bcc7](https://github.com/trilom/file-changes-action/commit/fb7bcc76581402f20aa64da82cd1174e313ec02c))
|
||||
* **space issue:** this should resolve the issue with using a blank space. the assumption here is that 'json' is default, if you use ' ' it will be '' which is the app default, not the action default of 'json' ([0e4184f](https://github.com/trilom/file-changes-action/commit/0e4184fe04f87323c60b71c1ccf2af95f9f35b8c)), closes [#81](https://github.com/trilom/file-changes-action/issues/81)
|
||||
|
||||
## [1.2.1](https://github.com/trilom/file-changes-action/compare/v1.2.0...v1.2.1) (2020-03-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **everything:** very proud to say this is 100% coverage according to default jest of all src code (including test) ([dd31d02](https://github.com/trilom/file-changes-action/commit/dd31d0220fdc9e6eb3469b3443239359d7da33d4))
|
||||
* **redesign:** a lot of things changed here in the project ([32903fd](https://github.com/trilom/file-changes-action/commit/32903fd341ce6a5471e3df73393784cb43adb397))
|
||||
|
||||
# [1.2.0](https://github.com/trilom/file-changes-action/compare/v1.1.0...v1.2.0) (2020-03-02)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **action:** githubToken is optional (uses action token), added githubRepo, prNumber, and pushBefore & After ([b24e2c3](https://github.com/trilom/file-changes-action/commit/b24e2c30c72710da8704a02f9d05141a19f27f83))
|
||||
|
||||
# [1.2.0](https://github.com/trilom/file-changes-action/compare/v1.1.0...v1.2.0) (2020-03-02)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **action:** githubToken is optional (uses action token), added githubRepo, prNumber, and pushBefore & After ([b24e2c3](https://github.com/trilom/file-changes-action/commit/b24e2c30c72710da8704a02f9d05141a19f27f83))
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user