Bump Octokit from 0.50.0 to 1.0.0 #126

Closed
dependabot[bot] wants to merge 1 commit from dependabot/nuget/Octokit-1.0.0 into master
dependabot[bot] commented 2022-07-14 06:04:43 +02:00 (Migrated from github.com)

Bumps Octokit from 0.50.0 to 1.0.0.

Release notes

Sourced from Octokit's releases.

v1.0.0

Release Notes

Breaking changes

Features/Enhancements

Housekeeping

Documentation Updates

v0.52 - Housekeeping and DX!

Advisories and Breaking Changes

  • None

Release Notes

Features/Enhancements

Housekeeping

... (truncated)

Changelog

Sourced from Octokit's changelog.

Working with Releases

Get All

To retrieve all releases for a repository:

var releases = await client.Repository.Release.GetAll("octokit", "octokit.net");
var latest = releases[0];
Console.WriteLine(
    "The latest release is tagged at {0} and is named {1}", 
    latest.TagName, 
    latest.Name);

Create

To create a new release you must have a corresponding tag in the repository. See the git-database.md docs for details.

var newRelease = new NewRelease("v1.0.0");
newRelease.Name = "Version One Point Oh";
newRelease.Body = "**This** is some *Markdown*";
newRelease.Draft = true;
newRelease.Prerelease = false;

var result = await client.Repository.Release.Create("octokit", "octokit.net", newRelease); Console.WriteLine("Created release id {0}", result.Id);

Note that the Draft flag is used to indicate when a release should be published to the world, whereas the PreRelease flag is used to indicate whether a release is unofficial or preview release.

Update

Once the release is ready for the public, you can apply an update to the release:

var release = client.Repository.Release.Get("octokit", "octokit.net", 1);
var updateRelease = release.ToUpdate();
updateRelease.Draft = false;
updateRelease.Name = "Version 1.0";
updateRelease.TargetCommitish = "0edef870ecd885cc6506f1e3f08341e8b87370f2" // can also be a ref
var result = await client.Repository.Release.Edit("octokit", "octokit.net", 1, updateRelease);

Upload Assets

If you have any assets to include with the release, you can upload them after creating the release:

</tr></table> 

... (truncated)

Commits
  • aca587b [deps] Bump xunit.runner.visualstudio from 2.4.3 to 2.4.5 (#2440)
  • 3f3466c [deps] Bump Cake.Frosting from 1.1.0 to 2.2.0 in /build (#2437)
  • 7384b46 [feat] Adds the slug field to the GitHubApp response object
  • 0e469a9 [feat] Deployment task is arbitrary string value (#2413)
  • 3129040 [feat] Add AutoMerge and add MergeOptions to NewRepository object (#2476)
  • 7ab6dc3 [deps] Bump NSubstitute from 4.3.0 to 4.4.0 (#2475)
  • f6e541d [FEAT] Update permissions based on GitHub documentation (#2424)
  • 8e6bcd1 [FEAT] Added enterprise pre-receive hooks client (#2375)
  • 2179065 [DOCS] Corrects links into github documentation (#2378)
  • f92f0b8 [FEAT] add Triage/Maintain permission (#2467)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps [Octokit](https://github.com/octokit/octokit.net) from 0.50.0 to 1.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/octokit/octokit.net/releases">Octokit's releases</a>.</em></p> <blockquote> <h2>v1.0.0</h2> <h2>Release Notes</h2> <p><strong>Breaking changes</strong></p> <ul> <li>Updates the NewDeployment Task property from the DeployTask enum to string - via <a href="https://docs.github.com/en/rest/reference/deployments#create-a-deployment">REST API docs</a> - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2413">#2413</a> via <a href="https://github.com/mryanmurphy"><code>@​mryanmurphy</code></a></li> </ul> <p><strong>Features/Enhancements</strong></p> <ul> <li>Add method to check if repo vulnerability alerts are enabled - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2453">#2453</a> via <a href="https://github.com/lboynton"><code>@​lboynton</code></a></li> <li>Adds handling for secondary rate limit exceptions from the GitHub REST API - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2473">#2473</a> via <a href="https://github.com/JonruAlveus"><code>@​JonruAlveus</code></a></li> <li>Adds Triage/Maintain permission properties - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2467">#2467</a> via <a href="https://github.com/janv8000"><code>@​janv8000</code></a></li> <li>Adds enterprise pre-receive hooks client - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2375">#2375</a> via <a href="https://github.com/tasadar2"><code>@​tasadar2</code></a></li> <li>Adds new permissions to the team repository permissions enum - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2424">#2424</a> via <a href="https://github.com/samvdd-247"><code>@​samvdd-247</code></a></li> <li>Adds AutoMerge and add MergeOptions to NewRepository object - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2476">#2476</a> via <a href="https://github.com/JonruAlveus"><code>@​JonruAlveus</code></a></li> <li>Adds the slug field to the GitHubApp response object - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2391">#2391</a> via <a href="https://github.com/Whitestripe7773"><code>@​Whitestripe7773</code></a></li> </ul> <p><strong>Housekeeping</strong></p> <ul> <li>Tweak User-Agent to refer to Octokit.net, not just Octokit - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2447">#2447</a> via <a href="https://github.com/timrogers"><code>@​timrogers</code></a></li> <li>Dependency bump - Microsoft.NET.Test.Sdk from 16.11.0 to 17.2.0 - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2445">#2445</a> via <a href="https://github.com/apps/dependabot"><code>@​dependabot[bot]</code></a></li> <li>Dependency bump - NSubstitute from 4.2.2 to 4.3.0 - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2402">#2402</a> via <a href="https://github.com/apps/dependabot"><code>@​dependabot[bot]</code></a></li> <li>Dependency bump - Microsoft.SourceLink.GitHub from 1.0.0 to 1.1.1 - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2372">#2372</a> via <a href="https://github.com/apps/dependabot"><code>@​dependabot[bot]</code></a></li> <li>Dependency bump - NSubstitute from 4.3.0 to 4.4.0 - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2475">#2475</a> via <a href="https://github.com/apps/dependabot"><code>@​dependabot[bot]</code></a></li> <li>Dependency bump - Cake.Frosting from 1.1.0 to 2.2.0 in /build - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2437">#2437</a> via <a href="https://github.com/apps/dependabot"><code>@​dependabot[bot]</code></a>, <a href="https://github.com/nickfloyd"><code>@​nickfloyd</code></a></li> <li>Dependency bump - xunit.runner.visualstudio from 2.4.3 to 2.4.5. Also updates the .NET versions for all test projects from 4.6 to 4.6.2 - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2440">#2440</a> via <a href="https://github.com/apps/dependabot"><code>@​dependabot[bot]</code></a>, <a href="https://github.com/nickfloyd"><code>@​nickfloyd</code></a></li> </ul> <p><strong>Documentation Updates</strong></p> <ul> <li>Fixes links to github API documentation - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2378">#2378</a> via <a href="https://github.com/Stefan-J-Hanke"><code>@​Stefan-J-Hanke</code></a></li> </ul> <h2>v0.52 - Housekeeping and DX!</h2> <h2>Advisories and Breaking Changes</h2> <ul> <li>None</li> </ul> <h2>Release Notes</h2> <p><strong>Features/Enhancements</strong></p> <ul> <li>Adds Draft to MergeableState enum - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2381">#2381</a> via <a href="https://github.com/adtakle"><code>@​adtakle</code></a></li> <li>Adds support for IsTemplate and Create Template from Repository - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2331">#2331</a> via <a href="https://github.com/JonruAlveus"><code>@​JonruAlveus</code></a></li> </ul> <p><strong>Housekeeping</strong></p> <ul> <li>Adds stale bot functionality via action and removes the stalebot config - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2442">#2442</a> via <a href="https://github.com/nickfloyd"><code>@​nickfloyd</code></a></li> <li>Configures the project for GitHub Codespaces - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2443">#2443</a> via <a href="https://github.com/timrogers"><code>@​timrogers</code></a></li> <li>Fixs the Visual Studio Code tasks configuration file - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2448">#2448</a> via <a href="https://github.com/timrogers"><code>@​timrogers</code></a></li> <li>Explicitly configures indentation settings for VSCode - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2450">#2450</a> via <a href="https://github.com/timrogers"><code>@​timrogers</code></a></li> <li>Adds Codespaces template configuration for the dev container - <a href="https://github-redirect.dependabot.com/octokit/octokit.net/pull/2449">#2449</a> via <a href="https://github.com/timrogers"><code>@​timrogers</code></a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/octokit/octokit.net/blob/main/docs/releases.md">Octokit's changelog</a>.</em></p> <blockquote> <h1>Working with Releases</h1> <h3>Get All</h3> <p>To retrieve all releases for a repository:</p> <pre lang="csharp"><code>var releases = await client.Repository.Release.GetAll(&quot;octokit&quot;, &quot;octokit.net&quot;); var latest = releases[0]; Console.WriteLine( &quot;The latest release is tagged at {0} and is named {1}&quot;, latest.TagName, latest.Name); </code></pre> <h3>Create</h3> <p>To create a new release you must have a corresponding tag in the repository. See the <code>git-database.md</code> docs for details.</p> <pre lang="csharp"><code>var newRelease = new NewRelease(&quot;v1.0.0&quot;); newRelease.Name = &quot;Version One Point Oh&quot;; newRelease.Body = &quot;**This** is some *Markdown*&quot;; newRelease.Draft = true; newRelease.Prerelease = false; <p>var result = await client.Repository.Release.Create(&quot;octokit&quot;, &quot;octokit.net&quot;, newRelease); Console.WriteLine(&quot;Created release id {0}&quot;, result.Id); </code></pre></p> <p>Note that the <code>Draft</code> flag is used to indicate when a release should be published to the world, whereas the <code>PreRelease</code> flag is used to indicate whether a release is unofficial or preview release.</p> <h3>Update</h3> <p>Once the release is ready for the public, you can apply an update to the release:</p> <pre lang="csharp"><code>var release = client.Repository.Release.Get(&quot;octokit&quot;, &quot;octokit.net&quot;, 1); var updateRelease = release.ToUpdate(); updateRelease.Draft = false; updateRelease.Name = &quot;Version 1.0&quot;; updateRelease.TargetCommitish = &quot;0edef870ecd885cc6506f1e3f08341e8b87370f2&quot; // can also be a ref var result = await client.Repository.Release.Edit(&quot;octokit&quot;, &quot;octokit.net&quot;, 1, updateRelease); </code></pre> <h3>Upload Assets</h3> <p>If you have any assets to include with the release, you can upload them after creating the release:</p> <pre lang="csharp"><code>&lt;/tr&gt;&lt;/table&gt; </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/octokit/octokit.net/commit/aca587b104f08cbf80e3c8f7ac0d71f3e94e429a"><code>aca587b</code></a> [deps] Bump xunit.runner.visualstudio from 2.4.3 to 2.4.5 (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2440">#2440</a>)</li> <li><a href="https://github.com/octokit/octokit.net/commit/3f3466c764290f36d0212a12652c3e9174b07e39"><code>3f3466c</code></a> [deps] Bump Cake.Frosting from 1.1.0 to 2.2.0 in /build (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2437">#2437</a>)</li> <li><a href="https://github.com/octokit/octokit.net/commit/7384b467723cbce7c63e0069ee1a2fa9195f65d0"><code>7384b46</code></a> [feat] Adds the slug field to the GitHubApp response object</li> <li><a href="https://github.com/octokit/octokit.net/commit/0e469a9e3b5bcea57fb13d6a1a52bad640147cd9"><code>0e469a9</code></a> [feat] Deployment task is arbitrary string value (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2413">#2413</a>)</li> <li><a href="https://github.com/octokit/octokit.net/commit/312904022d48e593af9f0e261f90fd9aa4078be0"><code>3129040</code></a> [feat] Add AutoMerge and add MergeOptions to NewRepository object (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2476">#2476</a>)</li> <li><a href="https://github.com/octokit/octokit.net/commit/7ab6dc3cec4fe80cfe10e210d6b7ac5b5583d66f"><code>7ab6dc3</code></a> [deps] Bump NSubstitute from 4.3.0 to 4.4.0 (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2475">#2475</a>)</li> <li><a href="https://github.com/octokit/octokit.net/commit/f6e541d616f884d0458883c8a70c716b9c69133f"><code>f6e541d</code></a> [FEAT] Update permissions based on GitHub documentation (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2424">#2424</a>)</li> <li><a href="https://github.com/octokit/octokit.net/commit/8e6bcd1e496d64243ee64e3e7ff4de5fe01fa731"><code>8e6bcd1</code></a> [FEAT] Added enterprise pre-receive hooks client (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2375">#2375</a>)</li> <li><a href="https://github.com/octokit/octokit.net/commit/21790652015f17cd0ff96b283fe993865e32ea43"><code>2179065</code></a> [DOCS] Corrects links into github documentation (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2378">#2378</a>)</li> <li><a href="https://github.com/octokit/octokit.net/commit/f92f0b8194d7105cf08ca8f11eea6f25b9f642e7"><code>f92f0b8</code></a> [FEAT] add Triage/Maintain permission (<a href="https://github-redirect.dependabot.com/octokit/octokit.net/issues/2467">#2467</a>)</li> <li>Additional commits viewable in <a href="https://github.com/octokit/octokit.net/compare/v0.50.0...v1.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Octokit&package-manager=nuget&previous-version=0.50.0&new-version=1.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
dependabot[bot] commented 2022-08-02 06:04:25 +02:00 (Migrated from github.com)

Superseded by #128.

Superseded by #128.

Pull request closed

Sign in to join this conversation.
No description provided.