Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't close an issue #49

Closed
ricard33 opened this issue Nov 26, 2014 · 1 comment
Closed

Can't close an issue #49

ricard33 opened this issue Nov 26, 2014 · 1 comment

Comments

@ricard33
Copy link

The method to close an issue documented into the README file doesn't work :

    issue.closed = 1
    issue.save()

And I can't find a way to close an issue.

@mjmaenpaa
Copy link
Contributor

It seems that README was not updated after GitLab changed how issues are closed.
New way to close issue is by setting "state_event" to "close".

issue.state_event = "close"
issue.save()

Issue can be reopened by setting "state_event" to "reopen".

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants