Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lswith/probot-add-comment

A bot to add a comment to issues/PRs on github when a specific label is present
https://github.com/lswith/probot-add-comment

probot probot-app

Last synced: 1 day ago
JSON representation

A bot to add a comment to issues/PRs on github when a specific label is present

Awesome Lists containing this project

README

        

# Add Comment Bot

[![Downloads][npm-downloads]][npm-url] [![version][npm-version]][npm-url]
[![Build Status][travis-status]][travis-url]

A [Probot](https://probot.github.io) bot to add/remove a comment to issues and pull requests when a label is present/removed.

## Setup

Add a `.github/comment.yml` file to your repository and then run the bot against it.

If the config is empty or doesn't exist, the bot will not run.

```yml
# Example Config

# This config will look for any issues and pull requests that have been labeled with `needs-area`. A comment
# will be added to the issue or pull request and will be removed once the `needs-area` label is removed.
issues:
- label: needs-area
comment: |
Please add an `area:` label to this issue.
pulls:
- label: needs-area
comment: |
Please add an `area:` label to this pull request.
```

### Backwards compatibility
Previous version of the bot will still work with current version, as the schema for the configuration file does not change the structure. So it's possible to upgrade and keep old configuration:

```yaml
# The old format matches the new one, using a different name
comments:
- label: needs-area
comment: |
Please add an `area:` label to this issue.
```

## Contribute

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

[travis-status]: https://travis-ci.org/lswith/probot-add-comment.svg?branch=master
[travis-url]: https://travis-ci.org/lswith/probot-add-comment
[npm-downloads]: https://img.shields.io/npm/dm/probot-add-comment.svg?style=flat
[npm-version]: https://img.shields.io/npm/v/probot-add-comment.svg?style=flat
[npm-url]: https://www.npmjs.com/package/probot-add-comment