Skip to content

Commit

Permalink
📘 Add example image to README
Browse files Browse the repository at this point in the history
Adds an example screenshot to the README to show this action in action.
  • Loading branch information
dennissivia committed Aug 18, 2019
1 parent a44ffa8 commit 983c3ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
This action automatcially replies to `+1` comments to let the user know that the most
helpful way is to either react with an emoji to an existing post or to provide more context.

## How it looks like

![Example comment](/docs/img/example-comment.png "Plus9k in action")

## Usage

Expand Down
Binary file added docs/img/example-comment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions lib/plus9k.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def run()
if content == "+1"
handle_plus_one()
else
puts "this is a normal comment: #{content}"
puts "This is a regular comment. Doing nothing."
end
end

Expand All @@ -49,7 +49,6 @@ def already_replied?(repo, issue)
end

def reply(repo, issue_id)
puts "Adding message: #{repo}/#{issue_id} with message #{@message}"
@client.add_comment(repo, issue_id, @message)
end
end

0 comments on commit 983c3ac

Please sign in to comment.