+
Example Workflow - NASA Openscapes 2i2c JupyterHub Access
+
+
GitHub organization: https://github.com/nasa-openscapes-workshops
Teams: https://github.com/orgs/nasa-openscapes-workshops/teams
+
+
Add NASA Openscapes Mentor to AdminTeam
+
+
NASA Openscapes Mentors are given GitHub permissions to administer access for participants in workshops. To do this they must have an Owner
role in the AdminTeam
. To grant access to Mentor, an existing Owner of the GitHub Organization must add the Mentor’s GitHub username to the AdminTeam
, then click on their name, which will take you to their page within the organization. Change their role to Owner
, which is in a pulldown menu on left side of screen.
+
+
+
Add users to NASA Openscapes 2i2c JupyterHub for a workshop
+
+
Copy and run this code to give users access to the NASA Openscapes 2i2c JupyterHub by adding them to the relevant GitHub Team
+
library(kyber)
+library(rmarkdown)
+library(tibble)
+library(fs)
+library(datapasta)
+
+team_name <- "WorkshopAccess-2i2c"
+
+## for a long list of usernames, we can copy the list from a spreadsheet and use the datapasta Addin 'paste as tribble' and run everything below
+members <- tibble::tribble(
+ ~username,
+ "virdi",
+ "alexishunzinger"
+)
+
+add_team_members(team_name, members = members$username, org = "nasa-openscapes-workshops")
+
Contributing to Kyber
+
+
To contribute to Kyber, fork the repo, unchecking the “Copy the main branch only” box. Start working from the dev
branch, create a new branch like new-branch dev
, and then submit Pull Requests to dev
. If using Git on the command line the workflow would look like:
+
+- clone your fork of kyber
+git checkout -b dev
+git pull origin dev
+- to start working on a new branch off of dev:
git checkout -b new-branch dev
+
+- add and commit changes
+- then
git push origin new-branch
+
+- keep adding, committing, and pushing, then when you’re ready open a PR
+
+
We started using this workflow when the [California Water Boards Openscapes]((https://cawaterboarddatacenter.github.io/swrcb-openscapes/) team began using Kyber to create Agendas from some unique source Rmd files. For example, Water Boards Cohort Calls are 2 hours, not the default 1.5 hrs, their lesson order is different from Openscapes Core Lessons, and includes a new lesson on Documentation.
+