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

fix: Add Bitbucket type checking for scm/ stripping #84

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

pstreef
Copy link
Contributor

@pstreef pstreef commented Jul 12, 2024

No description provided.

@pstreef pstreef mentioned this pull request Jul 12, 2024
log.warn("No scm origin found for %s. Consider adding it to scm-origins.txt".formatted(cloneUrl));
return;
} else {
throw new IllegalStateException("No scm origin found for %s. Add it to scm-origins.txt or set organizations.allow-missing-scm-origins to true".formatted(cloneUrl));
throw new IllegalStateException("No scm origin found for %s. Add it to moderne.scm.repositories or set moderne.scm.allow-missing-scm-origins to true".formatted(cloneUrl));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add in application.yml to this message so they know where to set it?

@pstreef pstreef merged commit 72709e0 into fix/remove-scm-prefix Jul 15, 2024
@pstreef pstreef deleted the fix/remove-scm-prefix-with-type-check branch July 15, 2024 14:57
pstreef added a commit that referenced this pull request Jul 18, 2024
* Remove '/scm' path prefix

* Add test and fix implementation

* formatting

* formatting

* Update src/main/resources/repos.csv

Co-authored-by: Kevin Carpenter™️ <kevin@moderne.io>

* Update src/test/java/io/moderne/organizations/OrganizationStructureServiceTest.java

Co-authored-by: Kevin Carpenter™️ <kevin@moderne.io>

* Update src/main/java/io/moderne/organizations/OrganizationStructureService.java

Co-authored-by: Kevin Carpenter™️ <kevin@moderne.io>

* fix: Add Bitbucket type checking for `scm/` stripping (#84)

* Merge conflict

* fix test

---------

Co-authored-by: Kevin Carpenter™️ <kevin@moderne.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants