-
Notifications
You must be signed in to change notification settings - Fork 0
Add scenarios for adding github repos #96
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
Open
txels
wants to merge
1
commit into
develop
Choose a base branch
from
carles/scenarios
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| ------------------------------------------------------------------------------- | ||
| SCENARIO: User creates an account in ployst: | ||
|
|
||
| - An account record is created in the Ployst global data store. | ||
| - (optionally, ployst can send an event message that a user has been created) | ||
| - an RSA keypair is generated for the user | ||
| (Q: would it work to use a single PLOYST keypair for cloning?) | ||
|
|
||
| ------------------------------------------------------------------------------- | ||
| SCENARIO: User logs in for first time: | ||
|
|
||
| <Ployst accounts settings page> | ||
|
|
||
| Choose which services you want to associate to your Ployst account: | ||
|
|
||
| Github [ Enable ] | ||
| Jira [ Enable ] | ||
| Sprintly [ Enable ] | ||
| Rally [ Enable ] | ||
| TargetProcess [ Enable ] | ||
| Jenkins [ Enable ] | ||
| Travis-CI [ Enable ] | ||
|
|
||
|
|
||
| ------------------------------------------------------------------------------- | ||
| SCENARIO: User sets up Github account | ||
|
|
||
| (From user account page, user clicks on Github-enable ) | ||
|
|
||
| This takes the user to the Github provider settings page (served by the | ||
| provider itself) | ||
| - the provider at this stage must know about the user. this info can be | ||
| part of the URL (user ID). | ||
| ----- | ||
|
|
||
| <Github Provider configuration page> | ||
|
|
||
| You haven't set up your github account yet | ||
|
|
||
| [Login to Github] | ||
|
|
||
| ----- | ||
| (user login to GH will initiate the oauth dance) | ||
|
|
||
| Upon success: | ||
| - a GH token is stored as part of the GH provider local data | ||
| - the GH provider calls the GH API and obtains a list of repos | ||
| - the GH provider gets the user's keypair from Ployst (to set it up in github | ||
| and be able to clone repos later) | ||
|
|
||
| ------------------------------------------------------------------------------- | ||
| SCENARIO: User chooses Github repos | ||
|
|
||
| <Updated GH provider setup page> | ||
|
|
||
| Your github account "txels" has been assimilated. | ||
| These are your repos. Select which ones you want ployst to track: | ||
| [ ] txels/autojenkins | ||
| [ ] pretenders/ployst | ||
| [ ] pretenders/pretenders | ||
| ... | ||
|
|
||
| In order to use these repos in ployst, add your ployst's SSH key to your | ||
| github account. | ||
|
|
||
| [Add SSH Key] <if this can be done via the API> | ||
|
|
||
| ----- | ||
| (User selects repos.) | ||
| - The Gh provider notifies Ployst REST API of updated list of repos to track. | ||
| - (optionally, Ployst sends messages "repo added", "repo removed") | ||
| - GH provider triggers tasks to start cloning repos in the background (using | ||
| the user's ployst ssh keys) | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does core need to know?