mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 13:31:10 +00:00
PR template improvements (#14148)
* Minor edits to CONTRIBUTING * Update PULL_REQUEST_TEMPLATE * Add Closes for GH semantic linking * Update docs/PULL_REQUEST_TEMPLATE.md * Update docs/PULL_REQUEST_TEMPLATE.md * Apply suggestions from code review * Update docs/PULL_REQUEST_TEMPLATE.md --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -81,20 +81,20 @@ When reviewing a pull request, the end-goal is to suggest useful changes to the
|
||||
To create a Polkadot companion PR:
|
||||
|
||||
. Pull latest Polkadot master (or clone it, if you haven't yet).
|
||||
. Override substrate deps to point to your local path or branch using https://github.com/bkchr/diener. (E.g. from the polkadot clone dir run `diener patch --crates-to-patch ../substrate --substrate` assuming substrate clone is in a sibling dir. If you do use diener, ensure that you _do not_ commit the changes diener makes to the Cargo.tomls.)
|
||||
. Make the changes required and build polkadot locally.
|
||||
. Override substrate deps to point to your local path or branch using https://github.com/bkchr/diener. (E.g. from the Polkadot clone dir run `diener patch --crates-to-patch ../substrate --substrate` assuming substrate clone is in a sibling dir. If you do use diener, ensure that you _do not_ commit the changes diener makes to the Cargo.tomls.)
|
||||
. Make the changes required and build Polkadot locally.
|
||||
. Submit all this as a PR against the Polkadot Repo.
|
||||
. In the _description_ of your _Substrate_ PR add "polkadot companion: [Polkadot_PR_URL]"
|
||||
. Now you should see that the `check_polkadot` CI job will build your Substrate PR agains the mentioned Polkadot branch in your PR description.
|
||||
. Someone will need to approve the Polkadot PR before the Substrate CI will go green. (The Polkadot CI failing can be ignored as long as the polkadot job in the _substrate_ PR is green).
|
||||
. In the _description_ of your _Substrate_ PR add "Polkadot companion: [Polkadot_PR_URL]"
|
||||
. Now you should see that the `check_polkadot` CI job will build your Substrate PR against the mentioned Polkadot branch in your PR description.
|
||||
. Someone will need to approve the Polkadot PR before the Substrate CI will go green. (The Polkadot CI failing can be ignored as long as the Polkadot job in the _substrate_ PR is green).
|
||||
. Wait for reviews on both the Substrate and the Polkadot PRs.
|
||||
. Once the Substrate PR runs green, a member of the `parity` github group can comment on the Substrate PR with `bot merge` which will:
|
||||
. Once the Substrate PR runs green, a member of the `parity` Github group can comment on the Substrate PR with `bot merge` which will:
|
||||
- Merge the Substrate PR.
|
||||
- The bot will push a commit to the Polkadot PR updating its Substrate reference. (effecively doing `cargo update -p sp-io`)
|
||||
- If the polkadot PR origins from a fork then a project member may need to press `approve run` on the polkadot PR.
|
||||
- The bot will push a commit to the Polkadot PR updating its Substrate reference. (effectively doing `cargo update -p sp-io`)
|
||||
- If the Polkadot PR origins from a fork then a project member may need to press `approve run` on the Polkadot PR.
|
||||
- The bot will merge the Polkadot PR once all its CI `{"build_allow_failure":false}` checks are green.
|
||||
Note: The merge-bot currently doesn't work with forks on org accounts, only individual accounts.
|
||||
(Hint: it's recommended to use `bot merge` to merge all substrate PRs, not just ones with a polkadot companion.)
|
||||
(Hint: it's recommended to use `bot merge` to merge all substrate PRs, not just ones with a Polkadot companion.)
|
||||
|
||||
If your PR is reviewed well, but a Polkadot PR is missing, signal it with https://github.com/paritytech/substrate/labels/E6-needs_polkadot_pr[`E6-needs_polkadot_pr`] to prevent it from getting automatically merged. In most cases the CI will add this label automatically.
|
||||
|
||||
@@ -102,7 +102,7 @@ As there might be multiple pending PRs that might conflict with one another, a)
|
||||
|
||||
== Helping out
|
||||
|
||||
We use https://paritytech.github.io/labels/doc_substrate.html[labels] to manage PRs and issues and communicate state of a PR. Please familiarize yourself with them. Best way to get started is to a pick a ticket tagged https://github.com/paritytech/substrate/issues?q=is%3Aissue+is%3Aopen+label%3AZ1-easy[`easy`] or https://github.com/paritytech/substrate/issues?q=is%3Aissue+is%3Aopen+label%3AZ2-medium[`medium`] and get going or https://github.com/paritytech/substrate/issues?q=is%3Aissue+is%3Aopen+label%3AZ6-mentor[`mentor`] and get in contact with the mentor offering their support on that larger task.
|
||||
We use https://paritytech.github.io/labels/doc_substrate.html[labels] to manage PRs and issues and communicate state of a PR. Please familiarize yourself with them. The best way to get started is to a pick a ticket tagged https://github.com/paritytech/substrate/issues?q=is%3Aissue+is%3Aopen+label%3AZ1-easy[`easy`] or https://github.com/paritytech/substrate/issues?q=is%3Aissue+is%3Aopen+label%3AZ2-medium[`medium`] and get going or https://github.com/paritytech/substrate/issues?q=is%3Aissue+is%3Aopen+label%3AZ6-mentor[`mentor`] and get in contact with the mentor offering their support on that larger task.
|
||||
|
||||
== Issues
|
||||
Please label issues with the following labels:
|
||||
@@ -120,7 +120,7 @@ Declaring formal releases remains the prerogative of the project maintainer(s).
|
||||
UI tests are used for macros to ensure that the output of a macro doesn't change and is in the expected format. These UI tests are sensible to any changes
|
||||
in the macro generated code or to switching the rust stable version. The tests are only run when the `RUN_UI_TESTS` environment variable is set. So, when
|
||||
the CI is for example complaining about failing UI tests and it is expected that they fail these tests need to be executed locally. To simplify the updating
|
||||
of the UI test ouput there is the `.maintain/update-rust-stable.sh` script. This can be run with `.maintain/update-rust-stable.sh CURRENT_STABLE_VERSION`
|
||||
of the UI test output there is the `.maintain/update-rust-stable.sh` script. This can be run with `.maintain/update-rust-stable.sh CURRENT_STABLE_VERSION`
|
||||
and then it will run all UI tests to update the expected output.
|
||||
|
||||
== Changes to this arrangement
|
||||
|
||||
@@ -2,34 +2,34 @@
|
||||
|
||||
✄ -----------------------------------------------------------------------------
|
||||
|
||||
Thank you for your Pull Request! 🙏
|
||||
Thank you for your Pull Request! 🙏 Please make sure it follows the contribution guidelines outlined in [this document](./CONTRIBUTING.adoc) and fill out the sections below. Once you're ready to submit your PR for review, please delete this section and leave only the text under the "Description" heading.
|
||||
|
||||
Before you submit, please check that:
|
||||
# Description
|
||||
|
||||
- [ ] **Description:** You added a brief description of the PR, e.g.:
|
||||
- What does it do?
|
||||
- What important points should reviewers know?
|
||||
- Is there something left for follow-up PRs?
|
||||
- [ ] **Labels:** You labeled the PR appropriately if you have permissions to do so:
|
||||
- [ ] `A*` for PR status (**one required**)
|
||||
- [ ] `B*` for changelog (**one required**)
|
||||
- [ ] `C*` for release notes (**exactly one required**)
|
||||
- [ ] `D*` for various implications/requirements
|
||||
- [ ] Github project assignment
|
||||
- [ ] **Related Issues:** You mentioned a related issue if this PR is related to it, e.g. `Fixes #228` or `Related #1337`.
|
||||
- [ ] **2 Reviewers:** You asked at least two reviewers to review. If you aren't sure, start with GH suggestions.
|
||||
- [ ] **Style Guide:** Your PR adheres to [the style guide](https://github.com/paritytech/substrate/blob/master/docs/STYLE_GUIDE.md).
|
||||
- In particular, mind the maximal line length of 100 (120 in exceptional circumstances).
|
||||
- There is no commented code checked in unless necessary.
|
||||
- Any panickers in the runtime have a proof or were removed.
|
||||
- [ ] **Docs:** You updated any rustdocs which may need to change, as described [here](https://github.com/paritytech/substrate/blob/master/docs/DOCUMENTATION_GUIDELINES.md).
|
||||
- [ ] **Polkadot Companion:** Has the PR altered the external API or interfaces used by Polkadot?
|
||||
- [ ] If so, do you have the corresponding Polkadot PR ready?
|
||||
- [ ] Optionally: Do you have a corresponding Cumulus PR?
|
||||
*Please include a summary of the changes and the related issue. Please also include relevant motivation and context, including:*
|
||||
|
||||
Refer to [the contributing guide](https://github.com/paritytech/substrate/blob/master/docs/CONTRIBUTING.adoc) for details.
|
||||
- What does this PR do?
|
||||
- Why are these changes needed?
|
||||
- How were these changes implemented and what do they affect?
|
||||
|
||||
After you've read this notice feel free to remove it.
|
||||
Thank you!
|
||||
*Use [Github semantic linking](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) to address any open issues this PR relates to or closes.*
|
||||
|
||||
Fixes # (issue number, *if applicable*)
|
||||
|
||||
Closes # (issue number, *if applicable*)
|
||||
|
||||
Polkadot companion: (*if applicable*)
|
||||
|
||||
Cumulus companion: (*if applicable*)
|
||||
|
||||
# Checklist
|
||||
|
||||
- [ ] My PR includes a detailed description as outlined in the "Description" section above
|
||||
- [ ] My PR follows the [labeling requirements](./CONTRIBUTING.adoc#merge-process) of this project (at minimum one label for each `A`, `B`, `C` and `D` required)
|
||||
- [ ] I have made corresponding changes to the documentation (if applicable)
|
||||
- [ ] I have added tests that prove my fix is effective or that my feature works (if applicable)
|
||||
- [ ] If this PR alters any external APIs or interfaces used by Polkadot, the corresponding Polkadot PR is ready as well as the corresponding Cumulus PR (optional)
|
||||
|
||||
You can remove the "Checklist" section once all have been checked. Thank you for your contribution!
|
||||
|
||||
✄ -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user