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

Add command line option to specify labels

Open
#64 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

  • #65 by @samestep — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github, python
Domain
api, cli

Research direction

Start at ghstack's command-line option parsing and the code that creates pull requests through the GitHub API. Confirm how labels can be applied, then trace the option value through to that API call. Done means users can provide labels when invoking ghstack and the created PR receives them.

Written by the indexing model from the issue text.

Description

Consider adding a command line option (e.g. --labels=...) that would allow users to specify labels that should be applied to the PR when it is created. Without this, users have to open the PR and add the label(s) manually or use the GitHub command line tool after running ghstack.

I'm 90% sure the GitHub API supports adding labels to PRs (either at creation time or after), so I think it's matter of adding the option and plumbing the value provided by the user through to the API call.

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.