Skip to content

Commit 78c4b72

Browse files
committed
Update example about how to close issue in README
1 parent 72eb744 commit 78c4b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ for p in gl.Project():
4848
closed = 0 if not issue.closed else 1
4949
print (" %d => %s (closed: %d)" % (issue.id, issue.title, closed))
5050
# and close them all
51-
issue.closed = 1
51+
issue.state_event = "close"
5252
issue.save()
5353

5454
# Get the first 10 groups (pagination)

0 commit comments

Comments
 (0)