JoyOfCodingPDX / JoyOfCoding

Source code for The Joy of Coding course at Portland State University taught by David Whitlock
http://web.cecs.pdx.edu/~whitlock/
Apache License 2.0
17 stars 5 forks source link

Survey program detects GitHub id from .git/config file #452

Closed DavidWhitlock closed 4 months ago

DavidWhitlock commented 9 months ago

These days, the Survey program is always run from inside a checkout of a GitHub repository. It would be very helpful to know students' GitHub id so that I can add them to a GitHub organization and repositories. I can harvest the GitHub user id from the .git/config file in a checkout:

[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = git@github.com:DavidWhitlock/PortlandStateJava.git

I should augment the Survey program to harvest this information and ask the student if it is okay to send it to me. Then, I need to store the id in the me.xml file.