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

bradleyfalzon / gopherci
60%
master: 61%

Build:
Build:
LAST BUILD BRANCH: review-no-approve
DEFAULT BRANCH: master
Repo Added 22 Oct 2016 12:03PM UTC
Files 0
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

LAST BUILD ON BRANCH commit-comment
branch: commit-comment
CHANGE BRANCH
x
Reset
  • commit-comment
  • analyser-composition
  • build-summary
  • builddb
  • clone-path
  • debug
  • disable-private
  • docker
  • docs-errors
  • dominikh
  • dual-comments
  • error-handling
  • failed-diff
  • first-commit
  • fix-goveralls
  • fix-hardcoded
  • gcppubsub
  • godep
  • gopherci-env
  • gopherci.yml
  • graceful
  • ignore-gen
  • integration-test
  • logger
  • master
  • maxcommments
  • memlimit
  • msgs
  • pr-reviews
  • pr-reviews-default
  • preflight
  • pubsub-breaking
  • pubsub-timeout
  • push
  • refactor-analyser
  • reference-failures
  • refreader
  • remove-accountid
  • reporter
  • requeue
  • review-no-approve
  • senderid
  • show-env
  • syncronize
  • test
  • various
  • wbsecret
  • webui

pending completion
328

push

travis-ci

bradleyfalzon
Comment on commits via CommitCommentReporter and InlineCommitCommentReporter

Previously we were only commenting on pull requests, this adds support for
commenting on commits (eg during a Push Event).

Unlike pull requests, where inline comments are positioned in relation to
the entire pull request (no matter how many commits there are), commit
comments must be on the individual commit and positioned relative to that
commit. The comments aren't on the push, they're on the individual commits.
making it very difficult to track which issue was caused by which commit.

GopherCI runs after applying all commits, the diffs it generates are the
accumulation of all commits, and the individual line number of issues are
after all commits are applied. Making it very difficult to track which issue
was caused by which commit.  See full discussion in #75 for why other
workarounds wouldn't work.

Instead, if the push event only has one commit, we can place comments
inline and we use InlineCommitCommentReporter for this.

If there are multiple commits, we'll use CommitCommentReporter to create
a single comment on the most recent commit with a summary saying:

    GopherCI found %d issues in the last %d commits, see: https://...

The user can then visit the URL to see all issues and they also appear
inline on the analysis summary page.

When commit comments are combined with pull requests, the following
behaviour occurs (tested at the time of writing):

If a single comment was created with CommitCommentReporter, the pull
request will show this single comment on the main pull request page,
then the pull request event will create inline comments for the same
issues. So you'll see n+1 comments, in different locations on the
GitHub UI.

If multiple inline comments were created with InlineCommitCommentReporter
all inline comments are shown on the main pull request page (they don't
appear inline on the pull request), and then the pull request event
will create additional inl... (continued)

1048 of 1752 relevant lines covered (59.82%)

2.56 hits per line

Relevant lines Covered
Build:
Build:
1752 RELEVANT LINES 1048 COVERED LINES
2.56 HITS PER LINE
Source Files on commit-comment
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
328 commit-comment Comment on commits via CommitCommentReporter and InlineCommitCommentReporter Previously we were only commenting on pull requests, this adds support for commenting on commits (eg during a Push Event). Unlike pull requests, where inline comments a... push 11 Aug 2017 08:01AM UTC bradleyfalzon travis-ci pending completion  
326 commit-comment Comment on commits via CommitCommentReporter and InlineCommitCommentReporter Previously we were only commentinng on pull requests, this adds support for commenting on commits (eg during a Push Event). Unlike pull requests, where inline comments ... push 11 Aug 2017 07:51AM UTC bradleyfalzon travis-ci pending completion  
325 commit-comment Comment on commits via CommitCommentReporter and InlineCommitCommentReporter Previously we were only comments on Pull Requests, this adds support for commenting on commits (eg during a Push Event). Unlike Pull Requests, where inline comments are... push 11 Aug 2017 07:32AM UTC bradleyfalzon travis-ci pending completion  
324 commit-comment More push 11 Aug 2017 07:08AM UTC bradleyfalzon travis-ci pending completion  
323 commit-comment Add tests push 11 Aug 2017 02:32AM UTC bradleyfalzon travis-ci pending completion  
322 commit-comment So far push 11 Aug 2017 01:59AM UTC bradleyfalzon travis-ci pending completion  
See All Builds (294)
  • Repo on GitHub
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

© 2025 Coveralls, Inc