Skip to content

Commit 5d73273

Browse files
authored
Merge branch 'main' into description-fixes
2 parents 7ba3647 + 64836a8 commit 5d73273

File tree

44 files changed

+251
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+251
-99
lines changed

LATEST-VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.17.0
1+
v1.18.0

docs/ContributingCode.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ There are 3 types of static analysis that are enforced on every PR:
6666
3. dotnet format - This is a style/formatting check. To ensure we follow consistent code formatting you should run `dotnet format` locally before creating a PR. If the PR build fails on dotnet format it's almost certainly because you didn't run dotnet format before committing.
6767
6868
## Publishing a Release
69-
Only repo maintainers can publish a release. The process is kicked off by pushing a tag in the format `v0.7`. We follow [Semantic Versioning](https://semver.org/) when deciding on the next version number.
69+
Only repo maintainers can publish a release. The process is kicked off by pushing a tag in the format `v1.18.0`. We follow [Semantic Versioning](https://semver.org/) when deciding on the next version number.
7070
7171
### How to publish a release
7272
73-
1. Check [`RELEASENOTES.md`](http://releasenotes.md/) to see if there is anything to release.
73+
1. Check [`RELEASENOTES.md`](/RELEASENOTES.md) to see if there is anything to release.
7474
2. Switch to the `main` branch and `pull` the latest.
7575
3. *optional* List the tags e.g. `git tag`
76-
4. Tag the version e.g. `git tag v5.0`
76+
4. Tag the version e.g. `git tag v1.18.0`
7777
5. Push the tags up e.g. `git push --tags`
7878
6. This will trigger an Actions workflow that results in a new release being published, once the build is done it will wait for approval(from maintainers) in order to `pushlish` the binaries. The workflow does the following steps:
7979
- Validates that the SHA referenced by the tag is in the history of the `main` branch
8080
- Runs `publish.ps1` to build self-contained binaries for each platform. This script also embeds the version number (extracted from the tag) into each binary.
81-
- Creates a release in this repo with the self-contained binaries, uses the contents of `RELEASENOTES.md` as the release description.
82-
- Moves the contents of `[RELEASENOTES.md](http://RELEASENOTES.md)` to a version specific file under the name of the created `tag` in the releasenotes folder, then empties out `RELEASENOTES.md` and commits the 2 files.
81+
- Creates a release in this repo with the self-contained binaries, uses the contents of [`RELEASENOTES.md`](/RELEASENOTES.md) as the release description.
82+
- Moves the contents of [`RELEASENOTES.md`](/RELEASENOTES.md) to a version specific file under the name of the created `tag` in the releasenotes folder, then empties out [`RELEASENOTES.md`](/RELEASENOTES.md) and commits the 2 files.
8383
8484
## Development Basics
8585

releasenotes/v1.18.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Add --target-uploads-url option to support GitHub-owned storage uploads to locations other than uploads.github.com.

src/Octoshift/Commands/CreateTeam/CreateTeamCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override CreateTeamCommandHandler BuildHandler(CreateTeamCommandArgs args
4343
var log = sp.GetRequiredService<OctoLogger>();
4444
var githubApiFactory = sp.GetRequiredService<ITargetGithubApiFactory>();
4545

46-
var githubApi = githubApiFactory.Create(args.TargetApiUrl, args.GithubPat);
46+
var githubApi = githubApiFactory.Create(args.TargetApiUrl, null, args.GithubPat);
4747

4848
return new CreateTeamCommandHandler(log, githubApi);
4949
}

src/Octoshift/Commands/DownloadLogs/DownloadLogsCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public override DownloadLogsCommandHandler BuildHandler(DownloadLogsCommandArgs
6767

6868
var log = sp.GetRequiredService<OctoLogger>();
6969
var githubApiFactory = sp.GetRequiredService<ITargetGithubApiFactory>();
70-
var githubApi = githubApiFactory.Create(args.GithubApiUrl, args.GithubPat);
70+
var githubApi = githubApiFactory.Create(args.GithubApiUrl, null, args.GithubPat);
7171
var httpDownloadServiceFactory = sp.GetRequiredService<HttpDownloadServiceFactory>();
7272
var httpDownloadService = httpDownloadServiceFactory.CreateDefaultWithRedirects();
7373
var retryPolicy = sp.GetRequiredService<RetryPolicy>();

src/Octoshift/Commands/GenerateMannequinCsv/GenerateMannequinCsvCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public override GenerateMannequinCsvCommandHandler BuildHandler(GenerateMannequi
5656

5757
var log = sp.GetRequiredService<OctoLogger>();
5858
var githubApiFactory = sp.GetRequiredService<ITargetGithubApiFactory>();
59-
var githubApi = githubApiFactory.Create(args.TargetApiUrl, args.GithubPat);
59+
var githubApi = githubApiFactory.Create(args.TargetApiUrl, null, args.GithubPat);
6060

6161
return new GenerateMannequinCsvCommandHandler(log, githubApi);
6262
}

src/Octoshift/Commands/GrantMigratorRole/GrantMigratorRoleCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public override GrantMigratorRoleCommandHandler BuildHandler(GrantMigratorRoleCo
5353
var log = sp.GetRequiredService<OctoLogger>();
5454
var githubApiFactory = sp.GetRequiredService<ITargetGithubApiFactory>();
5555
var apiUrl = args.TargetApiUrl ?? args.GhesApiUrl;
56-
var githubApi = githubApiFactory.Create(apiUrl, args.GithubPat);
56+
var githubApi = githubApiFactory.Create(apiUrl, null, args.GithubPat);
5757

5858
return new GrantMigratorRoleCommandHandler(log, githubApi);
5959
}

src/Octoshift/Commands/ReclaimMannequin/ReclaimMannequinCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public override ReclaimMannequinCommandHandler BuildHandler(ReclaimMannequinComm
8888

8989
var log = sp.GetRequiredService<OctoLogger>();
9090
var githubApiFactory = sp.GetRequiredService<ITargetGithubApiFactory>();
91-
var githubApi = githubApiFactory.Create(args.TargetApiUrl, args.GithubPat);
91+
var githubApi = githubApiFactory.Create(args.TargetApiUrl, null, args.GithubPat);
9292
var reclaimService = new ReclaimService(githubApi, log);
9393
var confirmationService = sp.GetRequiredService<ConfirmationService>();
9494

src/Octoshift/Commands/RevokeMigratorRole/RevokeMigratorRoleCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public override RevokeMigratorRoleCommandHandler BuildHandler(RevokeMigratorRole
4242
var log = sp.GetRequiredService<OctoLogger>();
4343
var githubApiFactory = sp.GetRequiredService<ITargetGithubApiFactory>();
4444
var apiUrl = args.TargetApiUrl ?? args.GhesApiUrl;
45-
var githubApi = githubApiFactory.Create(apiUrl, args.GithubPat);
45+
var githubApi = githubApiFactory.Create(apiUrl, null, args.GithubPat);
4646

4747
return new RevokeMigratorRoleCommandHandler(log, githubApi);
4848
}

src/Octoshift/Contracts/ISourceGithubApiFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ namespace OctoshiftCLI.Contracts;
44

55
public interface ISourceGithubApiFactory
66
{
7-
GithubApi Create(string apiUrl = null, string sourcePersonalAccessToken = null);
8-
GithubApi CreateClientNoSsl(string apiUrl = null, string sourcePersonalAccessToken = null);
7+
GithubApi Create(string apiUrl = null, string uploadsUrl = null, string sourcePersonalAccessToken = null);
8+
GithubApi CreateClientNoSsl(string apiUrl = null, string uploadsUrl = null, string sourcePersonalAccessToken = null);
99
}

0 commit comments

Comments
 (0)