diff --git a/.github/workflows/action.yaml b/.github/workflows/action.yaml index 90c706a..a6ab602 100644 --- a/.github/workflows/action.yaml +++ b/.github/workflows/action.yaml @@ -5,7 +5,7 @@ on: jobs: lgtm: runs-on: ubuntu-latest - name: A job to say hello + name: True meaning of LGTM steps: - name: Checkout uses: actions/checkout@v2 @@ -13,4 +13,3 @@ jobs: uses: ./ env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OCAMLRUNPARAM: b diff --git a/README.md b/README.md index 0f8970f..7c7ba27 100644 --- a/README.md +++ b/README.md @@ -1 +1,40 @@ # LGTM + +Who knows what the heck LGTM even stands for anyway? + +Let's Get This Merged? + +Let's Get this Money? + +Looks Good To me? + +something else? + +This is an action that responds to the acronym in Pull Requests or issues with the true meaning of LGTM, or atleast up to the Random Number Generator. + +Setup: + +Add the `GH_TOKEN` secret to your repo with a token that has permission to comment on Issues. + + +``` +cat .github/workflows/action.yaml + +--- + +on: + issue_comment: + types: [created] + +jobs: + lgtm: + runs-on: ubuntu-latest + name: True meaning of LGTM + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: LGTM + uses: beeceej/lgtm@v0.0.1 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} +``` diff --git a/src/main.ml b/src/main.ml index 42f5b93..294ff2c 100644 --- a/src/main.ml +++ b/src/main.ml @@ -9,7 +9,7 @@ module LgtmAcronym = struct let g = rand_from_list Words.g in let t = rand_from_list Words.t in let m = rand_from_list Words.m in - Printf.sprintf "*%s* *%s* *%s* *%s*" l g t m + Printf.sprintf "**%s** **%s** **%s** **%s**" l g t m end module Github = struct