Code Monkey home page Code Monkey logo

probot-create-issue-on-repo-creation's Introduction

Probot Example: Create Issue upon Repo Creation

This repository contains a sample GitHub App built with probot creates a new issue in a newly-created repository and @mentions the creator with instructions for first steps.

Setup

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 and master 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

Configuration

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'

Deployment

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.

probot-create-issue-on-repo-creation's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.