Skip to content

Commit

Permalink
Merge pull request #7 from beeceej/readme-updates
Browse files Browse the repository at this point in the history
LGTM: readme and documentation cleanup
  • Loading branch information
beeceej authored May 10, 2020
2 parents 838afc7 + a70eb58 commit 4a33e98
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ 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
- name: LGTM
uses: ./
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OCAMLRUNPARAM: b
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/[email protected]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
2 changes: 1 addition & 1 deletion src/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a33e98

Please sign in to comment.