-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
18 lines (14 loc) · 740 Bytes
/
Program.cs
File metadata and controls
18 lines (14 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using BitbucketCommitPlotter.Models;
using BitbucketCommitPlotter.Utils;
var configuration = ConfigurationReader.ReadConfiguration();
/* Get commit data from Bitbucket API */
var commitDataDownloader = new CommitDataDownloader(configuration.Projects, configuration.BaseUrl, configuration.Username,
configuration.Password, configuration.Author);
var commitData = commitDataDownloader.GetCommitData();
File.WriteAllText("CommitData.json", commitData.ToJson());
/* Get commit data from json file */
/*
var filePath = "";
var commitData = CommitData.FromJson(File.ReadAllText(filePath));
*/
commitData.PlotCommitGraph(new DateTime(configuration.Year, 1, 1), new DateTime(configuration.Year, 12, 31), configuration.PlotCommiterName);