Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonyhy96/lgtm-action
lgtm action will help you to approve the pull request
https://github.com/jonyhy96/lgtm-action
actions golang lgtm
Last synced: 17 days ago
JSON representation
lgtm action will help you to approve the pull request
- Host: GitHub
- URL: https://github.com/jonyhy96/lgtm-action
- Owner: jonyhy96
- License: mit
- Created: 2020-04-02T02:19:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-09T06:19:31.000Z (almost 3 years ago)
- Last Synced: 2024-03-15T02:34:38.207Z (10 months ago)
- Topics: actions, golang, lgtm
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# lgtm-action
[![Go Report Card](https://goreportcard.com/badge/github.com/jonyhy96/lgtm-action)](https://goreportcard.com/report/github.com/jonyhy96/lgtm-action)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)Approve pull requests when numbers of `lgtm` comment reaches require times.
Suggestions and issues can be posted on the repositories [issues page](https://github.com/jonyhy96/lgtm-action/issues).
[Inputs](#Inputs)
* [token](#token)
* [times](#times)
* [owners](#owners)[Example usage](#Example-usage)
## Inputs
### `token`
**Required** Github auth token use for make access to this pr.
### `times`
The number of owners that you want to get approved from.(default: 1)
### `owners`
The owners file containing all owner.(default: OWNERS)
## Example usage
The following will subscribe `issue_comment` and `pull_request_review` event and if the times is satisfied it will approve this pr.
**Recommend** Use docker image:
```yaml
name: lgtm workflowon:
pull_request_review:
issue_comment:jobs:
build-and-push:
runs-on: ubuntu-16.04
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v2- name: lgtm action
uses: docker://jonyhy/lgtm-action:v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
```### Coding style
[CODEFMT](https://github.com/golang/go/wiki/CodeReviewComments)
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/jonyhy96/lgtm-action/tags).
## Authors
* **HAO YUN** - *Initial work* - [haoyun](https://github.com/jonyhy96)
See also the list of [contributors](CONTRIBUTORS) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
## Acknowledgments
* nothing