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

https://github.com/aoki/freshness

List all pull requests from organizations and user
https://github.com/aoki/freshness

javascript next nodejs react redux

Last synced: about 1 year ago
JSON representation

List all pull requests from organizations and user

Awesome Lists containing this project

README

          

# freshness
List pull requests crossing to multiple organizations.

## Setup

```
git clone https://github.com/ringohub/freshness.git
npm i # or yarn install
```

Write configuration file (`config/default.js`).

Change api end-point, organization and github token.
**!! This application perform local only now !!**
If run at a server, then can't stop to expose AccessToken in HTTP requests.
Now, I implementing Auth feature. :bow: :pray:

## Run

```
npm run dev
```

### docker

```
docker run --rm -p 3000:3000 \
-e FRESHNESS_GITHUB_API_TOKEN=${FRESHNESS_GITHUB_API_TOKEN} \
-e FRESHNESS_GITHUB_API_URL=${FRESHNESS_GITHUB_API_URL} \
-e FRESHNESS_TARGET_ORGS=${FRESHNESS_TARGET_ORGS} \
-d freshness:0.3.4
```

### Environment Variables

| Key | Description | Default |
|:---------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------|
| FRESHNESS_GITHUB_API_URL | Specify GitHub or GitHub:Enterprise API URL | `https://api.github.com` |
| FRESHNESS_GITHUB_API_TOKEN | Specify GitHub personal access token (**Require**: [Generate here](https://github.com/settings/tokens)). Need `repo:status` and ` public_repo` permissions. | |
| FRESHNESS_TARGET_ORGS | Specify GitHub organizations for listing pull requests | `github,nodejs` |

## Test

```
npm test
```