← Winnitude! Search  ·  Reader Mode (829 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 8 LINKS

CLI project-commit-status create: URL includes placeholders for project_id and commit_id · Issue #3452 · python-gitlab/python-gitlab

Repository navigation

CLI project-commit-status create: URL includes placeholders for project_id and commit_id  #3452


New issue

New issue

Open

Open
CLI project-commit-status create: URL includes placeholders for project_id and commit_id #3452

Description

@CS-cwhite's profile CS-cwhite opened on Oct 19, 2026

Thank you for this project, which is very useful! gitlab project-commit-status list works fine. However, gitlab project-commit-status create does not. It appears that code was last updated in #511 .

Description of the problem, including code/CLI snippet

$ gitlab -d --server-url=SERVER project-commit-status create --project-id 'FOO' --commit-id HASH --state pending --context sample

Expected Behavior

It creates an external commit status called "sample" in commit HASH of project FOO

Actual Behavior

...
DEBUG:http.client:send: b'POST /api/v4/projects/%7Bproject_id%7D/statuses/%7Bcommit_id%7D HTTP/1.1\r\nHost: SERVER\r\nUser-Agent: python-gitlab/8.3.0\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\nContent-type: application/json\r\nContent-Length: 39\r\nPRIVATE-TOKEN: [MASKED]\r\n\r\n'
DEBUG:http.client:send: b'{"state": "pending", "context": "sample"}'
DEBUG:http.client:reply: 'HTTP/1.1 404 Not Found\r\n'
...

The POST URL is /api/v4/projects/%7Bproject_id%7D/statuses/%7Bcommit_id%7D --- the project_id and commit_id haven't been filled in. In my own tracing, that appears to be because self._parent is None when ProjectCommitStatusManager.create() is called.

Specifications

  • python-gitlab version: Tested with pip python-gitlab v8.3.0 and with main @ 51eb17e
  • Gitlab server version (or gitlab.com): 19.3.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions