-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Get organized: owner/repo = repo_spec #376
Conversation
R/create.R
Outdated
} | ||
owner <- repo[[1]] | ||
repo <- repo[[2]] | ||
## TODO: do I need to do anything re: repo --> repo_spec? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I need to do much/anything about changing repo
argument to repo_spec
? create_from_github()
is mostly for interactive use, probably has few users, repo
/repo_spec
is the first argument (so often unnamed) and partial matching works in our favour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to
repo = NULL, | ||
from = releases(owner = owner, repo = repo)[[1]], | ||
use_tidy_thanks <- function(repo_spec = github_repo_spec(), | ||
from = releases(repo_spec)[[1]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dislike using unexported functions for the defaults. But also like having a sensible default and revealing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add this as an argument to use_github_labels()
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to add repo_spec
to use_github_labels()
. I makes sense to me that it works on the active project.
I think use_tidy_thanks()
is different and pretty unique because you are likely to use it while in another project, e.g. composing a post in the tidyverse.org project.
R/create.R
Outdated
} | ||
owner <- repo[[1]] | ||
repo <- repo[[2]] | ||
## TODO: do I need to do anything re: repo --> repo_spec? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to
repo = NULL, | ||
from = releases(owner = owner, repo = repo)[[1]], | ||
use_tidy_thanks <- function(repo_spec = github_repo_spec(), | ||
from = releases(repo_spec)[[1]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add this as an argument to use_github_labels()
too?
We've decided to leave the |
Main points:
Questions:
browse_*()
family switch over torepo_spec
frompackage
? Right now, target repo is driven by GitHub info found in URL field of DESCRIPTION. But maybe it should be driven by the local remote associated with GitHub? Or try one then the other?Happy to discuss/review during 1-on-1.