Skip to content

A config dict passed to create_request seems to be sent incorrectly #6

@prashantgupta24

Description

@prashantgupta24

Thank you for the amazing lib! I am facing an issue though,

If I send in this request:

repository.create_request(
        message="test env vars through API",
        branch="env-tests",
        config={"env": {"global": ["REGISTRY=PROD"]}},
    )

I get this response back:

"request": {
        "repository": {
            "id": xxxx,
            "owner_name": "xxxx",
            "name": "xxxx"
        },
        "user": {
            "id": xxxx
        },
        "id": xxxx,
        "message": "test env vars through API",
        "branch": "env-tests",
        "config": "env"

The "config": "env" seems to be truncated. It should be sent like this

"config": {
      "env": {
        "global": [
          "REGISTRY=PROD"
        ]
      }
    }

:( Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions