github-pr-language-detection-lib


License

License

Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

au.id.tmm.github-pr-language-detection
ArtifactId

ArtifactId

github-pr-language-detection-lib_2.13
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

github-pr-language-detection-lib
github-pr-language-detection-lib
Project URL

Project URL

https://github.com/tmccarthy/github-pr-language-detection
Project Organization

Project Organization

au.id.tmm.github-pr-language-detection
Source Code Management

Source Code Management

https://github.com/tmccarthy/github-pr-language-detection

Download github-pr-language-detection-lib_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/au.id.tmm.github-pr-language-detection/github-pr-language-detection-lib_2.13/ -->
<dependency>
    <groupId>au.id.tmm.github-pr-language-detection</groupId>
    <artifactId>github-pr-language-detection-lib_2.13</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/au.id.tmm.github-pr-language-detection/github-pr-language-detection-lib_2.13/
implementation 'au.id.tmm.github-pr-language-detection:github-pr-language-detection-lib_2.13:0.0.2'
// https://jarcasting.com/artifacts/au.id.tmm.github-pr-language-detection/github-pr-language-detection-lib_2.13/
implementation ("au.id.tmm.github-pr-language-detection:github-pr-language-detection-lib_2.13:0.0.2")
'au.id.tmm.github-pr-language-detection:github-pr-language-detection-lib_2.13:jar:0.0.2'
<dependency org="au.id.tmm.github-pr-language-detection" name="github-pr-language-detection-lib_2.13" rev="0.0.2">
  <artifact name="github-pr-language-detection-lib_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='au.id.tmm.github-pr-language-detection', module='github-pr-language-detection-lib_2.13', version='0.0.2')
)
libraryDependencies += "au.id.tmm.github-pr-language-detection" % "github-pr-language-detection-lib_2.13" % "0.0.2"
[au.id.tmm.github-pr-language-detection/github-pr-language-detection-lib_2.13 "0.0.2"]

Dependencies

compile (15)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.2
org.typelevel : cats-effect_2.13 jar 2.2.0
org.typelevel : mouse_2.13 jar 0.25
au.id.tmm.tmm-scala-collections : tmm-scala-collections-core_2.13 jar 0.0.4
au.id.tmm.tmm-scala-collections : tmm-scala-collections-cats_2.13 jar 0.0.4
au.id.tmm.tmm-utils : tmm-utils-syntax_2.13 jar 0.7.0
au.id.tmm.tmm-utils : tmm-utils-errors_2.13 jar 0.7.0
au.id.tmm.tmm-utils : tmm-utils-cats_2.13 jar 0.7.0
au.id.tmm.digest4s : digest4s-core_2.13 jar 0.0.1
au.id.tmm.intime : intime-core_2.13 jar 2.2.0
co.fs2 : fs2-core_2.13 jar 2.4.4
io.circe : circe-yaml_2.13 jar 0.13.1
org.eclipse.jgit : org.eclipse.jgit jar 5.9.0.202009080501-r
org.kohsuke : github-api jar 1.116
org.slf4j : slf4j-api jar 1.7.30

provided (1)

Group / Artifact Type Version
com.github.ghik : silencer-lib_2.13.2 jar 1.7.0

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.13 jar 3.2.0-M4

Project Modules

There are no modules declared in this project.

github-pr-language-detection

CircleCI Maven Central

A utility for detecting the programming languages used in pull requests against a GitHub repository.

Requires that github-linguist is installed and available on the PATH (see instructions).

Usage

Running on the command line

The project is configured using a json file of the following format:

{
  "gitHubConfiguration": {
    "credentials": {
      "username": "[email protected]",
      "personalAccessToken": "<personal access token>"
    },
    "instance": "github.com"
  },
  "repositoryToScan": "tmccarthy/github-pr-language-detection",
  "performance": {
    "checkoutsPerMinute": 16,
    "maxConcurrent": 2,
    "checkoutTimeout": "PT10S",
    "languageCheckTimeout": "PT30S"
  },
  "reportConfig": {
    "output": "output.csv",
    "timeZone": "Australia/Melbourne",
    "languagesToIgnoreIfPossible": [
      "Shell"
    ]
  }
}

Provide the path to the config file to the cli/run SBT task:

./sbt "cli/run runconfig.json"

Use as a library

Add the following to your build.sbt file:

libraryDependencies += "au.id.tmm.github-pr-language-detection" %% "github-pr-language-detection-lib" % "0.0.2"

Versions

Version
0.0.2