From 37985fe35ca2ebc424b4187768a2b0dc32eb7bd5 Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 21:56:45 +0300 Subject: [PATCH 1/3] Initial commit with task details for issue #151 Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/linksplatform/Bot/issues/151 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 00000000..90783b17 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/linksplatform/Bot/issues/151 +Your prepared branch: issue-151-0297f820 +Your prepared working directory: /tmp/gh-issue-solver-1757703401214 + +Proceed. \ No newline at end of file From 2c0eabe68a46cbed5c9cdf5e6f3883a9e8f02cb5 Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 21:59:55 +0300 Subject: [PATCH 2/3] Rename AdminAuthorIssueTriggerDecorator to AdminAuthorPermissionDecorator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- csharp/Platform.Bot/Program.cs | 2 +- .../Triggers/Decorators/AdminAuthorTriggerDecorator.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csharp/Platform.Bot/Program.cs b/csharp/Platform.Bot/Program.cs index 521a6b95..20d4e371 100644 --- a/csharp/Platform.Bot/Program.cs +++ b/csharp/Platform.Bot/Program.cs @@ -95,7 +95,7 @@ private static async Task Main(string[] args) var dbContext = new FileStorage(databaseFilePath?.FullName ?? new TemporaryFile().Filename); Console.WriteLine($"Bot has been started. {Environment.NewLine}Press CTRL+C to close"); var githubStorage = new GitHubStorage(githubUserName, githubApiToken, githubApplicationName); - 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)); + 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)); var pullRequenstTracker = new PullRequestTracker(githubStorage, new MergeDependabotBumpsTrigger(githubStorage)); var timestampTracker = new DateTimeTracker(githubStorage, new CreateAndSaveOrganizationRepositoriesMigrationTrigger(githubStorage, dbContext, Path.Combine(Directory.GetCurrentDirectory(), "/github-migrations"))); var cancellation = new CancellationTokenSource(); diff --git a/csharp/Platform.Bot/Triggers/Decorators/AdminAuthorTriggerDecorator.cs b/csharp/Platform.Bot/Triggers/Decorators/AdminAuthorTriggerDecorator.cs index 70b73ed3..a29b6fc0 100644 --- a/csharp/Platform.Bot/Triggers/Decorators/AdminAuthorTriggerDecorator.cs +++ b/csharp/Platform.Bot/Triggers/Decorators/AdminAuthorTriggerDecorator.cs @@ -5,11 +5,11 @@ namespace Platform.Bot.Triggers.Decorators; -public class AdminAuthorIssueTriggerDecorator : ITrigger +public class AdminAuthorPermissionDecorator : ITrigger { public readonly ITrigger Trigger; public readonly GitHubStorage GithubStorage; - public AdminAuthorIssueTriggerDecorator(ITrigger trigger, GitHubStorage githubStorage) + public AdminAuthorPermissionDecorator(ITrigger trigger, GitHubStorage githubStorage) { Trigger = trigger; GithubStorage = githubStorage; From c378816a771d7ef3dd44e57f505cb02fd7912c4f Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 22:00:30 +0300 Subject: [PATCH 3/3] Remove CLAUDE.md - Claude command completed --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 90783b17..00000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/linksplatform/Bot/issues/151 -Your prepared branch: issue-151-0297f820 -Your prepared working directory: /tmp/gh-issue-solver-1757703401214 - -Proceed. \ No newline at end of file