private static EmbedAuthor ExtractAuthor(BitbucketServerActor actor, BitbucketServerRepository repository)
        {
            // To keep actual names private, we have opted to go with a different approach. By default, we will
            // return the Repository Name as the Author name. If you want this changed, set the
            // ALLOW_REAL_NAMES environment variable to true.
            var authorName = Environment.GetEnvironmentVariable("ALLOW_REAL_NAMES") == "true"
                ? actor.DisplayName
                : repository.Name;

            return(new EmbedAuthor
            {
                Name = authorName,
                IconUrl = "https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/44_Bitbucket_logo_logos-512.png"
            });
        }
 private static string ExtractBaseLink(BitbucketServerActor actor)
 {
     return(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("BITBUCKET_SERVER_URL"))
         ? actor.Links.Self[0].Href
         : Environment.GetEnvironmentVariable("BITBUCKET_SERVER_URL"));
 }