Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gandarez/check-pr-body-action

Check for specific words in a pull request's body
https://github.com/gandarez/check-pr-body-action

Last synced: about 2 months ago
JSON representation

Check for specific words in a pull request's body

Awesome Lists containing this project

README

        

# Check Pull Request Body Action

This action checks if a string must contains or not in the pull request body.

## Github Environment Variables

- `GITHUB_REPOSITORY`

## Inputs

### pr_number

**Optional** Pull Request number.

### contains

**Optional** String that must contains in pull request body. Defaults to empty string.

### not_contains

**Optional** String that must not contains in pull request body. Defaults to empty string.

## Env

### GITHUB_TOKEN

GitHub token.

## Example usage

```yaml
uses: gandarez/check-pr-body-action@v1
with:
pr_number: ${{ github.event.number }}
contains: "something"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```