Skip to content

Commit c305459

Browse files
author
Gauvain Pocentek
committed
docs: start a FAQ
1 parent 422b163 commit c305459

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/faq.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
###
2+
FAQ
3+
###
4+
5+
How can I close or reopen an issue?
6+
===================================
7+
8+
9+
Set the issue ``state_event`` attribute to ``close`` or ``reopen`` and save the object:
10+
11+
.. code-block:: python
12+
13+
issue = my_project.issues.get(issue_id)
14+
issue.state_event = 'close'
15+
issue.save()

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Contents:
1414
install
1515
cli
1616
api-usage
17+
faq
1718
upgrade-from-0.10
1819
api/modules
1920

0 commit comments

Comments
 (0)