项目作者: nicokosi

项目描述 :
Command-line for GitHub pull request statistics
高级语言: Kotlin
项目地址: git://github.com/nicokosi/pullpitoK.git
创建时间: 2019-01-01T14:43:33Z
项目社区:https://github.com/nicokosi/pullpitoK

开源协议:

下载


PullpitoK Build Status

Like nicokosi/pullpito, but implemented in Kotlin in order to discover this language. 🎓

Build

  1. ./gradlew build

Run

For a public Github repository, run:

  1. ./gradlew run --args "python/peps"

For a private Github repository, add a authentication token:

  1. ./gradlew run --args "fakeOrg/fakePrivateRepo $GITHUB_TOKEN"

In order to show the ‘usage’:

  1. ./gradlew run --args="--help"

Install

In order to generate a *nix executable, run:

  1. ./generate-executable.sh

An executable file named pullpitoK should be generated in the current directory. It can then be run:

  1. ./pullpitoK

Dev tasks

Format the code

  1. ./gradlew spotlessApply

Inspect the code

Code inspection is configured on the main branch. See the sonarcloud.io’s dashboard.

In order to inspect the code locally, run:

  1. docker run -d --name sonarqube -p 9000:9000 sonarqube
  2. ./gradlew sonarqube --info -Dsonar.login=admin -Dsonar.password=admin

Upgrade the dependencies

  1. ./gradlew useLatestVersions

Upgrade the build system

Check the current version in the Gradle documentation and run:

  1. ./gradlew wrapper --gradle-version $GRADLE_CURRENT_VERSION