Home / Handbook / Contributors Guide / Repository Management

Repository Management Edit

The goal is for this to be a living document explaining how we collaboratively manage the Gutenberg repository. If you’d like to suggest a change, please open an issue for discussion or submit a pull request to the document.

This document covers:

Issues Issues

A healthy issue backlog is one where issues are relevant and actionable. Relevant in the sense that they relate to the project’s current priorities. Actionable in the sense that it’s clear what action(s) need to be taken to resolve the issue.

Any issues that are irrelevant or not actionable should be closed, because they get in the way of making progress on the project. Imagine the issue backlog as a desk: the more clutter you have on it, the more difficult it is to use the space to get work done.

Labels Labels

To better organize the issue backlog, all issues should have one or more labels. Here are some you might commonly see:

  • Needs Accessibility Feedback – Changes that impact accessibility and need corresponding review (e.g. markup changes).
  • Needs Design Feedback – Changes that modify the design or user experience in some way and need sign-off.
  • [Type] Bug – An existing feature is broken in some way.
  • [Type] Enhancement – Gutenberg would be better with this improvement added.
  • [Type] Plugin / Extension Conflict – Documentation of a conflict between Gutenberg and a plugin or extension. The plugin author should be informed and provided documentation on how to address.
  • [Status] Needs More Info – The issue needs more information in order to be actionable and relevant. Typically this requires follow-up from the original reporter.

Workflow labels may be applied as needed and start with “Needs”. Ideally, each workflow label will have a group that follows it, such as the Accessibility Team for Needs Accessibility Feedback, the Testing Team for Needs Testing, etc.

Priority High and Priority OMGWTFBBQ issues should have an assignee and/or be in an active milestone.

Check out the label directory for a listing of all labels.

Top ↑

Milestones Milestones

We put issues into milestones to better categorize them. Here are some you might see:

Top ↑

Triaging Issues Triaging Issues

To keep the issue backlog healthy, it needs to be triaged regularly. Triage is the practice of reviewing existing issues to make sure they’re relevant, actionable, and have all the information they need.

Anyone can help triage the backlog, although you’ll need contributor permission on the Gutenberg repository to modify an issue’s labels or edit its title.

Here are a couple places you can start:

When reviewing the issue backlog, here are some steps you can perform:

  • If it’s a bug report, test to confirm the report. If there is not enough information to confirm the report, add the [Status] Needs More Info label.
  • If the issue is missing labels, add some to better categorize it.
  • If the issue is duplicate of another already in the backlog, close the issue by commenting with “Duplicate of #”. Add any relevant new details to the existing issue.
  • If there was conversation on the issue but no actionable steps identified, follow up with the participants to see what’s actionable.
  • If the title doesn’t communicate the issue, edit it for clarity.
  • If you feel comfortable triaging the issue further, then you can also:
    • Check that the bug report is valid by debugging it to see if you can track down the technical specifics.
    • Check if the issue is missing some detail and see if you can fill in those details. For instance, if a bug report is missing visual detail, it’s helpful to reproduce the issue locally and upload a GIF.

Top ↑

Pull Requests Pull Requests

Gutenberg follows a feature branch pull request workflow for all code and documentation changes. At a high-level, the process looks like this:

  1. Check out a new feature branch locally.
  2. Make your changes, testing thoroughly.
  3. Commit your changes when you’re happy with them, and push the branch.
  4. Open your pull request.

Along with this process, there are a few important points to mention:

  • Non-trivial pull requests should be preceded by a related issue that defines the problem to solve and allows for discussion of the most appropriate solution before actually writing code.
  • To make it far easier to merge your code, each pull request should only contain one conceptual change. Keeping contributions atomic keeps the pull request discussion focused on one topic and makes it possible to approve changes on a case-by-case basis.
  • Separate pull requests can address different items or todos from their linked issue, there’s no need for a single pull request to cover a single issue if the issue is non-trivial.

Top ↑

Code Review Code Review

Every pull request goes through a manual code review, in addition to automated tests. The objectives for the code review are best thought of as:

  • Correct — Does the change do what it’s supposed to?
  • Secure — Would a nefarious party find some way to exploit this change?
  • Readable — Will your future self be able to understand this change months down the road?
  • Elegant — Does the change fit aesthetically within the overall style and architecture?
  • Altruistic — How does this change contribute to the greater whole?

As a reviewer, your feedback should be focused on the idea, not the person. Seek to understand, be respectful, and focus on constructive dialog.

As a contributor, your responsibility is to learn from suggestions and iterate your pull request should it be needed based on feedback. Seek to collaborate and produce the best possible contribution to the greater whole.

Top ↑

Design Review Design Review

If your pull request impacts the design, you can ask for a designer to review. Most pull requests that have an impact on design are reviewed. However, you can request a design review on something by adding the Needs Design Feedback label. As a guide, this could be:

  • Something based on a previous design, to check is as that design.
  • Anything that changes something visually.
  • If you just want design feedback on an idea or exploration.

Top ↑

Merging Pull Requests Merging Pull Requests

A pull request can generally be merged once it is:

  • Deemed a worthwhile change to the codebase.
  • In compliance with all relevant code review criteria.
  • Covered by sufficient tests, as necessary.
  • Vetted against all potential edge cases.
  • Changelog entries were properly added.
  • Reviewed by someone other than the original author.

The final pull request merge decision is made by the @wordpress/gutenberg-core team.

Please make sure to assign your merged pull request to its release milestone. Doing so creates the historical legacy of what code landed when, and makes it possible for all project contributors (even non-technical ones) to access this information.

Top ↑

Closing Pull Requests Closing Pull Requests

Sometimes, a pull request may not be mergeable, no matter how much additional effort is applied to it (e.g. out of scope). In these cases, it’s best to communicate with the contributor graciously while describing why the pull request was closed, this encourages productive future involvement.

Make sure to:

  1. Thank the contributor for their time and effort.
  2. Fully explain the reasoning behind the decision to close the pull request.
  3. Link to as much supporting documentation as possible.

If you’d like a template to follow:

Thanks ____ for the time you’ve spent on this pull request.

I’m closing this pull request because ____. To clarify further, ____.

For more details, please see ____ and ____.

Top ↑

Projects Projects

We use GitHub projects to keep track of details that aren’t immediately actionable, but that we want to keep around for future reference.

Some key projects include:

Skip to toolbar