summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/faq.rst15
-rw-r--r--docs/index.rst1
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/faq.rst b/docs/faq.rst
new file mode 100644
index 0000000..7c35567
--- /dev/null
+++ b/docs/faq.rst
@@ -0,0 +1,15 @@
+###
+FAQ
+###
+
+How can I close or reopen an issue?
+===================================
+
+
+Set the issue ``state_event`` attribute to ``close`` or ``reopen`` and save the object:
+
+.. code-block:: python
+
+ issue = my_project.issues.get(issue_id)
+ issue.state_event = 'close'
+ issue.save()
diff --git a/docs/index.rst b/docs/index.rst
index 0d09a78..2fa45da 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -14,6 +14,7 @@ Contents:
install
cli
api-usage
+ faq
upgrade-from-0.10
api/modules