MCPcopy Create free account
hub / github.com/ezyang/ghstack / DiffWithGitHubMetadata

Class DiffWithGitHubMetadata

src/ghstack/submit.py:183–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182@dataclass
183class DiffWithGitHubMetadata:
184 diff: ghstack.diff.Diff
185 number: GitHubNumber
186 username: str
187 # Really ought not to be optional, but for BC reasons it might be
188 remote_source_id: Optional[str]
189 # Guaranteed to be set for --direct PRs
190 comment_id: Optional[int]
191 title: str
192 body: str
193 closed: bool
194 ghnum: GhNumber
195 pull_request_resolved: ghstack.diff.PullRequestResolved
196 head_ref: str
197 base_ref: str
198
199
200# Metadata describing a diff we submitted to GitHub

Callers 2

elaborate_diffMethod · 0.85
_create_pull_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected