From 9c4af4de418057fcc5883d700e7e94fc2b08cdd0 Mon Sep 17 00:00:00 2001 From: Melissa Van Bussel Date: Thu, 15 Aug 2024 13:06:41 -0400 Subject: [PATCH 1/2] Increase roxygen version from 7.2.3 to 7.3.2 --- DESCRIPTION | 2 +- man/gitcreds-package.Rd | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 1f3dc66..71a03bb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -29,5 +29,5 @@ Config/Needs/website: tidyverse/tidytemplate Config/testthat/edition: 3 Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.2 SystemRequirements: git diff --git a/man/gitcreds-package.Rd b/man/gitcreds-package.Rd index 2178088..3d00162 100644 --- a/man/gitcreds-package.Rd +++ b/man/gitcreds-package.Rd @@ -3,7 +3,6 @@ \docType{package} \name{gitcreds-package} \alias{gitcreds-package} -\alias{_PACKAGE} \title{gitcreds: Query 'git' Credentials from 'R'} \description{ Query, set, delete credentials from the 'git' credential store. Manage 'GitHub' tokens and other 'git' credentials. This package is to be used by other packages that need to authenticate to 'GitHub' and/or other 'git' repositories. From 67c05f7066b125864e140bfcffeebef314ddc7d2 Mon Sep 17 00:00:00 2001 From: Melissa Van Bussel Date: Thu, 15 Aug 2024 13:11:04 -0400 Subject: [PATCH 2/2] Add note that GitHub PATs expire, with a default expiration of 30 days. Fixes #36. --- R/aaa-doc.R | 3 ++- man/gitcreds_get.Rd | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/R/aaa-doc.R b/R/aaa-doc.R index 260ed8d..3ea29fd 100644 --- a/R/aaa-doc.R +++ b/R/aaa-doc.R @@ -57,7 +57,8 @@ #' #' To set up password-less authentication to GitHub: #' 1. Create a personal access token (PAT). See -#' https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token. +#' . +#' Note that personal access tokens can expire, and the default expiration time is 30 days. #' 2. Call `gitcreds_set()` and give this token as the password. #' 3. Run `gitcreds_get(use_cache = FALSE)` to check that the new #' PAT is set up. To see the token, you can run diff --git a/man/gitcreds_get.Rd b/man/gitcreds_get.Rd index b8450fb..ab3ce53 100644 --- a/man/gitcreds_get.Rd +++ b/man/gitcreds_get.Rd @@ -105,7 +105,8 @@ If you need to avoid installing git, see 'Environment variables' below. To set up password-less authentication to GitHub: \enumerate{ \item Create a personal access token (PAT). See -https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token. +\url{https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token}. +Note that personal access tokens can expire, and the default expiration time is 30 days. \item Call \code{gitcreds_set()} and give this token as the password. \item Run \code{gitcreds_get(use_cache = FALSE)} to check that the new PAT is set up. To see the token, you can run