Skip to content

Commit f44190b

Browse files
authored
Merge pull request #297 from doctrine/10.0.x
Merge 10.0.x up into 10.1.x
2 parents 7903671 + 3ca9b69 commit f44190b

File tree

4 files changed

+53
-49
lines changed

4 files changed

+53
-49
lines changed

.doctrine-project.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,33 @@
55
"docsSlug": "doctrine-coding-standard",
66
"versions": [
77
{
8-
"name": "9.0",
9-
"branchName": "9.0.x",
10-
"slug": "9.0",
8+
"name": "11.0",
9+
"branchName": "11.0.x",
10+
"slug": "11.0",
1111
"upcoming": true
1212
},
1313
{
14-
"name": "8.2",
15-
"branchName": "8.2.x",
16-
"slug": "8.2",
14+
"name": "10.0",
15+
"branchName": "10.0.x",
16+
"slug": "10.0",
1717
"current": true,
1818
"aliases": [
1919
"current",
2020
"stable"
2121
]
2222
},
23+
{
24+
"name": "9.0",
25+
"branchName": "9.0.x",
26+
"slug": "9.0",
27+
"maintained": false
28+
},
29+
{
30+
"name": "8.2",
31+
"branchName": "8.2.x",
32+
"slug": "8.2",
33+
"maintained": false
34+
},
2335
{
2436
"name": "8.1",
2537
"branchName": "8.1.x",

.github/workflows/release-on-milestone-closed.yml

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,9 @@ on:
88
jobs:
99
release:
1010
name: "Git tag, release & create merge-up PR"
11-
runs-on: "ubuntu-20.04"
12-
13-
steps:
14-
- name: "Checkout"
15-
uses: "actions/checkout@v2"
16-
17-
- name: "Release"
18-
uses: "laminas/automatic-releases@v1"
19-
with:
20-
command-name: "laminas:automatic-releases:release"
21-
env:
22-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
23-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
24-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
25-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
26-
27-
- name: "Create Merge-Up Pull Request"
28-
uses: "laminas/automatic-releases@v1"
29-
with:
30-
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
31-
env:
32-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
33-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
34-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
35-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
36-
37-
- name: "Create new milestones"
38-
uses: "laminas/automatic-releases@v1"
39-
with:
40-
command-name: "laminas:automatic-releases:create-milestones"
41-
env:
42-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
43-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
44-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
45-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
11+
uses: "doctrine/.github/.github/workflows/[email protected]"
12+
secrets:
13+
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
14+
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
15+
ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
16+
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing
2+
3+
See https://www.doctrine-project.org/projects/doctrine-coding-standard/en/stable/reference/index.html#contributing

docs/en/reference/index.rst

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,24 @@ and `the list of configuration options <https://github.com/squizlabs/PHP_CodeSni
117117

118118
To learn about customizing the rules, please refer to the :ref:`customizing` chapter.
119119

120+
Contributing
121+
============
122+
120123
Versioning
121-
==========
124+
----------
122125

123126
This library follows semantic versioning, and additions to the code ruleset
124127
are only performed in major releases.
125128

129+
The patch branch can receive internal changes, such as CI pipeline
130+
improvements, test workflow improvements, and can receive bugfixes. For
131+
instance, such as removing rules that were not meant to be added.
132+
133+
The minor branch can receive refactorings, and dependency updates that
134+
do not affect the code ruleset.
135+
126136
Testing
127-
=======
137+
-------
128138

129139
If you are contributing to the Doctrine Coding Standard and want to test your contribution, you just
130140
need to execute the ``test`` GNU make target:
@@ -136,13 +146,21 @@ need to execute the ``test`` GNU make target:
136146
Sometimes you are enabling a sniff that enforces some features for a specific PHP version, that will
137147
probably cause our build pipeline to fail when running on such versions.
138148

139-
We have created the ``update-compatibility-patch`` GNU make target to help you with that:
149+
We have created the ``update-compatibility-patch-*`` GNU make targets to
150+
help you with that. For instance, for PHP 6.0, you would run
140151

141152
.. code-block:: bash
142153
143-
$ make update-compatibility-patch
154+
$ make update-compatibility-patch-60
155+
156+
That target will attempt to apply the latest version of our
157+
compatibility patch for that version of PHP and ask you to adjust the
158+
code in ``tests/fixed`` and ``tests/expected_report.txt`` using the
159+
editor of your preference.
160+
161+
If the patch does not apply cleanly, you can edit it to edit or remove
162+
hunks that relate to files you changed in your PR.
144163

145-
That target will apply the latest version of our compatibility patch and ask you to adjust the code in ``tests/fixed`` and
146-
``tests/expected_report.txt`` using the editor of your preference.
147-
Once you are done, please type "y" to resume the command, which will update the compatibility patch and create a commit
148-
with your changes for you to push to your remote branch.
164+
Once you are done, please type "y" to resume the command, which will
165+
update the compatibility patch and create a commit with your changes for
166+
you to push to your remote branch.

0 commit comments

Comments
 (0)