This repository contains a sample GitHub App built with probot creates a new issue in a newly-created repository and @mention
s the creator with instructions for first steps.
Please note that this app is meant to demonstrate the functional capabilities of a Probot app and is not production-ready. It is strongly recommended that a user takes the following steps prior to use:
- Duplicate this repository into a repository in your own user account or organization
- In your new repository, open a pull request between the
new-repo-issue
andmaster
branches and review the changes introduced. This represents all of the code used to implement this app.- Note that this app does not have any testing implemented. It is strongly recommended that you implement testing prior to production deployment. For guidance on implementing testing in a Probot app, see this documentation.
- Configure a GitHub App on GitHub
- Read the in-line documentation explaining the functionality of the app
- Customize the implementation to fit your needs
Under the current implementation, there are several configurable attributes. Defaults for these attributes can be set in the defaults.js file, but it is recommended that each org in which this is implemented creates an override file with a file called .github/open-issue-on-repo-creation.yml
file in the Repository, org-settings
. This Repository will contain global settings for the Organization. You can name the settings repository anything you'd like; just add the repository name to your defaults.js file.
# Configuration for Create Issue Upon Repo Creation
# Enables the creation of an issue when a new repository is created
enableIssueCreation: true
# Issue Title when a repository is created
createdIssueTitle: 'Repository Setup First Steps'
# Issue Body when a repository is created
createdIssueBody: 'Congratulations! You\'ve just created a new repository. Please complete the following tasks to make sure that your work can be seen and discoverable by other members of the organization:\n- [ ] Give @[YOUR_ORG_NAME]/[YOUR_TEAM_NAME] at least read access\n- [ ] Add some [topics](https://blog.github.com/2017-01-31-introducing-topics/) that describe the content and purpose of your repository'
# Users/Groups that should be cc'ed on the issue. Should be users/groups separated by a space.
# ccList: '@user123 @user456'
Probot is a standard NodeJS app, and thus can be deployed as such. Documentation is available on the Probot website, which provides directions for deployment using Glitch, Heroku, and Now.
If you have multiple Probot apps that you would like to deploy together, see Combining apps.