summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMika Mäenpää <mika.j.maenpaa@tut.fi>2014-12-05 11:01:04 +0200
committerMika Mäenpää <mika.j.maenpaa@tut.fi>2014-12-05 11:01:04 +0200
commit78c4b72de1bcfb836a66c1eaadb5d040564afa34 (patch)
treea5118dc688eb53df2e3d2415509fbd1ee9f056c7
parent72eb744c4408871178c05726570ef8fdca64bb8a (diff)
downloadgitlab-78c4b72de1bcfb836a66c1eaadb5d040564afa34.tar.gz
Update example about how to close issue in README
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 00e7017..0931953 100644
--- a/README.md
+++ b/README.md
@@ -48,7 +48,7 @@ for p in gl.Project():
closed = 0 if not issue.closed else 1
print (" %d => %s (closed: %d)" % (issue.id, issue.title, closed))
# and close them all
- issue.closed = 1
+ issue.state_event = "close"
issue.save()
# Get the first 10 groups (pagination)