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

Save closed/closed_by references #9

Open
martinthomson opened this issue Mar 3, 2021 · 1 comment
Open

Save closed/closed_by references #9

martinthomson opened this issue Mar 3, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@martinthomson
Copy link
Collaborator

It would be nice to record linkages between issues, particularly the relationship between a pull request and the issue that it closes.

The graphql interface makes it a little hard to extract these, so this is non-trivial. They appear as a CrossReferencedEvent in the timelineItems field of issues and pull requests with a willCloseTarget attribute. The event list can be filtered based on the type, so it's not likely to be a huge addition to the load. Note that events should be immutable, so updating this can use skip or after fairly reliably.

Originally martinthomson/i-d-template#227

@MikeBishop
Copy link
Owner

Mostly noting for myself, we want to capture timelineItems of type CROSS_REFERENCED_EVENT since the last successful update, keeping a list of those where willCloseTarget is true and the source/target is the PR/issue in question.

Probably worth collapsing this to a list of PRs which would have closed a given issue or PR, plus a list of issues/PRs closed by each PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants