Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub PR states to conversation list #40

Merged
merged 8 commits into from
Apr 23, 2024

Conversation

rjwebb
Copy link
Contributor

@rjwebb rjwebb commented Apr 23, 2024

This PR makes the FIP conversation icon in the conversations list reflect the status of the corresponding PR. It does this by looking at the github_pr_updated_at, github_pr_closed_at and github_pr_merged_at fields. It also adds a new github_pr_is_draft which says whether the PR is a draft.

One change I had to make to the github sync code is that now we query for all PRs since we want to be able to know whether a PR is closed or merged. I think we can probably make this more efficient (e.g there is a n+1 query when getting the email address of users that have submitted PRs) but it seems to work.

Screenshot 2024-04-23 at 1 37 10 PM

@raykyri
Copy link
Member

raykyri commented Apr 23, 2024

It was raised as a possibility that we could start syncing past/closed PRs too, so probably not a bad thing to have that in the sync job.

@raykyri raykyri merged commit f52cef0 into main Apr 23, 2024
1 check failed
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.

None yet

2 participants