Skip to content

Conversation

setchy
Copy link
Member

@setchy setchy commented May 1, 2024

Pull Request notifications often have a subject.latest_comment_url the same as their subject.url, which is when no PR comments have been made.

This enhancement avoids an unnecessary API call under these conditions.

@setchy setchy added the enhancement New feature or enhancement to existing functionality label May 1, 2024
@setchy setchy added this to the Release 5.5.0 milestone May 1, 2024
@setchy setchy changed the title feat: avoid fetching PR comments if urls match feat: avoid fetching PR comments when no comments May 2, 2024
@setchy setchy changed the title feat: avoid fetching PR comments when no comments feat: skip fetching PR comments when none exist May 2, 2024
@afonsojramos
Copy link
Member

This is at least, a fun optimisation 😅

@afonsojramos afonsojramos merged commit e19d8df into main May 2, 2024
@afonsojramos afonsojramos deleted the feature/skip-fetching-PR-comments-if-same branch May 2, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement to existing functionality
Development

Successfully merging this pull request may close these issues.

2 participants