diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-06-08 22:30:55 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-06-08 22:30:55 +0200 |
| commit | c3054592f79caa782ec79816501335e9a5c4e9ed (patch) | |
| tree | b9ff83e3d2506f0345cb7d7db3233920bce1dd04 /docs | |
| parent | 422b163075189eca466077c7320b466ab39f331e (diff) | |
| download | gitlab-c3054592f79caa782ec79816501335e9a5c4e9ed.tar.gz | |
docs: start a FAQ
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/faq.rst | 15 | ||||
| -rw-r--r-- | docs/index.rst | 1 |
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 |
