Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidenke/pr-poller
polls given resources and lists pull/merge request status
https://github.com/davidenke/pr-poller
Last synced: 29 days ago
JSON representation
polls given resources and lists pull/merge request status
- Host: GitHub
- URL: https://github.com/davidenke/pr-poller
- Owner: davidenke
- Created: 2019-07-04T09:53:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T01:46:10.000Z (about 2 years ago)
- Last Synced: 2023-03-27T11:08:09.612Z (over 1 year ago)
- Language: TypeScript
- Size: 206 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pr-poller
Polls given resources and lists pull/merge request status.## Prerequisites
You need to have Node.Js installed, at least version 12.Use `nvm` to install `nvm install 12.4.0` or `nvm use 12.4.0`.
The currently needed node version is defined
in the [`.nvmrc`](https://raw.githubusercontent.com/davidenke/pr-poller/master/.nvmrc)
at [the repository](https://github.com/davidenke/pr-poller).## Installation
Best is to install the module globally using `npm i -g @davidenke/pr-poller`## Usage
Simply run the script by pointing to your config using `pr-poller ~/path/to/pr-poller.config.json`.## Configuration
An example config can be found
in [the repository](https://raw.githubusercontent.com/davidenke/pr-poller/master/example.config.json):
```json
{
"repositories": [
"https://davidenke:********@bitbucket.client.com/scm/project/some-repo.git",
"https://davidenke:********git.zalari.de/other_project/some-other-repo.git",
"https://davidenke:****************************************@github.com/davidenke/pr-poller.git"
]
}
```Provide every repository you want to monitor by using the URL schema and the git path.
**Note:** GitHub can be accessed using personal access tokens (`github.com > Settings > Developer settings > Personal access tokens`).
Just provide the personal access token as password along with your username.**Note:** Using emails as usernames requires you to url encode the `@` symbol with `%40`,
e.g. `https://david%40enke.dev:********@github.com/davidenke/pr-poller.git`**Note:** As the configuration file contains your bare credentials you should keep it a safe place.
At least beneath your user home (`~` or `%HOMEPATH%`).## Supported APIs
- [x] GitHub public
- [ ] GitHub self hosted (untested, but the API should be the same)
- [x] GitLab self hosted
- [ ] GitLab public (untested, but the API should be the same)
- [x] BitBucket self-hosted
- [ ] BitBucket public (untested, but the API should be the same)