Skip to content

Commit 050a43b

Browse files
committed
pass in number
1 parent 28d7046 commit 050a43b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

management/lifecycle-v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def __init__(self, repo, id: str, number: int, title: str, url: str, merged=None
5959
self.merged = merged
6060

6161
@classmethod
62-
def from_node_item(cls, repo, node_item):
62+
def from_node_item(cls, repo, node_item, number=None):
6363
return cls(
6464
repo,
6565
node_item["id"],
66-
node_item["number"],
66+
node_item.get("number", number),
6767
node_item.get("title"),
6868
node_item.get("url"),
6969
node_item.get("merged"),

0 commit comments

Comments
 (0)