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

feat(shorebird_cli): add shorebird collaborators delete #510

Merged
merged 1 commit into from
May 17, 2023

Conversation

felangel
Copy link
Contributor

Description

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel requested review from eseidel and bryanoltman May 17, 2023 20:59
@felangel felangel self-assigned this May 17, 2023
@@ -81,7 +81,7 @@ ${styleBold.wrap(lightGreen.wrap('🚀 Ready to add a new collaborator!'))}

final progress = logger.progress('Adding collaborator');
try {
await client.createAppCollaborator(appId: appId, email: collaborator);
await client.createCollaborator(appId: appId, email: collaborator);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed for consistency

@felangel felangel enabled auto-merge (squash) May 17, 2023 21:03
@felangel felangel merged commit a5338d5 into main May 17, 2023
@felangel felangel deleted the feat/shorebird-cli-delete-collaborator branch May 17, 2023 21:04
printNeedsAuthInstructions();
return ExitCode.noUser.code;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

This might be redundant, but should we add a check that shorebird is initialized here?

Copy link
Contributor Author

@felangel felangel May 17, 2023

Choose a reason for hiding this comment

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

It shouldn't be necessary since we prompt if a shorebird.yaml isn't detected and an app-id is not supplied.

''',
);

final confirm = logger.confirm('Would you like to continue?');
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be good to include a sentence about the implications of removing a collaborator. "$email will no longer be able to publish releases or patches to this app".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good happy to adjust the copy. I was planning to add some docs around this at docs.shorebird.dev as well.

});

test('returns ExitCode.usage when app id is missing.', () async {
when(() => argResults['app-id']).thenReturn(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we testing fetching the appId from shorebird.yaml?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch fixed in #511

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.

Make it possible for two people to collaborate on an App
3 participants