Code Monkey home page Code Monkey logo

pendingpr's Introduction

PendingPR

PendingPR logo

A GitHub App built with Probot to help you manage issues in pull requests (PRs) better.

Usage

pending-pr-demo

PendingPR assigns a Pending PR label to an issue claimed to be closed by a PR in its body. The label is then removed from the issue as soon as the PR is closed. This provides better visibility to you and your team on what issues are currently in PRs so you can focus on what needs to be done instead!

For more infomation, check this GitHub article on Closing issues using keywords

Example:

The following PR body would assign a Pending PR label to issues 10, 12 and 15 if they exist.

This PR closes #10, resolves #12 and fixes: #15

Once this PR is closed, the Pending PR label will be removed from these issues. The issues are automatically closed by GitHub if the PR is closed.

Notes

  • PendingPR only assigns labels to open issues.
  • Reopening a closed PR will lead to Pending PR label being assigned to issues mentioned in the body if the issues are still open.
  • Editing a PR's body and removing/adding issues from body will remove/add the label to those issues.
  • Labelling an issue in a different repository isn't supported yet.

Developer Setup

To contribute to this repo and test locally, you will need to register a private github app and run this probot application locally. Follow this tutorial by probot for setup and instead of Generating a new app, simply fork and clone this repo.

# Install dependencies
yarn install

# Compile TypeScript
yarn build

# Run the bot
yarn start

# Run for local development
yarn dev

If it's your first time running the application or you haven't registered your app with a github yet, navigate to localhost:3000 in your browser to setup.

Contributing

If you have suggestions for how PendingPR could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2019 Danish Dua [email protected] (https://github.com/dandua98/PendingPR)

pendingpr's People

Contributors

dandua98 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

pendingpr's Issues

PendingPR removes all labels

It seems that there is an issue with labels removal - PendingPR removes not only its own label, but also other labels from the issue as well.
Here is one of such PRs: ChuckerTeam/chucker#155

I think it is not how it supposed to work and should only remove its own labels.

P.S. Thanks a lot for such a cool thing.

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.