Skip to content

Templatebot aide that sets up GitHub repos, Travis CI, LSST the Docs deploys, and other LSST-specific configurations.

License

Notifications You must be signed in to change notification settings

lsst-sqre/lsst-templatebot-aide

Repository files navigation

lsst-templatbot-aide

lsst-templatebot-aide is a microservice that works with Templatebot to set up GitHub repos, Travis CI, LSST the Docs deployments, and make other LSST-specific configurations. The Aide talks to Templatebot through SQuaRE Events, our Kafka message service for api.lsst.codes.

A typical sequence operations looks like this:

  1. Templatebot publishes a Kafka message (the prerender phase) describing the template and template variables.

  2. lsst-templatebot-aide receives that message and sets up the GitHub repository.

    If the project is something like a technote, the Aide will even determine which GitHub repository to claim. Otherwise, the Aide will use some combination of github_repo or github_org and name template variables to determine the URL of the GitHub repository to make.

    The Aide publishes a new message containing a github_repo Cookiecutter variable that contains the URL for the new repository.

  3. Templatebot receives that message and renders the repository using Cookiecutter/Templatekit and pushes the contents to GitHub. This is the render phase.

    Once the project is rendered, it sends another Kafka message that again describes the repository, its template, and template variables. This is message triggers a postrender phase.

    The Aide can optionally act on the postrender message to do things like configure LSST the Docs and Travis CI. If necessary, it can submit a PR with new repository content (such as encrypted variables in a .travis.yml file).

About

Templatebot aide that sets up GitHub repos, Travis CI, LSST the Docs deploys, and other LSST-specific configurations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •