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

Orion/create release 2 #48

Merged
merged 13 commits into from
Aug 9, 2022
Merged

Orion/create release 2 #48

merged 13 commits into from
Aug 9, 2022

Conversation

borland
Copy link
Collaborator

@borland borland commented Aug 9, 2022

chore: Splits unit and integration tests into two workflows. Integration runs nightly, unit runs on every push
refactor: Cover release create workflow with unit tests mocking out the octopus server
feat: release create supports --git-commit and --git-ref on the command line

@borland borland requested a review from a team August 9, 2022 21:29
Comment on lines +195 to +198
if selectedProject.PersistenceSettings.GetType() == "VersionControlled" && options.GitReference != "" || options.GitCommit != "" {
// it's a config-as-code project, we need to ask for Git Ref or Commit

}
Copy link
Contributor

Choose a reason for hiding this comment

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

Yuck. We should fix this in the Go API client somehow. But I understand why you're doing it. 😄

Copy link
Collaborator Author

@borland borland Aug 9, 2022

Choose a reason for hiding this comment

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

The "PersistenceSettings.GetType() == "VersionControlled"" magic string bit?
That seemed to be how the go API client was doing it, so I copied from there. We could use type aliased strings like AccountType does? That seems to be the closest equivalent Go has to enums?

I'll file an issue against the Go API Client for this

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if there's a way we can hide this; put a better veneer on it.

I built this support for CaC back when it was available as an EAP. I kept them as strings in case things changed. Perhaps it's time to re-visit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, I'll create the issue and we can have the discussion over there

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@borland borland merged commit 68de52b into main Aug 9, 2022
@borland borland deleted the orion/create-release-2 branch August 9, 2022 23:00
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