cis-ds / course-site

Course site for Computing for Information Science (INFO 5940)
43 stars 40 forks source link

Implement revised homework submission workflow #350

Closed bensoltoff closed 1 year ago

bensoltoff commented 2 years ago

Use the same approach from my data viz course. Rely on ghclass to add users to org, separate repos for each student/assignment. Create evaluation branch that mirrors the main branch at clone. Create pull request at submission deadline and switch to pull access to block more pushes.

Necessary revisions

course-site

gradereportr

ghclass

bensoltoff commented 2 years ago

Can change the API endpoint in gh() using

gh(
  ...,
  .token = gh_token(api_url = "https://github.coecis.cornell.edu"),
  .api_url = "https://github.coecis.cornell.edu"
)
bensoltoff commented 2 years ago

Use an option to store api URL. Then automatically use this in the package wherever gh() is used. If that option is NULL, then use the default Github URL. See this example from blogdown.

bensoltoff commented 1 year ago

No need to rewrite all the packages/repos to use the enterprise GitHub. Pretty sure I just need to use project-specific .Renviron files.

GITHUB_PAT=MYLONGPAT
GITHUB_API_URL = "https://github.coecis.cornell.edu/"

Verify I still need to use GITHUB_PAT or if I can rely on normal Git credential cache. For gh I should be okay? For ghclass maybe not.

bensoltoff commented 1 year ago

I think this has all been sufficiently resolved. Will find out with hw01