Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
dentarg committed Jun 25, 2022
1 parent 0441dc4 commit a1fe720
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Gem Compare

For pull requests with a title matching `/Bump (.+) from (.+) to (.+)/`, it posts a comment with the output from `gem compare` and `gem compare --diff`. Uses https://rubygems.org/gems/gem-compare (https://github.com/fedora-ruby/gem-compare).

To use in your repo, add a workflow like this:

````yaml
name: Gem Compare

on:
pull_request:
types:
- opened
- reopened

jobs:
compare:
if: startsWith(github.head_ref, 'dependabot/bundler/')
runs-on: ubuntu-latest
steps:
- uses: dentarg/gem-compare@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
````

0 comments on commit a1fe720

Please sign in to comment.