Readme, version, license

This commit is contained in:
galfert 2024-09-05 13:32:39 +02:00
parent 6d1a320445
commit 1978cb6955
3 changed files with 31 additions and 4 deletions

23
README.md Normal file
View File

@ -0,0 +1,23 @@
# Kredits Reviews
This repository contains a script to create Kosmos Kredits for PR reviews on GitHub and Gitea.
## Installation
### Install dependencies
$ npm install
### Set up environment variables
$ cp .env.example .env
Edit the `.env` file and add API tokens for GitHub and Gitea.
## Usage
Run
$ node index.js
to get usage instructions.

View File

@ -184,7 +184,6 @@ Promise.all([
const kredits = values[0]; const kredits = values[0];
const reviews = values[1]; const reviews = values[1];
generateContributionData(reviews, kredits.Contributor).then( generateContributionData(reviews, kredits.Contributor).then(
(contributionData) => { (contributionData) => {
if (argv.dry) { if (argv.dry) {

View File

@ -1,18 +1,23 @@
{ {
"name": "kredits-reviews", "name": "kredits-reviews",
"version": "1.0.0", "version": "0.5.0",
"description": "Create Kosmos Kredits contributions for code reviews", "description": "Create Kosmos Kredits contributions for code reviews",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "Garret Alfert", "author": "Garret Alfert",
"license": "ISC", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^0.21.1", "axios": "^0.21.1",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"ethers": "^5.0.24", "ethers": "^5.0.24",
"kredits-contracts": "^6.0.0", "kredits-contracts": "^6.0.0",
"yargs": "^16.2.0" "yargs": "^16.2.0"
} },
"keywords": [
"kosmos",
"kredits"
]
} }