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

Remove some git /github related defunct functions #1980

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Conversation

olivroy
Copy link
Contributor

@olivroy olivroy commented Apr 11, 2024

As they clutter the autocompletion?

I did gh code search and the functions don't seem widely used as people have made the switch over the last 3.5 years. I opened a few PRs and issues as FYI to avoid ugly messages in advance.

I also added a few redirection rules in pkgdown config to be on the safe side!

https://github.com/search?q=saved%3A%22usethis+deprecate%22+&type=code&saved_searches=%5B%7B%22name%22%3A%22usethis+deprecate%22%2C%22query%22%3A%22browse_github_pat++NOT+is%3Aarchived+NOT+is%3Afork%22%7D%5D&expanded_query=browse_github_pat++NOT+is%3Aarchived+NOT+is%3Afork+

@jennybc
Copy link
Member

jennybc commented Apr 12, 2024

I opened a few PRs and issues as FYI to avoid ugly messages in advance.

Can you mention this PR in those PRs and issues, so they get linked here and I can see exactly what you're talking about?

@olivroy olivroy changed the title Remove some defunct functions Remove some git /github related defunct functions May 15, 2024
@jennybc
Copy link
Member

jennybc commented Jul 24, 2024

This is not in scope for the next release, as it looks pretty fiddly, for a modest payoff.

In order to sort this out, it would be helpful to make it clear which of the PRs are to packages on CRAN/Bioconductor (which we cannot break, at least not without sufficient warning) vs. other stuff (blog posts, talks, etc., where the issue/PR is just courtesy).

@olivroy
Copy link
Contributor Author

olivroy commented Jul 24, 2024

The PRs are all courtesy. No breakage will happen. As you can see, the PRs and issues have mostly been ignored (namely becsuse they were on old unmaintained projects) The only reason why I added redirects in _pkgdown.yml was as courtesy, but they are not required.

@jennybc
Copy link
Member

jennybc commented Jul 24, 2024

Thanks!

@jennybc jennybc merged commit 1f73587 into r-lib:main Jul 24, 2024
12 checks passed
@jennybc
Copy link
Member

jennybc commented Jul 28, 2024

The PRs are all courtesy. No breakage will happen.

It turns out github_token() is used by a package on CRAN:

https://github.com/ropensci/circle/blob/f8a4fbf6f792c3f462df1749b90cca9c31214e3a/R/use-circle-deploy.R#L39

@olivroy
Copy link
Contributor Author

olivroy commented Jul 29, 2024

I didn't catch this occurrence in my search.. but use_circle_deploy() is broken (and has been for a while now)

@jennybc
Copy link
Member

jennybc commented Jul 29, 2024

I don't think this matters much in practice, because I suspect that the use of this package (circle) is minimal / non-existent, given how much folks have pivoted from Circle CI to GitHub Actions. In any case, usethis made it onto CRAN even with this mild breakage, since github_token() has been hard deprecated since December 2020. If this was actually bothering folks, it would have been updated by now.

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.

2 participants