Skip to content

Commit

Permalink
pass in numer
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Sep 11, 2024
1 parent 28d7046 commit 5f4dc75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions management/lifecycle-v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ def __init__(self, repo, id: str, number: int, title: str, url: str, merged=None
self.merged = merged

@classmethod
def from_node_item(cls, repo, node_item):
def from_node_item(cls, repo, node_item, number=None):
return cls(
repo,
node_item["id"],
node_item["number"],
node_item.get(number, number),
node_item.get("title"),
node_item.get("url"),
node_item.get("merged"),
Expand Down

0 comments on commit 5f4dc75

Please sign in to comment.