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

feat: support for linked issues from other repositories #595

Merged
merged 2 commits into from
Dec 5, 2022

Conversation

maelle
Copy link
Member

@maelle maelle commented Dec 5, 2022

Fix #593

@maelle maelle marked this pull request as ready for review December 5, 2022 13:51
@maelle maelle requested a review from krlmlr December 5, 2022 13:53
Copy link
Contributor

@krlmlr krlmlr left a comment

Choose a reason for hiding this comment

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

Thanks, great! I still need to understand how the JSON files are updated.

Comment on lines +337 to +343
repo <- if (issue_repo == slug) {
""
} else {
issue_repo
}

paste0(repo, "#", x$node$number)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
repo <- if (issue_repo == slug) {
""
} else {
issue_repo
}
paste0(repo, "#", x$node$number)
paste0(if (issue_repo != slug) issue_repo, "#", x$node$number)

c(unlist(pr_data$issue_numbers), pr_number)
)
)
pr_numbers <- toString(c(unlist(pr_data$issue_numbers), paste0("#", pr_number)))
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point, this could also be some {cli} function that takes care of the Oxford comma.

@krlmlr krlmlr merged commit 112c016 into main Dec 5, 2022
@krlmlr krlmlr deleted the issue-other-repo branch December 5, 2022 23:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add support for closing issues from other repositories
2 participants