Skip to content

Get the correct repo owner and name if the Github repo runs the semantic release job via Gitlab CI. #465

Open
@awx-fuyuanchu

Description

@awx-fuyuanchu

Description

We are using the gitlab ci for our GitHub repos.

Currently, the owner and name are determined by CI environment variables or remote url.

https://github.com/relekang/python-semantic-release/blob/master/semantic_release/vcs_helpers.py#L92

In our scenario, we run the semantic release job using gitlab CI but the remote repo is a Github repo.

Use cases

In our scenario, we run the semantic release job using gitlab CI but the remote repo is a Github repo.

Possible implementation

Check the hvcs settings before getting the owner and name from CI environment variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedPrevent from becoming stalefeatureA new feature or a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions