Skip to content

fix: Streamlined the process to avoid loops#4

Merged
misaka00251 merged 1 commit into
openRuyi-Project:masterfrom
SteveZMTstudios:rolllock-fix
Jun 14, 2026
Merged

fix: Streamlined the process to avoid loops#4
misaka00251 merged 1 commit into
openRuyi-Project:masterfrom
SteveZMTstudios:rolllock-fix

Conversation

@SteveZMTstudios

Copy link
Copy Markdown
Contributor
  1. Modified GitHubWebhookProcessor to only execute blocking logic for tagged/untagged events currently labeled "Workflow: Blocked". This fixes the infinite loop caused by "Workflow: In Review" continuously adding and removing itself.
  2. When a blocked pull request synchronizes a new commit, only "Commits: Updated" is added; "Workflow: Ready For Review" is no longer automatically added.
  3. Now "Commits: Updated" is only removed after the pull request author submits a comment or review.

Added the following additional test units with the help of AI ​​agent:

  1. Added IGitHubService.cs to allow testing the processor using a virtual GitHub service.
  2. Added the xUnit test project GitHubWebhookProcessorTests.cs to cover scenarios such as infinite loops, synchronous blocking, and author/non-author cleanup of "Commits: Updated".
  3. Explicitly specify the release command to publish abaci-bot.csproj to avoid solution-level publishes involving test projects and also eliminate NETSDK 1194 warnings.

Co-authored-by: GPT-5.5

These tests are passed:

@misaka00251 misaka00251 added Type: Enhancement Issues requesting improvements to existing behavior (non-breaking). AI Assistance AI is used to help with portions of code, tests, or documentation. labels Jun 13, 2026

@misaka00251 misaka00251 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think abaci_bot.Tests should also be named as abaci-bot.Tests.

Comment thread Services/GitHubWebhookProcessor.cs Outdated
Comment thread abaci-bot.sln Outdated
Comment thread Services/GitHubWebhookProcessor.cs Outdated
1. Modified GitHubWebhookProcessor to only execute blocking logic for tagged/untagged events currently labeled "Workflow: Blocked". This fixes the infinite loop caused by "Workflow: In Review" continuously adding and removing itself.
2. When a blocked pull request synchronizes a new commit, only "Commits: Updated" is added; "Workflow: Ready For Review" is no longer automatically added.
3. Now "Commits: Updated" is only removed after the pull request author submits a comment or review.

1. Added IGitHubService.cs to allow testing the processor using a virtual GitHub service.
2. Added the xUnit test project GitHubWebhookProcessorTests.cs to cover scenarios such as infinite loops, synchronous blocking, and author/non-author cleanup of "Commits: Updated".
3. Explicitly specify the `release` command to publish `abaci-bot.csproj` to avoid solution-level publishes involving test projects and also eliminate NETSDK 1194 warnings.
4. Instantiate tag class.

Co-authored-by: GPT-5.5
@misaka00251
misaka00251 merged commit 5b97d1b into openRuyi-Project:master Jun 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assistance AI is used to help with portions of code, tests, or documentation. Type: Enhancement Issues requesting improvements to existing behavior (non-breaking).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants