Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should be possible to make repositories 'read only' #316

Open
rtholmes opened this issue Jan 13, 2020 · 0 comments
Open

Should be possible to make repositories 'read only' #316

rtholmes opened this issue Jan 13, 2020 · 0 comments

Comments

@rtholmes
Copy link
Contributor

rtholmes commented Jan 13, 2020

While this should ultimately be controlled by 340s schedule code, for now at least make it possible to stop students from committing to a repo.

The easiest way, although unsatisfying, would be to take the student team off of the repository on GitHub. Essentially this puts the repo in an 'unreleased' state. Then we can 'release' it later to put the teams back on so they have write access again. Note: this does mean that they won't be able to look at their repo in the web interface either. The nice thing about this is we already have 'release' code, although we don't yet have 'unrelease' code.

An alternative is to just toggle the team's permissions from write to read. This would be with the following API: https://developer.github.com/v3/teams/#add-or-update-team-project

Since this would require new UI (probably just in the 'provision and release repositories' pane, it might be nice to update 'provisioned repositories' and 'released repositories' as listboxes as well so there isn't infinite scrolling on these pages anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant