Feature: Github monitoring

  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
  
  Scenario:
    Given there are 13 public repositories on github
    Then the number 13 should be stored in the public repositories stat
    When the github monitor runs

  Scenario:
    Given the repository "open-orgn-services" has 48 open issues
    And the repository "public-displays" has 2 open issues
    And the repository "csv-profiler" has 1 open issue
    And the repository "open-data-tech-review" has 1 open issue
    Then the number 52 should be stored in the open issues stat
    When the github monitor runs

  Scenario:
    Given the repository "open-data-tech-review" has 28 watchers
    Then the number 28 should be stored in the watchers stat
    When the github monitor runs

  Scenario:
    Given the repository "open-data-tech-review" has 4 forks
    And the repository "odibot" has 1 fork
    Then the number 5 should be stored in the forks stat
    When the github monitor runs

  Scenario:
    Given the repository "open-orgn-services" has 1 open pull request
    Then the number 1 should be stored in the open pull requests stat
    When the github monitor runs

  @wip
  Scenario:
    Given the repository "open-orgn-services" has 1 open pull request
    And the repository "open-orgn-services" has 1 closed pull request
    And the repository "public-keys" has 3 closed pull requests
    Then the number 5 should be stored in the total pull requests stat
    When the github monitor runs
Add feature for github metrics
Add feature for github metrics

0:15
