Esempio n. 1
0
        static async Task AsyncMain(IConfigurationRoot config, bool verbose)
        {
            var gitConfig              = config.GetSection("git");
            var launchpadConfig        = config.GetSection("launchpad");
            var launchpadCommitsConfig = launchpadConfig.GetSection("commits");

            var git = new Git.Project(GetGitPath(), verbose);

            git.Init(gitConfig["projectUrl"]);
            git.Fetch();
            var launchpad        = new Launchpad.Cache();
            var launchpadProject = await launchpad.GetProject(launchpadConfig["projectUrl"]);

            var launchpadCommits = git.GetLog(gitConfig["branch"], DateTimeOffset.Parse(launchpadCommitsConfig["startDate"]));

            CommitTriage(launchpadCommits, gitConfig);
            await BugTriage(launchpadProject, launchpadConfig, launchpadCommits);
            await SpecificationTriage(launchpadProject, launchpadConfig, launchpadCommits);
            await SpecificationApprovals(launchpadProject);
        }