/lgtm-action

lgtm action will help you to approve the pull request

Primary LanguageGoMIT LicenseMIT

lgtm-action

Go Report Card License: MIT

Approve pull requests when numbers of lgtm comment reaches require times.

Suggestions and issues can be posted on the repositories issues page.

Inputs

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:

name: lgtm workflow 

on:
  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

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • HAO YUN - Initial work - haoyun

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • nothing