Skip to content

Commit

Permalink
Merge branch 'master' into try/query-pagination-blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jan 18, 2021
2 parents 25e8f9e + e65d5cf commit 1d060af
Show file tree
Hide file tree
Showing 250 changed files with 5,371 additions and 2,358 deletions.
33 changes: 23 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,29 @@ module.exports = {
},
],
'@wordpress/no-unsafe-wp-apis': 'off',
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'lodash',
importNames: [ 'memoize' ],
message: 'Please use `memize` instead.',
},
{
name: 'reakit',
message:
'Please use Reakit API through `@wordpress/components` instead.',
},
{
name: 'redux',
importNames: [ 'combineReducers' ],
message:
'Please use `combineReducers` from `@wordpress/data` instead.',
},
],
},
],
'no-restricted-syntax': [
'error',
// NOTE: We can't include the forward slash in our regex or
Expand All @@ -79,16 +102,6 @@ module.exports = {
message:
'Deprecated functions must be removed before releasing this version.',
},
{
selector:
'ImportDeclaration[source.value="redux"] Identifier.imported[name="combineReducers"]',
message: 'Use `combineReducers` from `@wordpress/data`',
},
{
selector:
'ImportDeclaration[source.value="lodash"] Identifier.imported[name="memoize"]',
message: 'Use memize instead of Lodash’s memoize',
},
{
selector:
'CallExpression[callee.object.name="page"][callee.property.name="waitFor"]',
Expand Down
11 changes: 7 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/packages/data-controls @nerrad

# Blocks
/packages/block-library @ajitbohra @talldan
/packages/block-library @ajitbohra
/packages/block-library/src/gallery @mkevins
/packages/block-library/src/social-links @mkaz
/packages/block-library/src/social-link @mkaz
Expand Down Expand Up @@ -54,7 +54,7 @@
/packages/custom-templated-path-webpack-plugin @ntwb @nerrad @ajitbohra
/packages/docgen @nosolosw
/packages/e2e-test-utils @gziolo @ntwb @nerrad @ajitbohra
/packages/e2e-tests @ntwb @nerrad @ajitbohra @talldan
/packages/e2e-tests @ntwb @nerrad @ajitbohra
/packages/eslint-plugin @gziolo @ntwb @nerrad @ajitbohra
/packages/jest-console @gziolo @ntwb @nerrad @ajitbohra
/packages/jest-preset-default @gziolo @ntwb @nerrad @ajitbohra
Expand Down Expand Up @@ -88,10 +88,10 @@
/packages/html-entities
/packages/i18n @swissspidy
/packages/is-shallow-equal
/packages/keycodes @talldan @ellatrix
/packages/keycodes @ellatrix
/packages/priority-queue
/packages/token-list
/packages/url @talldan
/packages/url
/packages/wordcount
/packages/warning
/packages/keyboard-shortcuts
Expand All @@ -116,6 +116,9 @@
/lib @timothybjacobs @spacedmonkey
/lib/global-styles.php @timothybjabocs @spacedmonkey @nosolosw
/lib/experimental-default-theme.json @timothybjabocs @spacedmonkey @nosolosw
/lib/class-wp-theme-json.php @timothybjabocs @spacedmonkey @nosolosw
/lib/class-wp-theme-json-resolver.php @timothybjabocs @spacedmonkey @nosolosw
/phpunit/class-wp-theme-json-test.php @nosolosw

# Native (Unowned)
*.native.js @ghost
Expand Down
94 changes: 61 additions & 33 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,68 @@
---
name: Bug report
about: Create a report to help us improve
about: Report a bug with the WordPress block editor or Gutenberg plugin

---

**Describe the bug**
A clear and concise description of what the bug is.
<!--
Please fill out ALL required sections. Bug reports with missing information will
be closed.
**To reproduce**
Steps to reproduce the behavior:
Before submitting a bug report:
- Check if the bug has already been fixed by updating WordPress and/or Gutenberg.
- Check if the bug is caused by a plugin by deactivating all plugins except Gutenberg.
- Check if the bug is caused by a theme by activating a default theme e.g. Twenty Twenty.
- Check if the bug has already been reported by searching https://github.com/WordPress/gutenberg/issues.
If this is a security issue, please report it in HackerOne instead:
https://hackerone.com/wordpress
-->

## Description
<!-- Please write a brief description of the bug. -->

## Step-by-step reproduction instructions
<!--
Please list the steps needed to reproduce the bug. For example:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Editor version (please complete the following information):**
- WordPress version: [e.g: 5.3.2]
- Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? [e.g: "gutenberg plugin", "default"]
- If the Gutenberg plugin is installed, which version is it? [e.g., 7.6]

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
- To report a security issue, please visit the WordPress HackerOne program: https://hackerone.com/wordpress.
2. Click on '...'
3. Scroll down to '...'
-->

## Expected behaviour
<!-- Please describe what you expected to happen. -->

## Actual behaviour
<!-- Please describe what actually happened. -->

## Screenshots or screen recording (optional)
<!--
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/
-->

## Code snippet (optional)
<!--
If this bug is to related to a developer API, please share a code snippet that
demonstrates the issue.
For small snippets paste it directly here, or you can use GitHub Gist to share
multiple code files: https://gist.github.com
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.
-->

## WordPress information
- WordPress version: <!-- e.g. "5.6.0". Find this in Tools → Site Health → Info → WordPress -->
- Gutenberg version: <!-- e.g. "9.4.0" or "Not installed" -->
- Are all plugins except Gutenberg deactivated? <!-- "Yes" or "No" -->
- Are you using a default theme (e.g. Twenty Twenty-One)? <!-- "Yes" or "No" -->

## Device information
- Device: <!-- e.g. "Desktop" or "iPhone 11" -->
- Operating system: <!-- e.g. "Windows 10" or "iOS 14" -->
- Browser: <!-- e.g. "Chrome 86.0" or "Mobile Safari" -->
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report_mobile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
name: Bug report (Mobile)
about: Report a bug with the mobile app version of Gutenberg
labels: Mobile App Android/iOS

---

<!--
Please fill out ALL required sections. Bug reports with missing information will
be closed.
Before submitting a bug report:
- Check if the bug has already been fixed by updating WordPress and/or Gutenberg.
- Check if the bug is caused by a plugin by deactivating all plugins except Gutenberg.
- Check if the bug is caused by a theme by activating a default theme e.g. Twenty Twenty.
- Check if the bug has already been reported by searching https://github.com/WordPress/gutenberg/issues.
If this is a security issue, please report it in HackerOne instead:
https://hackerone.com/wordpress
-->

## Description
<!-- Please write a brief description of the bug. -->

## Step-by-step reproduction instructions
<!--
Please list the steps needed to reproduce the bug. For example:
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
-->

## Expected behaviour
<!-- Please describe what you expected to happen. -->

## Actual behaviour
<!-- Please describe what actually happened. -->

## Screenshots or screen recording (optional)
<!--
If possible, please upload a screenshot or screen recording which demonstrates
the bug.
-->

## WordPress information
- WordPress version: <!-- e.g. "5.6.0". Find this in Tools → Site Health → Info → WordPress -->
- Gutenberg version: <!-- e.g. "9.4.0" or "Not installed" -->
- Are all plugins except Gutenberg deactivated? <!-- "Yes" or "No" -->
- Are you using a default theme (e.g. Twenty Twenty-One)? <!-- "Yes" or "No" -->

## Device information
- Device: <!-- e.g. "Pixel 4" or "iPhone 11" -->
- Operating system: <!-- e.g. "Android 11.0" or "iOS 14.0" -->
- WordPress app version: <!-- e.g. "16.3" or branch name / git commit hash -->
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/Custom.md

This file was deleted.

20 changes: 12 additions & 8 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
about: Propose an idea for a feature or an enhancement

---

**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 [...]
## What problem does this address?
<!--
Please describe if this feature or enhancement is related to a current problem
or pain point. For example, "I'm always frustrated when ..." or "It is currently
difficult to ...".
-->

**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.
## What is your proposed solution?
<!--
Please outline the feature or enhancement that you want and how it addresses any
problem identified above.
-->
34 changes: 0 additions & 34 deletions .github/ISSUE_TEMPLATE/Mobile_apps_bug_report.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: General help request
url: https://wordpress.org/support/forum/how-to-and-troubleshooting/
about: For general help requests, create a new topic in the Fixing WordPress support forum
- name: Technical help request
url: https://wordpress.org/support/forum/wp-advanced/
about: For more technical help requests, create a new topic in the Developing with WordPress Forum
- name: Development help request
url: https://wordpress.stackexchange.com/
about: For questions about WordPress development, ask a question in the WordPress Development Stack Exchange
18 changes: 18 additions & 0 deletions .github/workflows/stale-issue-needs-info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Close stale issues that requires info"
on:
schedule:
- cron: "30 1 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Help us move this issue forward. Since it has no activity after 15 days of requesting more information, a bot is marking the issue as stale. Please add additional information as a comment or this issued will be closed in 5 days.'
close-issue-message: 'This issue was closed because more information was requested and there was no activity. If this is a bug report and still a problem, please supply the additional information requested and reopen the issue.'
days-before-stale: 15
days-before-close: 5
only-labels: '[Status] Needs More Info'
stale-issue-label: '[Status] Stale'
12 changes: 11 additions & 1 deletion bin/plugin/commands/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,18 @@ async function updatePackages(
const changelogFiles = await glob(
path.resolve( gitWorkingDirectoryPath, 'packages/*/CHANGELOG.md' )
);
const changelogFilesPublicPackages = changelogFiles.filter(
( changelogPath ) => {
const pkg = require( path.join(
path.dirname( changelogPath ),
'package.json'
) );
return pkg.private !== true;
}
);

const processedPackages = await Promise.all(
changelogFiles.map( async ( changelogPath ) => {
changelogFilesPublicPackages.map( async ( changelogPath ) => {
const fileStream = fs.createReadStream( changelogPath );

const rl = readline.createInterface( {
Expand Down
Loading

0 comments on commit 1d060af

Please sign in to comment.