Skip to content

Commit e22305b

Browse files
author
gatsbybot
committed
Merge remote-tracking branch 'upstream/master' into mini-css-plugin
2 parents fe2bcc8 + 6b28b69 commit e22305b

File tree

336 files changed

+16261
-15457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+16261
-15457
lines changed

.circleci/config.yml

+8-68
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ executors:
77
parameters:
88
image:
99
type: string
10-
default: "14.17.0"
10+
default: "14.15.0"
1111
docker:
1212
- image: cimg/node:<< parameters.image >>
1313
environment:
@@ -63,7 +63,6 @@ aliases:
6363
branches:
6464
ignore:
6565
- /docs.+/
66-
- /blog.+/
6766

6867
test_template: &test_template
6968
parallelism: 4
@@ -101,7 +100,6 @@ aliases:
101100
ignore:
102101
- master
103102
- /docs.+/
104-
- /blog.+/
105103
requires:
106104
- lint
107105
- typecheck
@@ -231,19 +229,10 @@ jobs:
231229
- run: yarn check-repo-fields
232230

233231
unit_tests_node14:
232+
# GATSBY_EXPERIMENTAL_LMDB_INDEXES is not activated yet
234233
executor:
235234
name: node
236-
image: "14.17.0"
237-
<<: *test_template
238-
239-
unit_tests_node14_lmdb_store:
240-
executor:
241-
name: node
242-
image: "14.17.0"
243-
environment:
244-
GATSBY_EXPERIMENTAL_LMDB_STORE: 1
245-
GATSBY_EXPERIMENTAL_LMDB_INDEXES: 1
246-
GATSBY_EXPERIMENTAL_PARALLEL_QUERY_RUNNING: 1
235+
image: "14.15.0"
247236
<<: *test_template
248237

249238
integration_tests_gatsby_source_wordpress:
@@ -494,32 +483,7 @@ jobs:
494483
- run: git config --global user.name "GatsbyJS Bot"
495484
- run: git config --global user.email "core-team@gatsbyjs.com"
496485
- run: node scripts/gatsby-changelog-generator/update-and-open-pr.js
497-
498-
update_i18n_source:
499-
executor: node
500-
steps:
501-
- checkout
502-
- run: git config --global user.name "GatsbyJS Bot"
503-
- run: git config --global user.email "core-team@gatsbyjs.com"
504-
- run:
505-
command: yarn
506-
working_directory: ~/project/scripts/i18n
507-
- run:
508-
command: yarn run update-source
509-
working_directory: ~/project/scripts/i18n
510-
511-
sync_translation_repo:
512-
executor: node
513-
steps:
514-
- checkout
515-
- run: git config --global user.name "GatsbyJS Bot"
516-
- run: git config --global user.email "core-team@gatsbyjs.com"
517-
- run:
518-
command: yarn
519-
working_directory: ~/project/scripts/i18n
520-
- run:
521-
command: yarn run-all sync
522-
working_directory: ~/project/scripts/i18n
486+
- run: yarn format:other
523487

524488
windows_unit_tests:
525489
parallelism: 4
@@ -539,11 +503,11 @@ jobs:
539503

540504
- <<: *attach_to_bootstrap
541505
- run:
542-
name: Install node 14.17 and yarn
506+
name: Install node 14.15.0 and yarn
543507
command: |
544-
nvm install 14.17.0
545-
nvm alias default 14.17.0
546-
nvm use 14.17.0
508+
nvm install 14.15.0
509+
nvm alias default 14.15.0
510+
nvm use 14.15.0
547511
choco install yarn
548512
- run:
549513
name: Rebuild packages for windows
@@ -585,17 +549,6 @@ jobs:
585549
workflows:
586550
version: 2
587551

588-
weekly-i18n-sync:
589-
triggers:
590-
- schedule:
591-
cron: "0 1 * * 6"
592-
filters:
593-
branches:
594-
only:
595-
- master
596-
jobs:
597-
- sync_translation_repo
598-
599552
nightly-react-next:
600553
triggers:
601554
- schedule:
@@ -669,14 +622,6 @@ workflows:
669622
- lint
670623
- typecheck
671624
- bootstrap
672-
- unit_tests_node14_lmdb_store:
673-
<<: *ignore_docs
674-
# rebuild to get correct version of lmdb-store (compiled for node14 not node12)
675-
npm_rebuild: true
676-
requires:
677-
- lint
678-
- typecheck
679-
- bootstrap
680625
- integration_tests_gatsby_source_wordpress:
681626
<<: *e2e-test-workflow
682627
- integration_tests_node_manifest:
@@ -727,8 +672,3 @@ workflows:
727672
branches:
728673
only:
729674
- master
730-
- update_i18n_source:
731-
filters:
732-
branches:
733-
only:
734-
- master
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!dist
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# format-stale-output
2+
3+
Format the output of actions/stale into something you can pass to pullreminders/slack-action as blocks.
4+
5+
## Inputs
6+
7+
### `staled-issues-prs`
8+
9+
Comes from [actions/stale](https://github.com/actions/stale).
10+
11+
### `closed-issues-prs`
12+
13+
Comes from [actions/stale](https://github.com/actions/stale).
14+
15+
## Outputs
16+
17+
### `blocks`
18+
19+
Something you can directly pass to [pullreminders/slackaction](https://github.com/abinoda/slack-action) like:
20+
21+
```yaml
22+
- name: Slack Report Closed Issues
23+
uses: pullreminders/slack-action@v1.0.7
24+
env:
25+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
26+
with:
27+
args: '{\"channel\": \"${{ secrets.SLACK_STALE_CHANNEL_ID }}\", \"text\": \"\", \"blocks\": ${{ steps.format-stale-output.outputs.blocks }} }'
28+
```
29+
30+
## Example Usage
31+
32+
```yaml
33+
name: Stale Bot
34+
on:
35+
schedule:
36+
- cron: "0 */12 * * *"
37+
jobs:
38+
stale:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/stale@v4
42+
name: stale
43+
id: stale
44+
with:
45+
days-before-stale: 20
46+
days-before-close: 40
47+
- name: Format Stale Output
48+
id: format-stale-output
49+
uses: ./.github/actions/format-stale-output
50+
with:
51+
staled-issues-prs: ${{ steps.stale.outputs.staled-issues-prs }}
52+
closed-issues-prs: ${{ steps.stale.outputs.closed-issues-prs }}
53+
- name: Slack Report Closed Issues
54+
uses: pullreminders/slack-action@v1.0.7
55+
env:
56+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
57+
with:
58+
args: '{\"channel\": \"${{ secrets.SLACK_STALE_CHANNEL_ID }}\", \"text\": \"\", \"blocks\": ${{ steps.format-stale-output.outputs.blocks }} }'
59+
```
60+
61+
## Building this Action
62+
63+
Use [`@vercel/ncc`](https://github.com/vercel/ncc) to compile this action. You can run `npm run build` in this directory to run the command.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Format Stale output
2+
description: Format the output of actions/stale into something you can pass to pullreminders/slack-action as blocks
3+
inputs:
4+
staled-issues-prs:
5+
description: List of all staled issues and pull requests.
6+
required: true
7+
closed-issues-prs:
8+
description: List of all closed issues and pull requests.
9+
required: true
10+
outputs:
11+
blocks:
12+
description: Contents you can pass into "blocks" of slack-action
13+
runs:
14+
using: "node12"
15+
main: "dist/index.js"

0 commit comments

Comments
 (0)