Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.22 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.22 KB

GitMonitor

Monitor and query changes across a collection of Git repositories

The introductory blog post can be found here - https://mikefourie.wordpress.com/2016/04/24/gitmonitor/

Web Api

Query commits by previous days

Returns commits from now over the previous specified days.

  • URL /api/commits/[days]

  • Required Params

    days=[int]

  • Sample Calls

    • 10 days commits in default monitoredPathName: /api/commits/10

Query commits by date range

Returns commits between the provided dates (inclusive).

  • URL /api/commits/[startdate]/[enddate]

  • Required Params

    startdate=[datetime]

  • Sample Calls

    • Commits between 1 Jan 2015 and today: /api/commits/1 Jan 2015
    • Commits between 1 Jan 2016 and 30 Jan 2016 today: /api/commits/1 Jan 2016/30 Jan 2016

Find a commit

Returns commits between the provided dates (inclusive).

  • URL /api/search/[monitoredPathName]/[commit]

  • Required Params

    commit=[sha1]

  • Sample Calls

    • Find commit in default monitoredPathName: /api/search/a3er4w
    • Find commit in work monitoredPathName: /api/search/work/a3er4w
    • Find commit in all paths: /api/search/*/a3er4w