static async Task <int> AttachToReleaseAsync(AttachSubOptions options)
        {
            try
            {
                var github = options.CreateGitHubClient();

                await AttachToRelease(github, options.RepositoryOwner, options.RepositoryName, options.Milestone, options.AssetPath);

                return(0);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);

                return(1);
            }
        }
Exemplo n.º 2
0
        static async Task<int> AttachToReleaseAsync(AttachSubOptions options)
        {
            try
            {
                var github = options.CreateGitHubClient();

                await AttachToRelease(github, options.RepositoryOwner, options.RepositoryName, options.Milestone, options.AssetPath);

                return 0;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);

                return 1;
            }
        }