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

Lanes: Create/Delete GQL #6656

Merged
merged 6 commits into from
Nov 14, 2022
Merged

Lanes: Create/Delete GQL #6656

merged 6 commits into from
Nov 14, 2022

Conversation

luvkapur
Copy link
Member

Proposed Changes

  • Implement createLane Mutation
  • Implement deleteLanes Mutation
  • Update LanesMainRuntime to support creating lane from scope
  • Update LanesMainRuntime to support deleting lanes from scope

@luvkapur luvkapur changed the title implement add/delete lanes gql Lanes: Create/Delete GQL Nov 14, 2022
export async function createLaneInScope(laneName: string, scope: ScopeMain): Promise<Lane> {
const lanes = await scope.legacyScope.listLanes();
if (lanes.find((lane) => lane.name === laneName)) {
throw new BitError(`lane "${laneName}" already exists, to switch to this lane, please use "bit switch" command`);
Copy link
Member

Choose a reason for hiding this comment

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

"bit switch" is probably not applicable when creating lane from scope..

davidfirst
davidfirst previously approved these changes Nov 14, 2022
@luvkapur luvkapur enabled auto-merge (squash) November 14, 2022 20:03
@luvkapur luvkapur merged commit 1983fcc into master Nov 14, 2022
@luvkapur luvkapur deleted the lanes-create-delete-gql branch November 14, 2022 23:33
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