.github
    ISSUE_TEMPLATE
        BOUNTY.yml
README.md
app.js
config.js
data
    repos.js
    test
        api-examples
            pr-response.json
            release-response.json
        test-repos.js
package.json
reports
    2023-01-31.md
    2023-02-28.md
    2023-03-31.md
    2023-04-30.md
    2023-05-31.md
    2023-06-30.md
    2023-07-31.md
    2023-08-31.md
    2023-09-30.md
    2023-10-31.md
    2023-11-30.md
    2023-12-31.md
    2024-01-31.md
    2024-02-29.md
|
scripts
    fetch-issues.js
    fetch-merged-prs.js
    fetch-releases.js
utils.js

# NEAR Releases

- Fetch Releases & PRs for NEAR Dev repositories
- Generate markdown reports
- Email results

## Requirements

- [Node.js](https://nodejs.org)
- [Github API Token](https://github.com/settings/tokens)

## Setup

1) Install dependencies

```bash
npm i  
```

2) Create an `.env` file and add your [Github API Token](https://github.com/settings/tokens)

```bash
GITHUB_TOKEN='YOUR_GITHUB_API_TOKEN'
```

3) Add repositories to `./data/repos.js`

```bash
exports.repos = [
  { owner: 'octocat', repo: 'Hello-World' },
  { owner: 'vercel', repo: 'next.js' },
];

```

## Run

```bash
node app.mjs
```
