Get help with GitHub Classroom
Controlling assignment repository settings with the Probot Settings app
You may want to provide default settings for your assignment repositories. For example, you may want to turn off issues, predefine pull request labels, or protect a branch. When GitHub Classroom imports and copies your starter repository, it does not copy your repository’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 repository 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.
Add the Settings app to your organization
Adding the Probot Settings app to your organization turns it on for any repository in the organization with a
.github/settings.yml file, including student assignment repositories created in the future. Here’s how you set it up:
- Add the Probot Settings app to the GitHub organization you use with GitHub 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.
.github/settings.ymlfile to your starter repository. See the probot/settings README for a complete list of settings.
Warning: GitHub Classroom automatically adds teachers and teaching assistants to repositories. Avoid using the collaborators setting with GitHub Classroom.
Use a starter repository that contains a
.github/settings.ymlfile when creating your assignment in GitHub Classroom.