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

https://github.com/doarakko/git-first-commit

Find the first commit of any GitHub repository.
https://github.com/doarakko/git-first-commit

git github oss

Last synced: 2 months ago
JSON representation

Find the first commit of any GitHub repository.

Awesome Lists containing this project

README

          

# git-first-commit

Find the first commit of any GitHub repository.

## Requirements

- npm
- GitHub API token

## Usage

```sh
git clone https://github.com/Doarakko/git-first-commit

cd git-first-commit
cp .env.local.example .env.local

npm i
npm run d1:execute
npm run dev
```

## Hints

### Delete repository with commits

```sh
npx wrangler d1 execute git-first-commit --local --command "
DELETE FROM commits
WHERE repository_id = (
SELECT id FROM repositories
WHERE username = ''
AND name = ''
);

DELETE FROM repositories
WHERE username = ''
AND name = ''
;
"
```