From c3054592f79caa782ec79816501335e9a5c4e9ed Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Wed, 8 Jun 2016 22:30:55 +0200 Subject: docs: start a FAQ --- docs/faq.rst | 15 +++++++++++++++ docs/index.rst | 1 + 2 files changed, 16 insertions(+) create mode 100644 docs/faq.rst (limited to 'docs') 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 -- cgit v1.2.1