MCPcopy Create free account
hub / github.com/pytorch/pytorch / Commit

Class Commit

scripts/release_notes/commitlist.py:38–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37@dataclasses.dataclass(frozen=False)
38class Commit:
39 commit_hash: str
40 category: str
41 topic: str
42 title: str
43 files_changed: str
44 pr_link: str
45 author: str
46
47 # This is not a list so that it is easier to put in a spreadsheet
48 accepter_1: str
49 accepter_2: str
50 accepter_3: str
51
52 merge_into: str = None
53
54 def __repr__(self):
55 return (
56 f"Commit({self.commit_hash}, {self.category}, {self.topic}, {self.title})"
57 )
58
59
60commit_fields = tuple(f.name for f in dataclasses.fields(Commit))

Callers 2

read_from_diskMethod · 0.85
gen_commitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…