Go to file
Jakub Sokołowski 60dbc0dbd5 refactor, add CLI args, handle different projects
I added CLI flags so this could be easily re-used:
```sh
 > node import.js --help
Usage: import [options]

Options:
  -t, --github-token <token>     API token for GitHub
  -o, --github-org <name>        Name of GitHub Organization (default: "status-im")
  -p, --project-number <number>  Number of GitHub Project from URL
  -r, --repos-regex <regex>      Regex to match repos (default: "^status-(react|desktop|web)$")
  -d, --dry-run                  Only list issues, do not import (default: false)
  -h, --help                     display help for command
```

I also wanted to import Infra issues to my own Project:
https://github.com/orgs/status-im/projects/73/views/1

And managed do do this using:
```sh
node import.js -p 73 -r '^infra-.*$'
```
I also dropped use of REST API to fetch issues and used GraphQL instead.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-05-25 11:03:55 +02:00
.env.example Use env variables 2022-03-17 14:48:26 +01:00
.gitignore Initial commit 2022-03-17 14:00:50 +01:00
README.md Initial commit 2022-03-17 14:00:50 +01:00
import.js refactor, add CLI args, handle different projects 2022-05-25 11:03:55 +02:00
jsconfig.json Add Octokit 2022-03-17 14:03:21 +01:00
package.json refactor, add CLI args, handle different projects 2022-05-25 11:03:55 +02:00
webhooks.js Use env variables 2022-03-17 14:48:26 +01:00
yarn.lock refactor, add CLI args, handle different projects 2022-05-25 11:03:55 +02:00

README.md

github-projects-scripts