Skip to content

Commit d7ed3cc

Browse files
committed
Merge branch 'develop'
2 parents 2a3a535 + 0d87efd commit d7ed3cc

File tree

283 files changed

+34356
-17028
lines changed

Some content is hidden

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

283 files changed

+34356
-17028
lines changed

.distignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Directories to ignore
2+
/.git
3+
/.github
4+
/.wordpress-org
5+
/node_modules
6+
/tests
7+
/vendor
8+
9+
# Files to ignore
10+
/.*
11+
/CHANGELOG.md
12+
/CODE_OF_CONDUCT.md
13+
/composer.json
14+
/composer.lock
15+
/CONTRIBUTING.md
16+
/CREDITS.md
17+
/LICENSE.md
18+
/package-lock.json
19+
/package.json
20+
/phpcs-compat.xml
21+
/phpcs.xml
22+
/README.md
23+
/SECURITY.md
24+
/stylelint.config.js

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = tab
9+
10+
[{*.json,*.yml,.babelrc,.bowerrc,.browserslistrc,.postcssrc}]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.txt,wp-config-sample.php]
15+
end_of_line = crlf

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@10up/eslint-config/wordpress'],
3+
};

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/.github export-ignore
2+
/.wordpress-org export-ignore
3+
/node_modules export-ignore
4+
/tests export-ignore
5+
/vendor export-ignore
6+
7+
/.* export-ignore
8+
/CHANGELOG.md export-ignore
9+
/CODE_OF_CONDUCT.md export-ignore
10+
/composer.json export-ignore
11+
/composer.lock export-ignore
12+
/CONTRIBUTING.md export-ignore
13+
/CREDITS.md export-ignore
14+
/LICENSE.md export-ignore
15+
/package-lock.json export-ignore
16+
/package.json export-ignore
17+
/phpcs-compat.xml export-ignore
18+
/phpcs.xml export-ignore
19+
/README.md export-ignore
20+
/SECURITY.md export-ignore
21+
/stylelint.config.js export-ignore
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: "\U0001F41B Bug report"
2+
description: "Report a bug with this project."
3+
labels: "type:bug"
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report! Please fill in as much of the template below as you can.
9+
- type: textarea
10+
attributes:
11+
label: Describe the bug
12+
description: Please write a clear and concise description of the bug, including what you expect to happen and what is currently happening.
13+
placeholder: |
14+
Feature '...' is not working properly. I expect '...' to happen, but '...' happens instead
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
attributes:
20+
label: Steps to Reproduce
21+
description: Please write the steps needed to reproduce the bug.
22+
placeholder: |
23+
1. Go to '...'
24+
2. Click on '...'
25+
3. Scroll down to '...'
26+
4. See error
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
attributes:
32+
label: Screenshots, screen recording, code snippet
33+
description: |
34+
If possible, please upload a screenshot or screen recording which demonstrates the bug. You can use LIEcap to create a GIF screen recording: https://www.cockos.com/licecap/
35+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
36+
For small snippets paste it directly here, or you can use GitHub Gist to share multiple code files: https://gist.github.com
37+
Please ensure the shared code can be used by a developer to reproduce the issue—ideally it can be copied into a local development environment or executed in a browser console to help debug the issue
38+
validations:
39+
required: false
40+
41+
- type: textarea
42+
attributes:
43+
label: Environment information
44+
placeholder: |
45+
- Device: <!-- [e.g. MacBook] -->
46+
- OS: <!-- [e.g. MacOS 10.14.3] -->
47+
- Browser and version: <!-- [e.g. Firefox 65.0.1, Chrome 73.0.3683.75, Safari 12.0.3] -->
48+
validations:
49+
required: false
50+
51+
- type: textarea
52+
attributes:
53+
label: WordPress information
54+
placeholder: |
55+
<!-- If your WordPress version is below 5.2, then please provide your WordPress, Plugins, Themes versions here. -->
56+
<!-- If your WordPress version is 5.2 or higher, then please fill out the Site Health Info details below. -->
57+
<details><summary>Site Health info:</summary>
58+
<!-- Go to Tools > Site Health > Info tab, click "Copy site info to clipboard", and paste those details here. -->
59+
</details>
60+
validations:
61+
required: false
62+
63+
- type: checkboxes
64+
id: terms
65+
attributes:
66+
label: Code of Conduct
67+
description: By submitting this issue, you agree to follow our `Code of Conduct` (see the `CODE_OF_CONDUCT.md` file in the repo).
68+
options:
69+
- label: I agree to follow this project's Code of Conduct
70+
required: true
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "\U0001F680 Enhancement"
2+
description: "Suggest an idea for this project."
3+
labels: "type:enhancement"
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for suggesting an idea to make things better. Please fill in as much of the template below as you can.
9+
- type: textarea
10+
attributes:
11+
label: Is your enhancement related to a problem? Please describe.
12+
description: Please describe the problem you are trying to solve.
13+
placeholder: |
14+
I use this project as a `...` and I would like `...` so that `...describe benefit...`.
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
attributes:
20+
label: Designs
21+
description: |
22+
If applicable, add mockups/screenshots/etc. to help explain your idea.
23+
Tip: You can attach images or videos by clicking this area to highlight it and then dragging files in.
24+
validations:
25+
required: false
26+
27+
- type: textarea
28+
attributes:
29+
label: Describe alternatives you've considered
30+
description: |
31+
Please describe alternative solutions or features you have considered.
32+
placeholder: |
33+
I have also considered `...describe alternative...`, however I feel that my solution described above is better because of `...reason...`.
34+
validations:
35+
required: false
36+
37+
- type: checkboxes
38+
id: terms
39+
attributes:
40+
label: Code of Conduct
41+
description: By submitting this issue, you agree to follow our `Code of Conduct` (see the `CODE_OF_CONDUCT.md` file in the repo).
42+
options:
43+
- label: I agree to follow this project's Code of Conduct
44+
required: true

.github/ISSUE_TEMPLATE/3-help.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "❓ Need help?"
2+
description: "Ask us a question, we are here to help!"
3+
labels: "type:question"
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
If you have a question that is neither a bug report nor an enhancement, then please post it here! Please fill in as much of the template below as you can.
9+
- type: textarea
10+
attributes:
11+
label: Describe your question
12+
description: A clear and concise description of what your question is.
13+
validations:
14+
required: true
15+
16+
- type: checkboxes
17+
id: terms
18+
attributes:
19+
label: Code of Conduct
20+
description: By submitting this issue, you agree to follow our `Code of Conduct` (see the `CODE_OF_CONDUCT.md` file in the repo).
21+
options:
22+
- label: I agree to follow this project's Code of Conduct
23+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: General support request
4+
url: https://wordpress.org/support/plugin/mailchimp/
5+
about: For general support requests, create a new topic in the WordPress.org support forum.
6+
- name: Mailchimp Help Center
7+
url: https://mailchimp.com/help/
8+
about: Browse by topic or search by feature for 24/7 help with any stage of your business journey.
9+
- name: Contact Mailchimp
10+
url: https://mailchimp.com/contact/
11+
about: To contact Mailchimp about a different topic, please use one of the methods listed here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!--
2+
Filling out this template is required. Any PR that does not include enough information to be reviewed may be closed at a maintainers' discretion. All new code requires documentation and tests to ensure against regressions.
3+
-->
4+
5+
### Description of the Change
6+
<!--
7+
We must be able to understand the design of your change from this description. The maintainer reviewing this PR may not have worked with this code recently, so please provide as much detail as possible.
8+
9+
Where possible, please also include:
10+
- verification steps to ensure your change has the desired effects and has not introduced any regressions
11+
- any benefits that will be realized
12+
- any alternative implementations or possible drawbacks that you considered
13+
- screenshots or screencasts
14+
-->
15+
16+
<!-- Enter any applicable Issue number(s) here that will be closed/resolved by this PR. -->
17+
Closes #
18+
19+
### How to test the Change
20+
<!-- Please provide steps on how to test or validate that the change in this PR works as described. -->
21+
22+
### Changelog Entry
23+
<!--
24+
Please include a summary for this PR, noting whether this is something being Added / Changed / Deprecated / Removed / Fixed / or Security related. You can replace the sample entries after this comment block with the single changelog entry line for this PR. -->
25+
> Added - New feature
26+
> Changed - Existing functionality
27+
> Deprecated - Soon-to-be removed feature
28+
> Removed - Feature
29+
> Fixed - Bug fix
30+
> Security - Vulnerability
31+
32+
### Credits
33+
<!-- Please list any and all contributors on this PR so that they can be added to this projects CREDITS.md file. -->
34+
Props @username, @username2, ...
35+
36+
### Checklist:
37+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
38+
<!--- If you are unsure about any of these, please ask for clarification. We are here to help! -->
39+
- [ ] I agree to follow this project's [**Code of Conduct**](https://github.com/mailchimp/wordpress/blob/develop/CODE_OF_CONDUCT.md).
40+
- [ ] I have updated the documentation accordingly.
41+
- [ ] I have added tests to cover my change.
42+
- [ ] All new and existing tests pass.

.github/dependabot.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Basic set up for three package managers
2+
# - Disables version-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: 'github-actions'
7+
directory: '/'
8+
schedule:
9+
interval: 'weekly'
10+
# Disable version updates for GitHub Actions dependencies
11+
open-pull-requests-limit: 0
12+
labels:
13+
- "changelog: none"
14+
- "type: dependency"
15+
- "github_actions"
16+
17+
# Maintain dependencies for npm
18+
- package-ecosystem: 'npm'
19+
directory: '/'
20+
schedule:
21+
interval: 'weekly'
22+
# Disable version updates for npm dependencies
23+
open-pull-requests-limit: 0
24+
labels:
25+
- "changelog: none"
26+
- "type: dependency"
27+
- "javascript"
28+
29+
# Maintain dependencies for Composer
30+
- package-ecosystem: 'composer'
31+
directory: '/'
32+
schedule:
33+
interval: 'weekly'
34+
# Disable version updates for Composer dependencies
35+
open-pull-requests-limit: 0
36+
labels:
37+
- "changelog: none"
38+
- "type: dependencies"
39+
- "php"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build release zip
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
build:
12+
name: Build release zip
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Cache node_modules
20+
id: cache-node-modules
21+
uses: actions/cache@v4
22+
env:
23+
cache-name: cache-node-modules
24+
with:
25+
path: node_modules
26+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
27+
28+
- name: Setup node version and npm cache
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version-file: '.nvmrc'
32+
cache: 'npm'
33+
34+
- name: Install Node dependencies
35+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
36+
run: npm ci --no-optional
37+
38+
- name: Build plugin
39+
run: |
40+
npm run build
41+
42+
- name: Generate ZIP file
43+
uses: 10up/action-wordpress-plugin-build-zip@stable
44+
env:
45+
SLUG: mailchimp
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# **What it does**: Closes issues where the original author doesn't respond to a request for information.
2+
# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded.
3+
4+
name: Close stale issues
5+
6+
on:
7+
schedule:
8+
# Schedule for every day at 1:30am UTC
9+
- cron: '30 1 * * *'
10+
11+
permissions:
12+
issues: write
13+
14+
jobs:
15+
stale:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/stale@v9
20+
with:
21+
days-before-stale: 7
22+
days-before-close: 7
23+
stale-issue-message: >
24+
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.
25+
close-issue-message: >
26+
This issue has been automatically closed because there has been no response
27+
to our request for more information. With only the
28+
information that is currently in the issue, we don't have enough information
29+
to take action. Please reach out if you have or find the answers we need so
30+
that we can investigate further. See [this blog post on bug reports and the
31+
importance of repro steps](https://www.lee-dohm.com/2015/01/04/writing-good-bug-reports/)
32+
for more information about the kind of information that may be helpful.
33+
stale-issue-label: 'stale'
34+
close-issue-reason: 'not_planned'
35+
any-of-labels: 'reporter feedback'
36+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)