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

Fix typos in the repository template wizard #232

Merged
merged 1 commit into from
Sep 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lifemonitor/api/models/wizards/repository_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ class RepositoryTemplateWizard(Wizard):
labels = ['config']
issue = NotInitialisedRepositoryIssue

workflow_type = QuestionStep("Which type of workflow are going to host on this repository?",
workflow_type = QuestionStep("Which type of workflow are we going to host on this repository?",
description="",
options=valid_workflow_types)
workflow_title = QuestionStep("Choose a name for your workflow?",
workflow_title = QuestionStep("Choose a name for your workflow",
when=lambda _: _.workflow_type.answer in supported_workflows)
workflow_description = QuestionStep("Type a description for your workflow?")
workflow_description = QuestionStep("Type a description for your workflow")

workflow_template = UpdateStep("Repository initialisation",
description="Merge this PR to initialiase your Workflow Testing RO-Crate repository",
description="Merge this PR to initialise your Workflow Testing RO-Crate repository",
callback=get_files)
wizard_stop = QuestionStep("Unsupported workflow type",
description="Your chosen workflow type is no supported at the moment",
description="Your chosen workflow type is not supported at the moment",
when=lambda _: _.workflow_type.answer not in supported_workflows)

steps = [workflow_type, wizard_stop, workflow_title, workflow_description, workflow_template]