Logo: Relish

  1. Sign in

Project: Open-orgn-services

Github monitoring

  • @vcr

In order to track our open-source metrics
As a member of the tech team
I want to capture stats from github and push them to a dashboard

Scenarios
get public repository count
Given
there are 27 public repositories on github
Then
the number 27 should be stored in the public repositories stat
When
the github organisation monitor runs
get open issue count
Given
the repository "capsulecrm" has 1 open issue
And
the repository "csv-profiler" has 1 open issue
And
the repository "hot-drinks" has 1 open issue
And
the repository "member-directory" has 11 open issues
And
the repository "open-data-certificate" has 20 open issues
And
the repository "open-data-tech-review" has 1 open issue
And
the repository "open-orgn-services" has 75 open issues
And
the repository "public-displays" has 2 open issues
And
the repository "services-manager" has 1 open issue
And
the repository "signin-web" has 7 open issues
Then
the number 120 should be stored in the open issues stat
When
the github issue monitor runs
get watcher count
Given
the repository "bootstrap" has 1 watcher
And
the repository "open-data-certificate" has 1 watcher
And
the repository "open-data-tech-review" has 29 watchers
Then
the number 31 should be stored in the watchers stat
When
the github watcher and fork monitor runs
get fork count
Given
the repository "hot-drinks" has 1 fork
And
the repository "odibot" has 1 fork
And
the repository "open-data-tech-review" has 4 forks
Then
the number 6 should be stored in the forks stat
When
the github watcher and fork monitor runs
get open pull request count
Given
the repository "capsulecrm" has 1 open pull request
And
the repository "member-directory" has 2 open pull requests
And
the repository "open-orgn-services" has 1 open pull request
And
the repository "services-manager" has 1 open pull request
Then
the number 5 should be stored in the open pull requests stat
When
the github pull request monitor runs
get total pull request count
Given
the repository "capsulecrm" has 1 open pull request
And
the repository "bootstrap" has 2 closed pull requests
And
the repository "hot-drinks" has 2 closed pull requests
And
the repository "member-directory" has 2 open pull requests
And
the repository "member-directory" has 23 closed pull requests
And
the repository "odibot" has 1 closed pull requests
And
the repository "open-orgn-services" has 1 open pull request
And
the repository "open-orgn-services" has 30 closed pull requests
And
the repository "public-keys" has 3 closed pull requests
And
the repository "services-manager" has 1 open pull request
And
the repository "services-manager" has 3 closed pull requests
And
the repository "signin-web" has 5 closed pull requests
And
the repository "www" has 10 closed pull requests
Then
the number 84 should be stored in the total pull requests stat
When
the github pull request monitor runs
send new pull requests to hubot
Given
the repository "cuke-chef" has 1 open pull request
And
the repository "hot-drinks" has 1 open pull request
And
the pull requests have not already been sent to hubot
Then
the following json should be posted to hubot:
{"url":"https://github.com/theodi/cuke-chef/pull/8","repo":"cuke-chef","title":"I think this is a working role for the git data viewer app"}
And
the following json should be posted to hubot:
{"url":"https://github.com/theodi/hot-drinks/pull/6","repo":"hot-drinks","title":"DON'T MERGE THIS!"}
When
the github pull request monitor runs
don't send old pull requests to hubot
Given
the repository "cuke-chef" has 1 open pull request
And
the repository "hot-drinks" has 1 open pull request
And
the pull requests have already been sent to hubot
Then
hubot should not recieve anything
When
the github pull request monitor runs
get outgoing pull request count
Given
the repository "Atalanta/cucumber-chef" has 1 pull request from us
And
the repository "nandub/hubot-irc" has 1 pull request from us
And
the repository "cassianoleal/vagrant-butcher" has 1 pull request from us
And
the repository "waynerobinson/xeroizer" has 1 pull request from us
Then
the number 4 should be stored in the outgoing pull requests stat
When
the github outgoing pull request monitor runs

Last published over 4 years ago by Tech Team.