Skip to content

Conversation

github-actions[bot]
Copy link

Closes #272

Applied changes based on Issue #272.

I’ve centralized the “eyes → thumbs-up” swap to use the existing removeEyeReaction and addThumbUpReaction helpers, and updated those helpers to also handle issuesAssigned events.

Summary of changes:

  • In createPullRequest, replaced the in-lined remove/insert reaction block with calls to removeEyeReaction(octokit, repo, event) and addThumbUpReaction(octokit, repo, event).
  • Expanded both removeEyeReaction and addThumbUpReaction so that they treat event.action === 'assigned' the same as opened (previously they only handled opened for issues).
  • Retained the surrounding try/catch in createPullRequest to log any unexpected errors.

Let me know if you’d like to tweak the logging messages or behavior further!

@YiweiShen YiweiShen merged commit 18b9866 into main Jun 25, 2025
@YiweiShen YiweiShen deleted the codez-chore-272-refactor-github-replace-duplicated-thumb-up-reaction-code branch June 25, 2025 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor code with the functions removeEyeReaction and addThumbUpReaction in src/github.ts.

1 participant