FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

project-commit merge-requests call doesn't work · Issue #2287 · python-gitlab/python-gitlab · GitHub

Repository navigation

project-commit merge-requests call doesn't work #2287

Description

calling

MRID=$(gitlab -o json project-commit merge-requests --project-id ${id} --id ${COMMIT_ID})

with
COMMIT_ID 2fdd3e323446d24ca80e36e41aa710a853662fac
and id = 63

(valid and working via curl call)

give as output

Traceback (most recent call last):
File "/usr/local/bin/gitlab", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/gitlab/cli.py", line 377, in main
gitlab.v4.cli.run(
File "/usr/local/lib/python3.9/site-packages/gitlab/v4/cli.py", line 549, in run
printer.display_list(data, fields, verbose=verbose)
File "/usr/local/lib/python3.9/site-packages/gitlab/v4/cli.py", line 415, in display_list
print(json.dumps([get_dict(obj, fields) for obj in data]))
File "/usr/local/lib/python3.9/site-packages/gitlab/v4/cli.py", line 415, in
print(json.dumps([get_dict(obj, fields) for obj in data]))
File "/usr/local/lib/python3.9/site-packages/gitlab/v4/cli.py", line 397, in get_dict
return obj.attributes
AttributeError: 'dict' object has no attribute 'attributes'

Activity

  1. added 6 commits that reference this issue on Sep 30, 2022
    46b091f
    e8b18a5
    6500602
    e4409ca
    cd9695d
    fbc0ecb
  2. added a commit that references this issue on Oct 6, 2022
    9b88132
  3. locked as resolved and limited conversation to collaborators on Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL