Skip to content

fix: Added support for slashes in bitbucket project name #5554

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

psalkiewicz
Copy link

@psalkiewicz psalkiewicz commented Apr 26, 2025

what

It is a simple change that allows using slashes (/) in bitbucket project names. Atlantis already allows that for gitlab and azuredevops repositories. I came across the issue with Bitbucket and this will add the functionality to the atlantis project.

why

  • Bitbucket allows use of slashes in project name (just like gitlab and azuredevops)
  • Using such projects caused a http 400 error in atlantis
  • I added another exclusion - if the vcsHostType is Bitbucketserver it will allow using slashes in project name
  • This fixes the http 400 error when a webhook from bitbucket comes from a project name which contains a slash.

tests

  • I tested the issue locally

references

@github-actions github-actions bot added the go Pull requests that update Go code label Apr 26, 2025
@psalkiewicz psalkiewicz changed the title Added support for slashes in bitbucket project name fix: Added support for slashes in bitbucket project name Apr 26, 2025
@psalkiewicz psalkiewicz force-pushed the psalkiewicz-bitbucket-slashes branch from 6073566 to 4251afe Compare April 26, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code provider/bitbucket
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant