Skip to content
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

feat(semantic_release): ignore subgroup on release github remote #548

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

douglasduteil
Copy link
Contributor

@douglasduteil douglasduteil commented Aug 17, 2021


Correct Github remote errors when releasing from GitLab to GitHub repository.
As we are switching from direct cloning of GitHub repository hierarchy to GitLab sub groups per startup, we can't use the CI_PROJECT_PATH anymore to guess the GitHub repo to push too has it contains the GitLab subgroup that doesn't exit on Github resulting on the "classic" error :

Error: Command failed with exit code 128: git ls-remote --heads https://[secure]@github.com/SocialGouv/archifiltre/archifiltre-statistics.git
remote: Not Found

The alternative could be using the CI_PROJECT_ROOT_NAMESPACE and CI_PROJECT_TITLE to reconstituate the GitHub flat repository hierarchy
see https://docs.gitlab.com/ee/ci/variables/predefined_variables.html

@douglasduteil douglasduteil added the enhancement New feature or request label Aug 17, 2021
@douglasduteil douglasduteil self-assigned this Aug 17, 2021
@douglasduteil
Copy link
Contributor Author

douglasduteil commented Aug 17, 2021

Tested on SocialGouv/archifiltre/archifiltre-statistics

@douglasduteil douglasduteil merged commit 78f9a0c into master Aug 17, 2021
@douglasduteil douglasduteil deleted the douglasduteil-patch-2 branch August 17, 2021 12:22
SocialGroovyBot added a commit that referenced this pull request Aug 17, 2021
# [23.3.0](v23.2.1...v23.3.0) (2021-08-17)

### Features

* **semantic_release:** ignore subgroup on release github remote ([#548](#548)) ([78f9a0c](78f9a0c))
@SocialGroovyBot
Copy link
Member

🎉 This PR is included in version 23.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants