Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`ghstack submit --update-fields` created a new pull request if the ghstack info is damaged or missing

Open
#252 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
github, python
Domain
cli, devtools

Research direction

Start at the ghstack submit --update-fields entry point and reproduce the case with a damaged or missing Pull Request resolved value in the commit message. Review how the command handles the shown URL form versus the numeric form; done requires an agreed behavior, either failing safely or updating only an existing pull request.

Written by the indexing model from the issue text.

Description

This might not be expected behavior. Two other possibilities are that ghstack submit --update-fields fails if the ghstack info in the commit message is damaged or missing, or to create another flag --update-only/-U, with this behavior.

I'd be willing to submit a pull request for either one of these behaviors if there were interest.

This happened when I restored my ghstack info from a branch as:

    ghstack-source-id: de78c83d0763391c27c41501f614fafd49c9395c
    Pull Request resolved: #128416

instead of

    ghstack-source-id: de78c83d0763391c27c41501f614fafd49c9395c
    Pull Request resolved: https://github.com/pytorch/pytorch/pull/128416
Dominant language
Python
Stars
1k
Forks
84
Avg merge
10m
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 ezyang/ghstack

All issues in ezyang/ghstack

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.