Skip to content

Probot app that automatically applies a label to issues that will be closed by a currently open pull request.

License

Notifications You must be signed in to change notification settings

sanbornhilland/label-issues-with-pull-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Label issues targeted by open pull requests

A GitHub App built with probot that automatically labels issues targeted by currently open pull requests. See at a glance which open issues are addressed by an open pull request.

Build Status codecov

THIS IS STILL A WORK IN PROGRESS

Table of Contents

  1. Usage
  2. Configuration
  3. Setup

Usage

  1. Navigate to the app GitHub Apps - Label issues with targeted PR
  2. Accept permissions
  3. Allow access to the repository

Once the app is installed you can continue to work as usual, closing issues using the standard GitHub keywords. For example, including Closes #10 in a commit message will automatically close issue #10 when it is merged as part of a pull request. While the pull request is open this app will apply a label to issue #10, allowing you to see at a glance all the issues that will eventually be closed as a result of currently open pull requests.

Configuration

To configure the app, add a labelPullRequests object in your .github/config.yml file.

Defaults

labelPullRequests:
    # This label will be applied to issues addressed by an open PR.
    labelName: pull request open
    labelColor: f767eb

    # List of keywords that will trigger pull requests to be labeled.
    # E.g. Closes #10
    #
    # The default list comprises the keywords that GitHub
    # tracks for automatically closing pull requests but you could
    # include custom keywords if desired. However, they will
    # not automatically be closed when the pull request is merged.
    #
    # These are treated case-insensitively.
    # E.g. both Closes #10 and closes #10 will be used.
    keywords:
      - Close
      - Closes
      - Closed
      - Fix
      - Fixes
      - Fixed
      - Resolve
      - Resolves
      - Resolved

Setup

Install dependencies

npm install

Run the bot

npm start


See [docs/deploy.md](docs/deploy.md) if you would like to run your own instance of this app.

About

Probot app that automatically applies a label to issues that will be closed by a currently open pull request.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published