summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorJason Blais <jason@spinpunch.com>2017-03-20 18:31:18 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-03-20 18:31:18 -0400
commit036dcddd3a315dd936428259c58ba9db17189065 (patch)
tree3dda202a68bb41235d1b82a7ee3f0e59b3bb9259 /CONTRIBUTING.md
parent886621824332006c6a5e8f0ef14804ef669960ff (diff)
downloadchat-036dcddd3a315dd936428259c58ba9db17189065.tar.gz
chat-036dcddd3a315dd936428259c58ba9db17189065.tar.bz2
chat-036dcddd3a315dd936428259c58ba9db17189065.zip
Update contributing guidelines for platform repo (#5455)
* Update CONTRIBUTING.md * Fix formatting * Update CONTRIBUTING.md * Update CONTRIBUTING.md * ES: minor tweaks to review process * Update CONTRIBUTING.md
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md59
1 files changed, 45 insertions, 14 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index dca4e672c..3d87ef997 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,31 +1,62 @@
# Code Contribution Guidelines
-Please see the [Mattermost Contribution Guide](http://docs.mattermost.com/developer/contribution-guide.html) which describes the process for making code contributions across Mattermost projects.
+Thank you for your interest in contributing! Please see the [Mattermost Contribution Guide](http://docs.mattermost.com/developer/contribution-guide.html) which describes the process for making code contributions across Mattermost projects.
### Review Process for this Repo
-After following the steps in the [Contribution Guide](http://docs.mattermost.com/developer/contribution-guide.html), submitted pull requests go through the review process outlined below. We aim to start reviewing pull requests in this repo the week they are submitted, but the length of time to complete the process will vary depending on the pull request.
+When you submit a pull request, it goes through the review process outlined below. We aim to start reviewing pull requests in this repo the week they are submitted, but the length of time to complete the process will vary depending on the pull request.
The one exception may be around release time, where the review process may take longer as the team focuses on our [release process](https://docs.mattermost.com/process/release-process.html).
-#### `Stage 1: PM Review`
+#### PR submitted
-A Product Manager will review the pull request to make sure it:
+After a PR is submitted, a core committer applies labels and notifies product managers (PMs) that there is a PR awaiting review by posting in the [PM/Docs PR Review channel](https://pre-release.mattermost.com/core/channels/pmdocs-pr-review-pub), which is a channel to discuss community pull requests that need review by PMs.
-1. Fits with our product roadmap
-2. Works as expected
-3. Meets UX guidelines
+Then, one or more of the labels is applied:
+ - `Awaiting PR`: Applied if the PR is awaiting another to be merged. For example, when a client PR is awaiting a server PR to be merged first. Once the PR is no longer blocked, the core committer removes the `Awaiting PR` label
+ - `1: PM Review`: Applied if the PR has UI changes or functionality that PMs can test on test servers called "spinmints"
+ - `Setup Test Server`: Applied if the PR is queued for PM testing
+ - `Work in Progress`: Applied if the PR is unfinished and needs further work before it's ready for review
-This step is sometimes skipped for bugs or small improvements with a ticket, but always happens for new features or pull requests without a related ticket.
+#### Stage 1: PM Review
-The Product Manager may come back with some bugs or UI improvements to fix before the pull request moves on to the next stage.
+A product manager will review the pull request to make sure it:
-#### `Stage 2: Dev Review`
+ - Fits with our product roadmap
+ - Works as described in the ticket
+ - Meets [user experience guidelines](https://docs.mattermost.com/developer/fx-guidelines.html)
-Two developers will review the pull request and either give feedback or `+1` the PR.
+This step is sometimes skipped for bugs or small improvements with a well defined ticket.
-Any comments will need to be addressed before the pull request moves on to the last stage.
+When the review process begins, the PM applies a milestone:
+ - Set for next release if the PM thinks there is enough time for the PR to be merged and sufficiently tested on `master` before code complete.
+ - Set for a future release if PR is too large to test prior to the code complete date
+ - PM responds to submitter letting them know that PR may have a delay in review due to the release cycle
-#### `Stage 3: Ready to Merge`
+Next, the PM tests changes on the spinmint:
+ - If changes are required, PM submits review as "Changes Requested", with a comment on the areas that require updates. Comment explains why changes are needed linking back to design principles.
+ - PM applies `Awaiting Submitter Action` label to more easily query the PR queue
+ - Once changes are made, PM regenerates test server and repeats testing.
+ - If bugs are found that are also on `master`, a new bug report is submitted in JIRA and linked to the PR. Bugs that are also found on `master` will typically not block merging of PRs.
+ - If PR is approved, PM submits review as "Approved" commenting with areas that were tested. Then:
+ - PM removes `1: PM Review` and `Setup Test Server` labels
+ - PM applies the `Stage 2: Dev Review` label, which moves the PR to Stage 2
-The review process is complete, and the pull request will be merged.
+#### Stage 2: Dev Review
+
+Two developers will review the pull request and either give feedback or approve the PR. If changes are required:
+ - Dev submits review as "Changes Requested", with a comment on the areas that require tweaks.
+ - Once changes are made, dev reviews code changes
+
+Any comments should be addressed before the pull request moves on to the last stage.
+
+#### Stage 3: Ready to Merge
+
+The review process is complete, and the pull request will be merged.
+
+#### PR Merged
+
+After a PR is merged:
+- External Contributions: PM closes the [Help Wanted] issue and related Jira ticket
+- Internal Contributions: Core committer resolves the JIRA ticket
+- PM follows up for docs, changelog and release tests when working through the PR tracking spreadsheet