ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Repository Creation

Open cjs opened this issue 7 years ago • 1 comments

Some organizations want to limit creation of repositories to admins, but also want to grant that privilege to a subset of users without granting them admin rights.

"templates" can be defined that cross references users authorized to create a repo with that template, and teams that get assigned with certain rights to the repo, as well topics, repo naming patterns to enforce, and so on.

When authorized users post an issue in a repo with a particular tag, and a body containing

repository: <name>
template: <template>
visibility: <public|private> (optional, can default to private)

The bot:

  • checks that the required fields are present
  • checks the user opening the issue against the template
  • creates the repo
  • assigns the teams with appropriate rights as defined in the template
  • sets topics according to the template
  • comments and closes the issue.

cjs avatar Mar 30 '18 15:03 cjs

maybe instead of using issues, you could use a configuration file or one file per repository? The benefit would be that you could take advantage of linting the change file(s) and setting pull request status. The Settings app could be an inspiration: https://probot.github.io/apps/settings/

Probot
Pull Requests for repository settings

gr2m avatar Mar 30 '18 17:03 gr2m