title |
---|
Controlling assignment repo settings with the Probot Settings app |
You may want to provide default settings for your assignment repos. For example, you may want to turn off issues, predefine pull request labels, or protect a branch. When Classroom imports and copies your starter repo, it does not copy your repo's settings. Instead, use the Probot Settings app.
Probot is a a project, a framework, and a collection of free apps to automate things on GitHub. Probot apps listen to repo events, like the creation of new commits, comments, and issues, and automatically does something in response. You can use Probot apps created by the community, such as the Settings app or make your own.
Adding the Probot Settings app to your organization turns it on for any repo in the organization with a .github/settings.yml
file, including student assignment repos created in the future. Here's how you set it up:
-
Add the Probot Settings app to the GitHub organization you use with Classroom. Go to the Settings app page and click + Add to GitHub. When asked, make sure to give it access to all the repositories in the organization.
-
Add a
.github/settings.yml
file to your starter repo. See the probot/settings README for a complete list of settings.Warning: Classroom automatically adds teachers and teaching assistants to repos. Avoid using the collaborators setting with Classroom. {: class="warning"}
-
Use a starter repo that contains a
.github/settings.yml
file when creating your assignment in GitHub Classroom.