Skip to content

Commit

Permalink
Merge pull request #98 from UMM-CSci-3601/add-app-setup-instructions
Browse files Browse the repository at this point in the history
Expand and reorganize the faculty instructions
  • Loading branch information
NicMcPhee authored Jan 16, 2024
2 parents 14d7652 + b200d00 commit ec6e2a1
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@

> :bangbang: :mage_woman: **Faculty**
>
> Each semester _after creating the instance in GitHub Classroom_,
> we need to (in the version of the repository generated by GitHub Classroom once you accept the assignment):
> Each semester there's fair bit of setup that has to be done
> to initially create and configure that semester's GitHub
> organization, that semester's GitHub Classroom, and the
> specific set up for this first lab.
>
> - [ ] Create a team called "Everyone"
> - [ ] Fix the URLs in the badges below so they point to that semester's
> repository instead of the "starter" repo.
> - [ ] Make sure we've added every student in the current semester
> to that semester's organization so they'll have permission to
> push to this repo.
> - [ ] [Turn off branch protection](docs/FACULTY_BRANCH_PROTECTION_SETTINGS.md)
> so that students can `push`.
> - [ ] Remove this note and the broken badge above in the fork.
> The instructions for all this are in [the FACULTY_REPO_SETUP.md](docs/FACULTY_REPO_SETUP.md) document in the `/docs` directory
> of this repo.
>
> We should leave these notes in the copy in the "starter"
> repository so it's there each semester when we fork this.
> After you've gone through those instructions, you should
> remove these faculty-oriented instructions and the
> "FIX BADGES" badge above.
>
> Make sure to leave these notes in the copy in the "starter"
> repository so it's there each semester when we make a copy
> of this.
[![Continuous integration status](../../actions/workflows/gradle.yaml/badge.svg)](../../actions/workflows/gradle.yaml)

Expand Down
66 changes: 66 additions & 0 deletions docs/FACULTY_REPO_SETUP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Faculty instructions for setting up the repository <!-- omit in toc -->

- [Overall instructions](#overall-instructions)
- [Set up various apps](#set-up-various-apps)
- [GitKraken](#gitkraken)

Each semester we need to do a certain amount of setup for that
semester's copy of this repository. Below are the instructions
for setting that up.

## Overall instructions

Before you can really do anything you'll need to

- [ ] Create a GitHub organization for this semester, e.g., [UMM-CSci-3601-S22](https://github.com/UMM-CSci-3601-S22)
- [ ] You probably want to add your TAs as owners on that org.
- [ ] It's often helpful to create a semester specific logo
for the organization, especially if you're part of
numerous organizations. It's probably also a good example
to set for the students.
- [ ] Make sure we've added every student in the current semester
to that semester's organization so they'll have
permission to push to this repo.
- [ ] Create a GitHub Classroom for this semester
- [ ] Create a new assignment using this repo as the template
- [ ] We usually make students admins on their repos.
- [ ] It's probably useful to include the Feedback branch
- [ ] You probably want to limit the assignment to a single team.
- [ ] We usually use "Everyone" as the name for the set of
teams; GitHub Classroom will then call the shared
repository `intro-to-git-everyone`, which is nice.

Now it's useful to "force" the creation of the repository in
this semester's organization/classroom. You can just follow
the "student" invite link, and that will create that semester's
copy of the repository.

Now make a few changes to the _classroom copy_ of the repository:

- [ ] Fix the URLs in the badges below so they point to that semester's
repository instead of the "starter" repo.
- [ ] [Turn off branch protection](FACULTY_BRANCH_PROTECTION_SETTINGS.md)
so that students can `push`.
- [ ] Remove the note and the broken badge at the top of the
README _in the classroom copy_.
- We don't want to remove those from the starter copy since we
need to be reminded of these rules each semester.

## Set up various apps

As well as setting up the classroom and the initial repository,
we need to set up various apps that will need access to this
organization.

### GitKraken

We need to enable GitKraken on the new, semester specific organization.
To do this you _have_ to be an admin on the
organization for this semester; that will be true "for free"
if you're the person that created the organization above.

- Go to your _personal_ settings (assuming you're an admin on the org)
- Click "Applications" in the "Account settings" panel on the left
- Click "Authorized OAuth Apps" tab
- Find and click "GitKraken" on that list
- Click "Grant" for the new, semester specific org

0 comments on commit ec6e2a1

Please sign in to comment.