-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
702 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# @acot/acot-reporter-github | ||
|
||
GitHub reporter for `@acot/cli`. | ||
|
||
## Installation | ||
|
||
Install via npm: | ||
|
||
```bash | ||
$ npm install --save @acot/acot-reporter-github | ||
``` | ||
|
||
## Prerequisites | ||
|
||
There are a few necessary setups for integrating acot with GitHub. | ||
|
||
1. Install the [acot-a11y GitHub App](https://github.com/apps/acot-a11y) in the repository where you want to use GitHub integration. | ||
1. Generate a token for GitHub integration from the [token manager application](https://gh-app.acot.dev). | ||
|
||
## Usage | ||
|
||
```javascript | ||
module.exports = { | ||
reporter: { | ||
use: '@acot/github', | ||
with: { | ||
token: '...', | ||
}, | ||
}, | ||
}; | ||
``` | ||
|
||
### Pass the token as an environment variable | ||
|
||
If you pass a token to the `ACOT_GITHUB_APP_TOKEN` environment variable, the GitHub reporter will automatically resolve the token for you. It is one technique to avoid writing the token directly into the configuration file. | ||
|
||
```javascript | ||
module.exports = { | ||
reporter: '@acot/github', | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "@acot/acot-reporter-github", | ||
"version": "0.0.1", | ||
"description": "GitHub reporter for @acot/cli.", | ||
"homepage": "https://github.com/acot-a11y/acot/tree/main/packages/acot-reporter-github", | ||
"bugs": { | ||
"url": "https://github.com/acot-a11y/acot/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/acot-a11y/acot.git", | ||
"directory": "packages/acot-reporter-github" | ||
}, | ||
"license": "MIT", | ||
"author": "wadackel <wadackel@gmail.com>", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"!__mocks__", | ||
"!__tests__" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "jest" | ||
}, | ||
"jest": { | ||
"preset": "ts-jest", | ||
"rootDir": "src", | ||
"testEnvironment": "node", | ||
"testMatch": [ | ||
"**/__tests__/**/*.test.ts?(x)" | ||
] | ||
}, | ||
"dependencies": { | ||
"@acot/reporter": "0.0.13", | ||
"@acot/schema-validator": "0.0.13", | ||
"@sinclair/typebox": "^0.23.2", | ||
"chalk": "^4.0.0", | ||
"debug": "^4.3.1", | ||
"env-ci": "6.0.0", | ||
"got": "11.8.3" | ||
}, | ||
"devDependencies": { | ||
"@acot/factory": "0.0.13", | ||
"@acot/mock": "0.0.13", | ||
"@acot/types": "0.0.13", | ||
"@types/env-ci": "^3.1.1", | ||
"nock": "^13.2.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
Oops, something went wrong.