For convenient reference in development, here are the Orcoursetrion API docs.
The actions that are available to use.
Action library access
Creates a course repo at ORC_GH_API_URL with key ORC_GH_OAUTH2_TOKEN, at organization ORC_STUDIO_ORG, and with collabarator ORC_STUDIO_DEPLOY_TEAM
Parameters: |
|
---|---|
Returns: | Github dictionary of a repo (https://developer.github.com/v3/repos/#create) |
Return type: | dict |
Creates a course repo at ORC_GH_API_URL with key ORC_GH_OAUTH2_TOKEN and at organization ORC_XML_ORG, and with team as a collaborator (Along with ORC_XML_DEPLOY_TEAM).
This also adds a github Web hook to the course development environment gitreload server via ORC_STAGING_GITRELOAD.
Parameters: |
|
---|---|
Returns: | Github dictionary of a repo (https://developer.github.com/v3/repos/#create) |
Return type: | dict |
API libraries.
Orchestrion library
Bases: object
API class for handling calls to github
Initialize a requests session for use with this class by specifying the base API endpoint and key.
Parameters: |
|
---|
Add a repo to an existing team (by name) in the specified org.
We first look up the team to get its ID (https://developer.github.com/v3/orgs/teams/#list-teams), and then add the repo to that team (https://developer.github.com/v3/orgs/teams/#add-team-repo).
Parameters: |
|
---|---|
Raises: |
|
Adds an active hook to a github repository.
This utilizes https://developer.github.com/v3/repos/hooks/#create-a-hook to create a form type Web hook that responds to push events (basically all the defaults).
Parameters: |
|
---|---|
Raises: |
|
Returns: | Github dictionary of a hook (https://developer.github.com/v3/repos/hooks/#response-2) |
Return type: | dict |
Creates a new github repository or raises exceptions
Parameters: |
|
---|---|
Raises: |
|
Returns: | Github dictionary of a repo (https://developer.github.com/v3/repos/#create) |
Return type: | dict |
Bases: exceptions.Exception
Base exception class others inherit.
Bases: orcoursetrion.lib.github.GitHubException
Repo exists, and thus cannot be created.
Bases: orcoursetrion.lib.github.GitHubException
Unexpected status code exception
Bases: orcoursetrion.lib.github.GitHubException
Name team not found in list
Configuration options
Configuration needed for Orchestrion to function (i.e. API keys)