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

Malformed Link to discard plan in PR/MR comment #124

Closed
mechastorm opened this issue May 9, 2018 · 2 comments
Closed

Malformed Link to discard plan in PR/MR comment #124

mechastorm opened this issue May 9, 2018 · 2 comments

Comments

@mechastorm
Copy link

Problem

When Atlantis generates a plan and display it as a comment, it usually says "To discard this plan click here."

The link to discard the plan seems to be malformed.

Example:

# On Github: 
https://github.com/myorg/myrepo/pull/myatlantis.domain.com/lock?id=myorg%252Fmyrepo%252Fterraform%252Fmydir%252Fmysubdir%252Fdefault

# On Gitlab
https://myprivategitlab.com/mygroup/myrepo/master/myatlantis.domain.com/lock?id=mygroup%252Fmyrepo%252Fmydir%252Fdefault

Repro Steps

  1. Run atlantis plan
  2. Click on the link to discard the plan

Expected Behavior

Should properly link to the Atlantis Web UI to discard the plan

Atlantis Version

atlantis 0.3.9

@lkysow
Copy link
Member

lkysow commented May 10, 2018

What is your --atlantis-url flag set to? I think this is because it doesn't have a scheme http:// or https:// attached to it. Then GitHub interprets the URL as relative. This is a bug that should be fixed on the Atlantis side but that should fix it for you in the meantime.

@lkysow
Copy link
Member

lkysow commented May 22, 2018

Closing unless I hear otherwise

@lkysow lkysow closed this as completed May 22, 2018
meringu pushed a commit to meringu/atlantis that referenced this issue May 29, 2023
* Update docs for using assume role

* Update README.md
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

No branches or pull requests

2 participants