Guidelines for opening pull requests in this project.
Open pull requests against the develop branch, not master. Add the
backport-master label to each pull request.
CI runs commitlint on the PR title. Write the title as a commit header, with the rules in commit-guidelines.md. The title must be 72 characters or fewer. Before you open the pull request, lint the title:
echo "<title>" | npx commitlintNever hard-wrap the PR description at 80 characters, or at any width. GitHub renders the description as markdown and wraps it for the reader. Hand-wrapped lines break when the reader changes the width of the box, and they are hard to edit. Let each paragraph run on one line. The 72-character limit applies to the commit header only, not to the PR body.
Attach screenshots to the pull request directly. Do not commit a screenshot to
the repository and link it with a raw.githubusercontent.com URL. GitHub
deletes the branch when the pull request merges. Every link to that branch then
gives a 404, and the description shows a broken image to each reader. The
screenshots in press#7405 broke
this way. Paste each image into the description box instead. GitHub uploads it
and keeps it for the life of the pull request.
Mergify makes the backport pull request against master after the merge. It
does a cherry-pick of each commit in the pull request. A merge commit from
develop in the branch makes the cherry-pick fail, and then Mergify does not
make the backport.
Do not merge develop into a pull request branch, and do not use the "Update
branch" button of GitHub. If the branch has a merge conflict, or a CI failure
that a newer develop fixes, you can update the branch. In other cases, keep
the branch as it is.
After the merge, make sure that Mergify opened the backport pull request. If Mergify reports a conflict or a failure, make the backport yourself, or tell a maintainer.