Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Implements .env for repos (minor)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Nov 17, 2019
1 parent 10b9edc commit e65f65e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ If a file does not match the template the template is copied to clipboard and th

Make sure the [template](data/template.json) is correct.

Add an local `.env``

```
REPOS_URL=https://api.github.com/orgs/telemark/repos
```

Start with collecting the repos.

```
Expand Down
3 changes: 2 additions & 1 deletion lib/get-repos.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require('dotenv').config()
const axios = require('axios')
const reposUrl = 'https://api.github.com/orgs/telemark/repos'
const reposUrl = process.env.REPOS_URL

module.exports = async () => {
let repos = []
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
},
"keywords": [
"utility",
"renovate"],
"renovate"
],
"author": "Geir Gåsodden <geir.gasodden@pythonia.no> (https://github.com/zrrrzzt)",
"license": "MIT",
"bugs": {
Expand All @@ -26,6 +27,7 @@
"dependencies": {
"axios": "0.19.0",
"clipboardy": "2.1.0",
"dotenv": "8.2.0",
"opn": "5.5.0"
},
"devDependencies": {
Expand Down

0 comments on commit e65f65e

Please sign in to comment.