Skip to content

Scope "bug" #1057

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

Closed
sauravpandit opened this issue Mar 26, 2020 · 1 comment · Fixed by #1058
Closed

Scope "bug" #1057

sauravpandit opened this issue Mar 26, 2020 · 1 comment · Fixed by #1058

Comments

@sauravpandit
Copy link

Description of the problem, including code/CLI snippet

I am using the list method of project.issues to list issues with certain label. I am searching issue having "vulcheck" as label. In my project I have one issue with "vulcheck" label

def issue_by_project_label(self):
    print(self._project.issues.list(labels="vulcheck"))

Expected Behavior

It should return me the issues with label "vulcheck". I have one issue with label "vulcheck".

Actual Behavior

It is returning empty list

Specifications

  • python-gitlab version: 2.1.2
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): 12.6.6-ee
@nejch
Copy link
Member

nejch commented Mar 28, 2020

Thanks for the report @sauravpandit. I will be submitting a fix shortly.

In the meantime, as a workaround you can supply the label as a list with a single item instead of just a string:

def issue_by_project_label(self):
    print(self._project.issues.list(labels=["vulcheck"]))

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

Successfully merging a pull request may close this issue.

2 participants