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);
            }
        }
示例#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;
            }
        }