Feature request: Group stacks of pull requests and expandable previous deploys

Open
#1,513 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github, ruby
Domain
devops, release

Research direction

Start by tracing how the stack page builds the Undeployed Commits section and how Previous Deploys rows fetch commit details; the issue does not name files or tests. The proposed work includes grouping stacked pull requests with an opt-in configuration and lazy-loading commits for expandable deploy rows. Done means both views show the described grouping or commit details, including warnings for failing or locked pull requests.

Written by the indexing model from the issue text.

Description

Hello,

With github's stacked pull requests now generally available, I noticed the stack page doesn't know about them yet. When a stack of five pull requests is merged, the 'Undeployed Commits' section shows five unrelated rows.

Deploying the newest one ships all five, but nothing on the page says they belong together, and a failing or locked pull request in the middle of the stack is easy to miss.

I've run it locally to make an example. Here's what that looks like today, with a stack of five Currency pull requests among other commits:

BEFORE: Image

What do you think about grouping them? The newest pull request would keep its Deploy button, the earlier ones would be nested under it, and a small warning would say when one of them is failing or locked:

AFTER: Image

Finding a commit's stack costs one extra GitHub API request per new commit, so I'd make it opt-in per stack:

deploy:
  group_stacked_pull_requests: true

While I was at it, I also looked at Previous Deploys. Today each row only names one commit, so you can't see what a deploy shipped without opening it:

BEFORE: Image

I made each row expandable to list every commit the deploy shipped. The commits only load when you click:

AFTER: Image

I'm happy to open it as one PR or as two smaller ones, whichever is easier for you to review.

Would you be open to discuss about this before I open officially a PR?
Thanks a lot

Dominant language
Ruby
Stars
1.5k
Forks
158
Avg merge
18h 55m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Shopify/shipit-engine

All issues in Shopify/shipit-engine

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.