Exemplo n.º 1
0
        public async Task <bool> HandleBuild(Build build)
        {
            if (build.Status == BuildStatus.Failed)
            {
                build = await _inputHandler.LinkBuildWithPr(build).ConfigureAwait(false);

                if (build.PullRequest != null)
                {
                    var identifier = await _inputHandler.GetIdentifier(build.PullRequest, IdentifierKeys.Identifier);

                    return(await _outputHandler.NotifyFailedPullRequestBuild(build, identifier).ConfigureAwait(false));
                }

                return(false);
            }

            return(true);
        }