Skip to content

Commit 04046a4

Browse files
committed
fix attribute
1 parent a30dcf2 commit 04046a4

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
@@ -345,7 +345,7 @@ def add_card(self, item: PullRequest):
345345
add_card_query = """
346346
mutation($project_id: ID!, $content_id: ID!) {
347347
addProjectV2ItemById(input: { projectId: $project_id, contentId: $content_id }) {
348-
projectV2Item {
348+
item {
349349
id
350350
}
351351
}
@@ -359,7 +359,7 @@ def add_card(self, item: PullRequest):
359359

360360
data = _post_query(add_card_query, variables)
361361
print(data)
362-
card_id = data["data"]["addProjectV2ItemById"]["projectV2Item"]["id"]
362+
card_id = data["data"]["addProjectV2ItemById"]["item"]["id"]
363363

364364
card = self._add_card_to_self(
365365
card_id,

0 commit comments

Comments
 (0)