Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gandarez/check-pr-body-action
- Owner: gandarez
- License: mit
- Created: 2022-04-05T13:13:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T01:00:22.000Z (over 2 years ago)
- Last Synced: 2024-10-13T01:36:14.153Z (3 months ago)
- Language: Go
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 }}
```