Skip to content

Commit 7b1fa96

Browse files
committed
Merge branch 'develop' into trunk
2 parents 5fcad8e + cc1e78d commit 7b1fa96

32 files changed

+18039
-10431
lines changed

.babelrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.browserslistrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# These owners will be the default owners for everything in the repo. Unless a later match takes precedence, @10up/open-source-practice or @davidrgreen, as primary maintainers will be requested for review when someone opens a Pull Request.
2-
* @10up/open-source-practice @davidrgreen
1+
# These owners will be the default owners for everything in the repo. Unless a later match takes precedence, @jeffpaul, @dkotter, or @davidrgreen, as primary maintainers will be requested for review when someone opens a Pull Request.
2+
* @jeffpaul @dkotter @davidrgreen
33

44
# GitHub and WordPress.org specifics
55
/.github/ @jeffpaul

.github/workflows/build-release-zip.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Cache vendor
1818
id: cache-composer
19-
uses: actions/cache@v3
19+
uses: actions/cache@v4
2020
env:
2121
cache-name: cache-vendor
2222
with:
@@ -27,17 +27,17 @@ jobs:
2727

2828
- name: Cache node_modules
2929
id: cache-node-modules
30-
uses: actions/cache@v3
30+
uses: actions/cache@v4
3131
env:
3232
cache-name: cache-node-modules
3333
with:
3434
path: node_modules
3535
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
3636

3737
- name: Setup node version and npm cache
38-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@v4
3939
with:
40-
node-version: 16
40+
node-version-file: '.nvmrc'
4141
cache: 'npm'
4242

4343
- name: Install Node dependencies
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
1-
name: No Response
1+
name: 'Close stale issues'
22

33
# **What it does**: Closes issues where the original author doesn't respond to a request for information.
44
# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded.
5-
# **Who does it impact**: Everyone that works on docs or docs-internal.
65

76
on:
8-
issue_comment:
9-
types: [created]
107
schedule:
11-
# Schedule for five minutes after the hour, every hour
12-
- cron: '5 * * * *'
8+
# Schedule for every day at 1:30am UTC
9+
- cron: '30 1 * * *'
10+
11+
permissions:
12+
issues: write
1313

1414
jobs:
15-
noResponse:
15+
stale:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: lee-dohm/[email protected]
18+
- uses: actions/stale@v9
1919
with:
20-
token: ${{ github.token }}
21-
daysUntilClose: 14 # Number of days of inactivity before an Issue is closed for lack of response
22-
responseRequiredLabel: "needs:feedback" # Label indicating that a response from the original author is required
23-
closeComment: >
20+
days-before-stale: 7
21+
days-before-close: 7
22+
stale-issue-message: >
23+
It has been 7 days since more information was requested from you in this issue and we have not heard back. This issue is now marked as stale and will be closed in 7 days, but if you have more information to add then please comment and the issue will stay open.
24+
close-issue-message: >
2425
This issue has been automatically closed because there has been no response
2526
to our request for more information. With only the
2627
information that is currently in the issue, we don't have enough information
2728
to take action. Please reach out if you have or find the answers we need so
2829
that we can investigate further. See [this blog post on bug reports and the
2930
importance of repro steps](https://www.lee-dohm.com/2015/01/04/writing-good-bug-reports/)
3031
for more information about the kind of information that may be helpful.
32+
stale-issue-label: 'stale'
33+
close-issue-reason: 'not_planned'
34+
any-of-labels: 'needs:feedback'
35+
remove-stale-when-updated: true
36+

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: 'Checkout Repository'
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: Dependency Review
2020
uses: actions/dependency-review-action@v3
2121
with:

.github/workflows/deploy-to-dotorg.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Setup node version
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 16
18+
node-version-file: '.nvmrc'
1919

2020
- name: Build
2121
run: |
@@ -32,11 +32,8 @@ jobs:
3232
SLUG: ad-refresh-control
3333

3434
- name: Upload release asset
35-
uses: actions/upload-release-asset@v1
35+
uses: softprops/action-gh-release@v2
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
with:
39-
upload_url: ${{ github.event.release.upload_url }}
40-
asset_path: ${{ github.workspace }}/ad-refresh-control.zip
41-
asset_name: ad-refresh-control.zip
42-
asset_content_type: application/zip
39+
files: ${{github.workspace}}/${{ github.event.repository.name }}.zip

.github/workflows/lint.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,21 @@ jobs:
1414
name: eslint
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: install node v12
19-
uses: actions/setup-node@v1
17+
- uses: actions/checkout@v4
18+
- name: Install node
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: 12
22-
- name: npm install
23-
run: npm install
24-
- name: eslint
25-
uses: icrawl/action-eslint@v1
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
with:
29-
custom-glob: assets
21+
node-version-file: '.nvmrc'
22+
- name: Install NPM dependencies
23+
run: npm ci
24+
- name: Run eslint
25+
run: npm run lint-js
3026
phpcs:
3127
name: phpcs
3228
runs-on: ubuntu-latest
3329
steps:
3430
- name: Checkout
35-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4
3632
- name: Set PHP version
3733
uses: shivammathur/setup-php@v2
3834
with:

.github/workflows/update-asset-readme-on-dotorg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup node version
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 16
19+
node-version-file: '.nvmrc'
2020

2121
- name: Build
2222
run: |

0 commit comments

Comments
 (0)