Skip to content

Commit f856542

Browse files
Fix temp repo creation link
1 parent 6d502c5 commit f856542

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Good question!
3333

3434
The GitHub API does not provide direct access to default labels, and so they are obtained by creating (and immediately deleting) a temporary private repository.
3535

36-
You can see the code that performs these actions [here](https://github.com/ecoAPM/GitHubLabelSync/blob/main/src/Synchronizer.cs#L49-L53).
36+
You can see the code that performs these actions [here](https://github.com/ecoAPM/GitHubLabelSync/blob/main/src/Synchronizer.cs#L65-L70).
3737

3838
## Usage
3939

src/Synchronizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public async Task<IReadOnlyList<Label>> GetAccountLabels(Account account)
6262
{
6363
_setStatus($"Finding labels for {account.Login}...");
6464

65-
var repoName = $"label-sync-{_random.Next()}";
65+
var repoName = $"temp-label-sync-{_random.Next()}";
6666
var repo = account.Type == AccountType.Organization
6767
? await _gitHub.CreateTempRepoForOrganization(account, repoName)
6868
: await _gitHub.CreateTempRepoForUser(account, repoName);

test/SynchronizerTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public async Task GettingAccountLabelsCreatesTempRepoForOrganization()
160160
await sync.GetAccountLabels(account);
161161

162162
//assert
163-
Assert.StartsWith("label-sync-", tempRepoName);
163+
Assert.StartsWith("temp-label-sync-", tempRepoName);
164164
}
165165

166166
[Fact]
@@ -178,7 +178,7 @@ public async Task GettingAccountLabelsCreatesTempRepoForUser()
178178
await sync.GetAccountLabels(account);
179179

180180
//assert
181-
Assert.StartsWith("label-sync-", tempRepoName);
181+
Assert.StartsWith("temp-label-sync-", tempRepoName);
182182
}
183183

184184
[Fact]
@@ -196,7 +196,7 @@ public async Task GettingAccountLabelsDeletesTempRepoForOrganization()
196196
await sync.GetAccountLabels(account);
197197

198198
//assert
199-
Assert.StartsWith("label-sync-", tempRepoName);
199+
Assert.StartsWith("temp-label-sync-", tempRepoName);
200200
}
201201

202202
[Fact]
@@ -214,7 +214,7 @@ public async Task GettingAccountLabelsDeletesTempRepoForUser()
214214
await sync.GetAccountLabels(account);
215215

216216
//assert
217-
Assert.StartsWith("label-sync-", tempRepoName);
217+
Assert.StartsWith("temp-label-sync-", tempRepoName);
218218
}
219219

220220
[Fact]

0 commit comments

Comments
 (0)