Skip to content
digitalizando.

GitHub makes the next steps on a pull request clearer

GitHub updated its public preview of the pull request overview. It now distinguishes failed optional checks from merge blockers more clearly. Try both types of checks in a test repository.

Mikhail Nilov / Pexels

A failed check can be a warning or a blocker

Imagine a text correction where all required tests pass, but an optional formatting check fails. Another proposal also fails in the mandatory task that covers altered behavior. The reviewers of both pull requests need to make different decisions. On November 19th, GitHub updated the new pull request overview, clearly separating failed optional checks from merge blocks.

The preview has been open since November 5th. GitHub has refined how it displays the integration status and upcoming actions. The effective policy for each repository continues to depend on the configured rules. The team using the interface needs to know which tasks have been marked as requirements and which have been listed as warnings, so they can make a decision afterward.

Document what each check is meant to catch

Consider a accessibility check that identifies an issue on all pages when an external environment is unavailable. This can be a valuable observation while the team is working towards reliable results. A suite of unit tests for a calculation used by clients may also have a different level of requirements. Please name these checks so that the person reviewing them can understand what each one covers, where to find the error, and who is responsible for modifying the rule.

Check the screen when switching to a new target branch. For example, a repository might require review by someone responsible for a module in the main branch, while using simpler conditions in a test branch. Use the rules panel as a configuration source and the overview as a point of observation for a real pull request. Record both states when there’s any uncertainty.

Four states in a test repository

Create four fictitious pull requests with simple changes. In the first, ensure all checks pass, with the necessary approvals. In the second, make only one check fail (an optional one). In the third, make a mandatory check fail. In the fourth, pass all checks and leave one approval pending. Configure the policy in the test repository and proactively record which scenarios can be integrated.

Ask two people to open the pages and identify the next step before looking at the logs. Record whether they know which result requires action, which is only a warning, and which depends on a reviewer. If an optional failure becomes a roadblock for the person, check if the name and instructions of the check explain the consequence. If the screen and the policy diverge, compare the destination of the pull request and the applicable requirements in the rule.

Measure the time to the first correct action

Identify the first correct action – whether it’s opening the job with an error, requesting approval from the appropriate person, or reading the warning and continuing the review. Then, check what was left unfinished due to a lack of responsibility. A clearer interface could eliminate the question of what’s missing and also leave a recurring problem unresolved, one that no one has taken ownership of.

Select a real pull request, without significant changes, after repeating the four stages in the exercise. Use the overview with the person who typically makes the merge decision and with whom the project is arriving. The improvement becomes visible when both interpret the same page, can explain the rule, and find the necessary information to complete the review.

Source github.blog ·