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

refactor: refactor and fix organizationbyname to error if organization not found #353

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

shreddedbacon
Copy link
Member

General Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

Just refactors commands using GetOrganizationByName to check if the returned organization contains something, since the API will return null instead of an error

Also added an organization-id flag to the add project command to be able to shortcut GetOrganizationByName if the ID is known.

@shreddedbacon shreddedbacon requested a review from CGoodwin90 June 12, 2024 05:37
@shreddedbacon shreddedbacon marked this pull request as ready for review June 12, 2024 22:41
@shreddedbacon shreddedbacon merged commit a386f67 into main Jun 14, 2024
4 checks passed
@shreddedbacon shreddedbacon deleted the more-organization-tweaks branch June 14, 2024 01:15
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