• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sds / overcommit / 1937
91%

Build:
DEFAULT BRANCH: master
Ran 13 Aug 2020 04:59AM UTC
Jobs 3
Files 207
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1937

push

travis-ci

web-flow
Update ReplaceBranch hook to avoid running on `--amend` by default (#725)

* change default branch pattern for ReplaceBranch

This changes the default branch pattern to a simpler pattern.

This is added to make understanding the hook and it's usage a bit
easier.

* change an example in ReplaceBranch spec to default

This changes the spec to test against the same default branch
replacement pattern specified in the default config.

This is just to make things more consistent.

* improve class comment describing ReplaceBranch usage

This makes the usage of this (hopefully) obvious to anyone reading it.

* add `commit` to default ReplaceBranch skipped types

This makes the default behavior of this hook skip commits that explicitly
give the SHA, i.e, `--amend`, `-c`, or `-C`.

This is added because most people (I'd argue) don't want to run this
hook on `amend`s.

* remove extra hard-coded space in ReplaceBranch

This removes a trailing space after the repacement text, as well as
`#strip`ing the replacement text.

* refactor ReplaceBranch specs to avoid so much mocking

This changes the specs for the ReplaceBranch hook to

- test the contents of the file that `git` writes it's commit message to
- explicitly set config variables instead of mocking them

* update ReplaceBranch specs to test all `skipped_commit_types`

* shorten a long line for the linter

3015 of 3326 relevant lines covered (90.65%)

420.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1937.1 (2.4) 13 Aug 2020 04:59AM UTC 0
90.69
Travis Job 1937.1
2 1937.2 (2.5) 13 Aug 2020 05:00AM UTC 0
90.67
Travis Job 1937.2
3 1937.3 (2.6) 13 Aug 2020 04:59AM UTC 0
90.67
Travis Job 1937.3
Source Files on build 1937
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1937
  • 603aa1bd on github
  • Prev Build on master (#1920)
  • Next Build on master (#1943)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc