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], @nickfloyd
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)
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 from 0.51.0 to 1.0.0.
Release notes
Sourced from Octokit's releases.
... (truncated)
Changelog
Sourced from Octokit's changelog.
... (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)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)