Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoformat markdown files #66235

Open
wants to merge 14 commits into
base: trunk
Choose a base branch
from
24 changes: 15 additions & 9 deletions .github/ISSUE_TEMPLATE/Bug_report_mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name: Bug report (Mobile)
about: Report a bug with the mobile app version of Gutenberg
labels: Mobile App - i.e. Android or iOS

---

<!--
Expand All @@ -21,9 +20,11 @@ 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 '...'
Expand All @@ -32,24 +33,29 @@ Please list the steps needed to reproduce the bug. For example:
-->

## 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.
the bug.
-->

## WordPress information
- WordPress version: <!-- e.g. "5.8.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" -->

- WordPress version: <!-- e.g. "5.8.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 -->

- 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 -->
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
---
name: Feature request
about: Propose an idea for a feature or an enhancement
labels: "[Type] Enhancement"

labels: '[Type] Enhancement'
---

## 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 ...".
-->

## What is your proposed solution?

<!--
Please outline the feature or enhancement that you want and how it addresses any
problem identified above.
Expand Down
11 changes: 8 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,32 @@
https://github.com/WordPress/gutenberg/blob/trunk/CONTRIBUTING.md -->

## What?

<!-- In a few words, what is the PR actually doing? -->

## Why?

<!-- Why is this PR necessary? What problem is it solving? Reference any existing previous issue(s) or PR(s), but please add a short summary here, too -->

## How?

<!-- How is your PR addressing the issue at hand? What are the implementation details? -->

## Testing Instructions

<!-- Please include step by step instructions on how to test this PR. -->
<!-- 1. Open a post or page. -->
<!-- 2. Insert a heading block. -->
<!-- 3. etc. -->

### Testing Instructions for Keyboard

<!-- How can you test the changes by using the keyboard only? Please note, this is required for PRs that change the user interface (UI). This ensures the PR can be tested for any possible accessibility regressions. -->

## Screenshots or screencast <!-- if applicable -->

<!-- If you would like to upload screenshots, feel free to use the table below when it is useful to show the difference between before and after the change. -->

|Before|After|
|-|-|
|<!-- Before screenshot here -->|<!-- After screenshot here -->|
| Before | After |
| ------------------------------- | ------------------------------ |
| <!-- Before screenshot here --> | <!-- After screenshot here --> |
9 changes: 4 additions & 5 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

# Gutenberg Project Support

Welcome to Gutenberg, a WordPress project. We hope you join us in creating the future platform for publishing; all are welcome here.

* Please see the [Contributing Guidelines](https://github.com/WordPress/gutenberg/blob/HEAD/CONTRIBUTING.md) for additional information on how to contribute.
- Please see the [Contributing Guidelines](https://github.com/WordPress/gutenberg/blob/HEAD/CONTRIBUTING.md) for additional information on how to contribute.

* As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](https://make.wordpress.org/handbook/community-code-of-conduct/).
- As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](https://make.wordpress.org/handbook/community-code-of-conduct/).

* Join us on Slack for real-time communication, it is where maintainers coordinate around the project. To get started using Slack, see: https://make.wordpress.org/chat/
- Join us on Slack for real-time communication, it is where maintainers coordinate around the project. To get started using Slack, see: https://make.wordpress.org/chat/

* For general WordPress support with the core editor, see the [WordPress.org support forums](https://wordpress.org/support/forums/) — it is highly active and well maintained.
- For general WordPress support with the core editor, see the [WordPress.org support forums](https://wordpress.org/support/forums/) — it is highly active and well maintained.
2 changes: 1 addition & 1 deletion .github/workflows/check-backport-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

# Find any changelog file that contains the Gutenberg PR link
gutenberg_pr_url="https://github\.com/WordPress/gutenberg/pull/${PR_NUMBER}"
changelog_file=$(grep -rl "[-*] ${gutenberg_pr_url}" "${changelog_folder}" | head -n 1)
changelog_file=$(grep -Erl "[-*] +${gutenberg_pr_url}" "${changelog_folder}" | head -n 1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is important to review. The backport changelog has changed its format to adhere to the standard markdown formatting. The regex would not correctly recognized the autoformatted markdown.

I've extracted this change to #68049 so it can be landed separate from all the autoformatting work here.


# Confirm that there is an entry containing the Gutenberg PR link
if [[ -z "${changelog_file}" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6279.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6279

* https://github.com/WordPress/gutenberg/pull/60063
- https://github.com/WordPress/gutenberg/pull/60063
6 changes: 3 additions & 3 deletions backport-changelog/6.6/6522.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
https://github.com/WordPress/wordpress-develop/pull/6522

* https://github.com/WordPress/gutenberg/pull/60106
* https://github.com/WordPress/gutenberg/pull/60228
* https://github.com/WordPress/gutenberg/pull/61638
- https://github.com/WordPress/gutenberg/pull/60106
- https://github.com/WordPress/gutenberg/pull/60228
- https://github.com/WordPress/gutenberg/pull/61638
8 changes: 4 additions & 4 deletions backport-changelog/6.6/6559.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
https://github.com/WordPress/wordpress-develop/pull/6559

* https://github.com/WordPress/gutenberg/pull/60349
* https://github.com/WordPress/gutenberg/pull/60464
* https://github.com/WordPress/gutenberg/pull/60491
* https://github.com/WordPress/gutenberg/pull/61757
- https://github.com/WordPress/gutenberg/pull/60349
- https://github.com/WordPress/gutenberg/pull/60464
- https://github.com/WordPress/gutenberg/pull/60491
- https://github.com/WordPress/gutenberg/pull/61757
4 changes: 2 additions & 2 deletions backport-changelog/6.6/6567.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/6567

* https://github.com/WordPress/gutenberg/pull/47271
* https://github.com/WordPress/gutenberg/pull/61774
- https://github.com/WordPress/gutenberg/pull/47271
- https://github.com/WordPress/gutenberg/pull/61774
6 changes: 3 additions & 3 deletions backport-changelog/6.6/6590.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
https://github.com/WordPress/wordpress-develop/pull/6590

* https://github.com/WordPress/gutenberg/pull/59531
* https://github.com/WordPress/gutenberg/pull/61182
* https://github.com/WordPress/gutenberg/pull/61717
- https://github.com/WordPress/gutenberg/pull/59531
- https://github.com/WordPress/gutenberg/pull/61182
- https://github.com/WordPress/gutenberg/pull/61717
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6605.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6605

* https://github.com/WordPress/gutenberg/pull/61851
- https://github.com/WordPress/gutenberg/pull/61851
10 changes: 5 additions & 5 deletions backport-changelog/6.6/6616.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
https://github.com/WordPress/wordpress-develop/pull/6616

* https://github.com/WordPress/gutenberg/pull/58409
* https://github.com/WordPress/gutenberg/pull/61328
* https://github.com/WordPress/gutenberg/pull/61842
* https://github.com/WordPress/gutenberg/pull/62199
* https://github.com/WordPress/gutenberg/pull/62252
- https://github.com/WordPress/gutenberg/pull/58409
- https://github.com/WordPress/gutenberg/pull/61328
- https://github.com/WordPress/gutenberg/pull/61842
- https://github.com/WordPress/gutenberg/pull/62199
- https://github.com/WordPress/gutenberg/pull/62252
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6656.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6656

* https://github.com/WordPress/gutenberg/pull/60715
- https://github.com/WordPress/gutenberg/pull/60715
4 changes: 2 additions & 2 deletions backport-changelog/6.6/6662.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/6662

* https://github.com/WordPress/gutenberg/pull/57908
* https://github.com/WordPress/gutenberg/pull/62125
- https://github.com/WordPress/gutenberg/pull/57908
- https://github.com/WordPress/gutenberg/pull/62125
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6694.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6694

* https://github.com/WordPress/gutenberg/pull/60694
- https://github.com/WordPress/gutenberg/pull/60694
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6731.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6731

* https://github.com/WordPress/gutenberg/pull/62299
- https://github.com/WordPress/gutenberg/pull/62299
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6737.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6737

* https://github.com/WordPress/gutenberg/pull/62305
- https://github.com/WordPress/gutenberg/pull/62305
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6744.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6744

* https://github.com/WordPress/gutenberg/pull/62355
- https://github.com/WordPress/gutenberg/pull/62355
4 changes: 2 additions & 2 deletions backport-changelog/6.6/6756.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/6756

* https://github.com/WordPress/gutenberg/pull/62461
* https://github.com/WordPress/gutenberg/pull/62495
- https://github.com/WordPress/gutenberg/pull/62461
- https://github.com/WordPress/gutenberg/pull/62495
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6785.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6785

* https://github.com/WordPress/gutenberg/pull/62459
- https://github.com/WordPress/gutenberg/pull/62459
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6797.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6797

* https://github.com/WordPress/gutenberg/pull/62526
- https://github.com/WordPress/gutenberg/pull/62526
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6824.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6824

* https://github.com/WordPress/gutenberg/pull/62550
- https://github.com/WordPress/gutenberg/pull/62550
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6825.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6825

* https://github.com/WordPress/gutenberg/pull/62552
- https://github.com/WordPress/gutenberg/pull/62552
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6827.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6827

* https://github.com/WordPress/gutenberg/pull/62465
- https://github.com/WordPress/gutenberg/pull/62465
4 changes: 2 additions & 2 deletions backport-changelog/6.6/6837.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/6837

* https://github.com/WordPress/gutenberg/pull/62529
* https://github.com/WordPress/gutenberg/pull/62610
- https://github.com/WordPress/gutenberg/pull/62529
- https://github.com/WordPress/gutenberg/pull/62610
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6841.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6841

* https://github.com/WordPress/gutenberg/pull/62598
- https://github.com/WordPress/gutenberg/pull/62598
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6844.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6844

* https://github.com/WordPress/gutenberg/pull/62640
- https://github.com/WordPress/gutenberg/pull/62640
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6854.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6854

* https://github.com/WordPress/gutenberg/pull/62670
- https://github.com/WordPress/gutenberg/pull/62670
4 changes: 2 additions & 2 deletions backport-changelog/6.6/6864.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/6864

* https://github.com/WordPress/gutenberg/pull/62488
* https://github.com/WordPress/gutenberg/pull/62696
- https://github.com/WordPress/gutenberg/pull/62488
- https://github.com/WordPress/gutenberg/pull/62696
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6873.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6873

* https://github.com/WordPress/gutenberg/pull/62712
- https://github.com/WordPress/gutenberg/pull/62712
3 changes: 1 addition & 2 deletions backport-changelog/6.6/6959.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6959

* https://github.com/WordPress/gutenberg/pull/63071

- https://github.com/WordPress/gutenberg/pull/63071
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6987.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6987

* https://github.com/WordPress/gutenberg/pull/63207
- https://github.com/WordPress/gutenberg/pull/63207
2 changes: 1 addition & 1 deletion backport-changelog/6.6/6989.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6989

* https://github.com/WordPress/gutenberg/pull/63172
- https://github.com/WordPress/gutenberg/pull/63172
2 changes: 1 addition & 1 deletion backport-changelog/6.6/7012.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7012

* https://github.com/WordPress/gutenberg/pull/63403
- https://github.com/WordPress/gutenberg/pull/63403
2 changes: 1 addition & 1 deletion backport-changelog/6.6/7036.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7036

* https://github.com/WordPress/gutenberg/pull/63436
- https://github.com/WordPress/gutenberg/pull/63436
2 changes: 1 addition & 1 deletion backport-changelog/6.6/7061.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7061

* https://github.com/WordPress/gutenberg/pull/63726
- https://github.com/WordPress/gutenberg/pull/63726
3 changes: 1 addition & 2 deletions backport-changelog/6.6/7088.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7088

* https://github.com/WordPress/gutenberg/pull/63918

- https://github.com/WordPress/gutenberg/pull/63918
2 changes: 1 addition & 1 deletion backport-changelog/6.6/7097.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7097

* https://github.com/WordPress/gutenberg/pull/63980
- https://github.com/WordPress/gutenberg/pull/63980
2 changes: 1 addition & 1 deletion backport-changelog/6.6/7145.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7145

* https://github.com/WordPress/gutenberg/pull/64076
- https://github.com/WordPress/gutenberg/pull/64076
2 changes: 1 addition & 1 deletion backport-changelog/6.7/6668.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6668

* https://github.com/WordPress/gutenberg/pull/62092
- https://github.com/WordPress/gutenberg/pull/62092
2 changes: 1 addition & 1 deletion backport-changelog/6.7/6750.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6750

* https://github.com/WordPress/gutenberg/pull/62357
- https://github.com/WordPress/gutenberg/pull/62357
2 changes: 1 addition & 1 deletion backport-changelog/6.7/6836.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6836

* https://github.com/WordPress/gutenberg/pull/60100
- https://github.com/WordPress/gutenberg/pull/60100
2 changes: 1 addition & 1 deletion backport-changelog/6.7/6991.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6991

* https://github.com/WordPress/gutenberg/pull/61382
- https://github.com/WordPress/gutenberg/pull/61382
2 changes: 1 addition & 1 deletion backport-changelog/6.7/7020.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7020

* https://github.com/WordPress/gutenberg/pull/63470
- https://github.com/WordPress/gutenberg/pull/63470
4 changes: 2 additions & 2 deletions backport-changelog/6.7/7125.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/7125

* https://github.com/WordPress/gutenberg/pull/61577
* https://github.com/WordPress/gutenberg/pull/64610
- https://github.com/WordPress/gutenberg/pull/61577
- https://github.com/WordPress/gutenberg/pull/64610
6 changes: 3 additions & 3 deletions backport-changelog/6.7/7137.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
https://github.com/WordPress/wordpress-develop/pull/7137

* https://github.com/WordPress/gutenberg/pull/64128
* https://github.com/WordPress/gutenberg/pull/64192
* https://github.com/WordPress/gutenberg/pull/64328
- https://github.com/WordPress/gutenberg/pull/64128
- https://github.com/WordPress/gutenberg/pull/64192
- https://github.com/WordPress/gutenberg/pull/64328
Loading
Loading