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

Move vcs host type (github or gitlab) into models package #87

Merged
merged 2 commits into from
Mar 28, 2018

Conversation

lkysow
Copy link
Member

@lkysow lkysow commented Mar 27, 2018

  • add new VCSHost model
  • make VCSHost a field on Repo

This will enable use of the VCS type in the locking package but more importantly it makes sense that Atlantis knows where a repo is actually hosted.

Was also thinking about adding Repo as a field to PullRequest but haven't done that yet.

lkysow added 2 commits March 27, 2018 12:00
This will enable using the VCS type in other packages and avoid circular
dependencies. It also makes sense that this is part of the Repo model.
Copy link
Member Author

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

@mo-hit I've taken your work but also created an additional model VCSHost because Hostname was already a part of Repo so thought it best to combine the two, hostname and vcshosttype

// Hostname of the VCS provider this repo is hosted on.
Hostname string
// VCSHost is where this repo is hosted.
VCSHost VCSHost
Copy link
Member Author

Choose a reason for hiding this comment

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

Replaced the hostname with the VCSHost model which includes the hostname and the vcs host type.

@lkysow lkysow mentioned this pull request Mar 27, 2018
@lkysow lkysow merged commit 5d1722b into master Mar 28, 2018
@lkysow lkysow deleted the repo-host-refactor branch March 28, 2018 19:18
msarvar pushed a commit that referenced this pull request Aug 20, 2021
meringu pushed a commit to meringu/atlantis that referenced this pull request May 29, 2023
Add Getting Started instructions. Rename gh-password to gh-token
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.

1 participant