Skip to content

Commit 2c0eabe

Browse files
konardclaude
andcommitted
Rename AdminAuthorIssueTriggerDecorator to AdminAuthorPermissionDecorator
Updated class name and all references in the codebase to use the more concise and appropriate name AdminAuthorPermissionDecorator instead of AdminAuthorIssueTriggerDecorator. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 37985fe commit 2c0eabe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

csharp/Platform.Bot/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static async Task<int> Main(string[] args)
9595
var dbContext = new FileStorage(databaseFilePath?.FullName ?? new TemporaryFile().Filename);
9696
Console.WriteLine($"Bot has been started. {Environment.NewLine}Press CTRL+C to close");
9797
var githubStorage = new GitHubStorage(githubUserName, githubApiToken, githubApplicationName);
98-
var issueTracker = new IssueTracker(githubStorage, new HelloWorldTrigger(githubStorage, dbContext, fileSetName), new OrganizationLastMonthActivityTrigger(githubStorage), new LastCommitActivityTrigger(githubStorage), new AdminAuthorIssueTriggerDecorator(new ProtectDefaultBranchTrigger(githubStorage), githubStorage), new AdminAuthorIssueTriggerDecorator(new ChangeOrganizationRepositoriesDefaultBranchTrigger(githubStorage, dbContext), githubStorage), new AdminAuthorIssueTriggerDecorator(new ChangeOrganizationPullRequestsBaseBranchTrigger(githubStorage, dbContext), githubStorage));
98+
var issueTracker = new IssueTracker(githubStorage, new HelloWorldTrigger(githubStorage, dbContext, fileSetName), new OrganizationLastMonthActivityTrigger(githubStorage), new LastCommitActivityTrigger(githubStorage), new AdminAuthorPermissionDecorator(new ProtectDefaultBranchTrigger(githubStorage), githubStorage), new AdminAuthorPermissionDecorator(new ChangeOrganizationRepositoriesDefaultBranchTrigger(githubStorage, dbContext), githubStorage), new AdminAuthorPermissionDecorator(new ChangeOrganizationPullRequestsBaseBranchTrigger(githubStorage, dbContext), githubStorage));
9999
var pullRequenstTracker = new PullRequestTracker(githubStorage, new MergeDependabotBumpsTrigger(githubStorage));
100100
var timestampTracker = new DateTimeTracker(githubStorage, new CreateAndSaveOrganizationRepositoriesMigrationTrigger(githubStorage, dbContext, Path.Combine(Directory.GetCurrentDirectory(), "/github-migrations")));
101101
var cancellation = new CancellationTokenSource();

csharp/Platform.Bot/Triggers/Decorators/AdminAuthorTriggerDecorator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
namespace Platform.Bot.Triggers.Decorators;
77

8-
public class AdminAuthorIssueTriggerDecorator : ITrigger<Issue>
8+
public class AdminAuthorPermissionDecorator : ITrigger<Issue>
99
{
1010
public readonly ITrigger<Issue> Trigger;
1111
public readonly GitHubStorage GithubStorage;
12-
public AdminAuthorIssueTriggerDecorator(ITrigger<Issue> trigger, GitHubStorage githubStorage)
12+
public AdminAuthorPermissionDecorator(ITrigger<Issue> trigger, GitHubStorage githubStorage)
1313
{
1414
Trigger = trigger;
1515
GithubStorage = githubStorage;

0 commit comments

Comments
 (0)