https://github.com/peterdavehello/ping-github-stale-prs
Ping the dead pull reuqests 👻 to be alive again 👼
https://github.com/peterdavehello/ping-github-stale-prs
github hacktoberfest issue pr pullrequest
Last synced: 4 months ago
JSON representation
Ping the dead pull reuqests 👻 to be alive again 👼
- Host: GitHub
- URL: https://github.com/peterdavehello/ping-github-stale-prs
- Owner: PeterDaveHello
- License: gpl-3.0
- Created: 2017-03-19T14:15:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:47:19.000Z (about 2 years ago)
- Last Synced: 2025-04-07T03:37:13.582Z (10 months ago)
- Topics: github, hacktoberfest, issue, pr, pullrequest
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ping-GitHub-stale-PRs
A tiny bash shell script for any GitHub repository having too many pull reuqests that can't manually check and ping the stale PRs.
## Dependencies
- curl
- grep
- awk
- sed
- [jq](https://stedolan.github.io/jq/)
- xargs
- date
## Usage
There are some variables inside `ping-stale-PRs` that you can manipulate:
- GITHUB_TOKEN # Your [GitHub token](https://github.com/settings/tokens/new?scopes=repo&description=For%20Ping-GitHub-stale-PRs)
- OWNER # The repository owner GitHub ID
- REPO # The repository name
- STALE_DAYS # How many days a pull request stale would be pinged, `14` by default
- COMMENT # The comment in json format (`'{"body": "Comment here please"}'`), [ref](https://developer.github.com/v3/issues/comments/#create-a-comment)
You can directly assign/oeverride value to the varible like this(Don't forget COMMENT need to be in the json format with "body" kay/value):
```sh
GITHUB_TOKEN=21eb588cda61aa8525421857eca221ef371e4109
```
To run the script, set repository name and repository owner and your [GitHub token](https://github.com/settings/tokens/new?scopes=repo&description=For%20Ping-GitHub-stale-PRs) in the executable file or the environment, take https://github.com/cdnjs/cdnjs as example:
```sh
REPO=cdnjs OWNER=cdnjs GITHUB_TOKEN=21eb588cda61aa8525421857eca221ef371e4109 ./ping-stale-PRs
```
## License
GNU General Public License v3.0
See [LICENSE](LICENSE) file for the detail