Camelotia
Camelotia copied to clipboard
Bump Octokit from 0.51.0 to 1.0.0 in /src
Bumps Octokit from 0.51.0 to 1.0.0.
Release notes
Sourced from Octokit's releases.
v1.0.0
Release Notes
Breaking changes
- Updates the NewDeployment Task property from the DeployTask enum to string - via REST API docs - #2413 via
@mryanmurphyFeatures/Enhancements
- Add method to check if repo vulnerability alerts are enabled - #2453 via
@lboynton- Adds handling for secondary rate limit exceptions from the GitHub REST API - #2473 via
@JonruAlveus- Adds Triage/Maintain permission properties - #2467 via
@janv8000- Adds enterprise pre-receive hooks client - #2375 via
@tasadar2- Adds new permissions to the team repository permissions enum - #2424 via
@samvdd-247- Adds AutoMerge and add MergeOptions to NewRepository object - #2476 via
@JonruAlveus- Adds the slug field to the GitHubApp response object - #2391 via
@Whitestripe7773Housekeeping
- Tweak User-Agent to refer to Octokit.net, not just Octokit - #2447 via
@timrogers- Dependency bump - Microsoft.NET.Test.Sdk from 16.11.0 to 17.2.0 - #2445 via
@dependabot[bot]- Dependency bump - NSubstitute from 4.2.2 to 4.3.0 - #2402 via
@dependabot[bot]- Dependency bump - Microsoft.SourceLink.GitHub from 1.0.0 to 1.1.1 - #2372 via
@dependabot[bot]- Dependency bump - NSubstitute from 4.3.0 to 4.4.0 - #2475 via
@dependabot[bot]- Dependency bump - Cake.Frosting from 1.1.0 to 2.2.0 in /build - #2437 via
@dependabot[bot],@nickfloyd- 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 - #2440 via
@dependabot[bot],@nickfloydDocumentation Updates
- Fixes links to github API documentation - #2378 via
@Stefan-J-HankeFull Changelog: https://github.com/octokit/octokit.net/compare/v0.52.0...v1.0.0
v0.52 - Housekeeping and DX!
Advisories and Breaking Changes
- None
Release Notes
Features/Enhancements
- Adds Draft to MergeableState enum - #2381 via
@adtakle- Adds support for IsTemplate and Create Template from Repository - #2331 via
@JonruAlveusHousekeeping
- Adds stale bot functionality via action and removes the stalebot config - #2442 via
@nickfloyd- Configures the project for GitHub Codespaces - #2443 via
@timrogers- Fixs the Visual Studio Code tasks configuration file - #2448 via
@timrogers
... (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.mddocs 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
Draftflag is used to indicate when a release should be published to the world, whereas thePreReleaseflag 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 object0e469a9[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 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)