https://github.com/philips-labs/github-action-repolinter
Github Action for TODO group Repolinter
https://github.com/philips-labs/github-action-repolinter
Last synced: about 2 months ago
JSON representation
Github Action for TODO group Repolinter
- Host: GitHub
- URL: https://github.com/philips-labs/github-action-repolinter
- Owner: philips-labs
- License: mit
- Created: 2020-02-22T05:56:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T07:18:25.000Z (over 4 years ago)
- Last Synced: 2025-07-20T19:40:44.595Z (3 months ago)
- Language: Shell
- Size: 21.5 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action for TODO group's Repolinter!
[](https://github.com/marketplace/actions/repolinter) [](https://github.com/philips-labs/github-action-repolinter/releases) 
This Action wraps [`repolinter`](https://github.com/todogroup/repolinter) allowing easy linting of your repository!
## Contents
- [Inputs](#inputs)
- [Environment Variables](#environment-variables)
- [Example Usage](#example-usage)
- [Vanilla](#vanilla)
- [Custom File](#custom-file)
- [License](#license)## Inputs
- `args` - Optional. These are the arguments to pass to the `repolinter` CLI.
## Environment Variables
- `CUSTOM_REPOLINT_FILE` - Optional. You can override the [default configuration](./repolint.json). See [todogroup/repolinter](https://github.com/todogroup/repolinter) for more info on that.
## Example Usage
### Vanilla
`repolinter` CLI will automatically lint your repository`:
```yaml
name: Lint repository
on: [push]jobs:
repo-lint:
name: "repolint"
runs-on: ubuntu-latest
steps:
- name: "checkout repo"
uses: actions/checkout@v2.0.0
with:
fetch-depth: 0
- name: Test repolinter
uses: philips-labs/github-action-repolinter@master
```### Custom configuration file:
Specify the configuration file:
```yaml
name: Lint repository
on: [push]jobs:
repo-lint-custom:
name: "repolint custom"
runs-on: ubuntu-latest
steps:
- name: "checkout repo"
uses: actions/checkout@v2.0.0
with:
fetch-depth: 0
- name: Test repolinter
uses: philips-labs/github-action-repolinter@master
env:
CUSTOM_REPOLINT_FILE: repolint.json
```### Scan external git repository
Specify the configuration file:
```yaml
name: Lint repository
on: [push]jobs:
repo-lint-git:
name: "repolint git"
runs-on: ubuntu-latest
steps:
- name: Test repolinter
uses: philips-labs/github-action-repolinter@master
with:
args: --git https://github.com/philips-labs/garo
```### Scan external git repository and custom configuration
Specify the configuration file:
```yaml
name: Lint repository
on: [push]jobs:
repo-lint-git-custom:
name: "repolint git custom"
runs-on: ubuntu-latest
steps:
- name: "checkout repo"
uses: actions/checkout@v2.0.0
with:
fetch-depth: 0
- name: Test repolinter
uses: philips-labs/github-action-repolinter@master
with:
args: --git https://github.com/philips-labs/garo
env:
CUSTOM_REPOLINT_FILE: repolint.json
```#### Examples
[example repo](https://github.com/JeroenKnoops/github-action-repolinter-examples)
### Contributors
[Thanks goes to these contributors](https://github.com/philips-labs/github-action-repolinter/graphs/contributors)!
## License
[MIT License](./LICENSE)