Skip to content

Commit 1a2ad62

Browse files
committed
Merged origin/main into MichaelChirico-patch-1
2 parents 67ca3bb + cf006f0 commit 1a2ad62

14 files changed

+95
-60
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
^pkgdown$
1111
^codecov\.yml$
1212
^revdep$
13+
^LICENSE\.md$

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ representative at an online or offline event.
5959
## Enforcement
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at codeofconduct@rstudio.com.
62+
reported to the community leaders responsible for enforcement at codeofconduct@posit.co.
6363
All complaints will be reviewed and investigated promptly and fairly.
6464

6565
All community leaders are obligated to respect the privacy and security of the

.github/workflows/R-CMD-check.yaml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,30 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
config:
25-
- {os: macOS-latest, r: 'release'}
25+
- {os: macos-latest, r: 'release'}
2626

2727
- {os: windows-latest, r: 'release'}
2828
# Use 3.6 to trigger usage of RTools35
2929
- {os: windows-latest, r: '3.6'}
30+
# use 4.1 to check with rtools40's older compiler
31+
- {os: windows-latest, r: '4.1'}
3032

31-
# Use older ubuntu to maximise backward compatibility
32-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
33-
- {os: ubuntu-latest, r: 'release'}
34-
- {os: ubuntu-latest, r: 'oldrel-1'}
35-
- {os: ubuntu-latest, r: 'oldrel-2'}
36-
- {os: ubuntu-latest, r: 'oldrel-3'}
37-
- {os: ubuntu-latest, r: 'oldrel-4'}
33+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
34+
- {os: ubuntu-latest, r: 'release'}
35+
- {os: ubuntu-latest, r: 'oldrel-1'}
36+
- {os: ubuntu-latest, r: 'oldrel-2'}
37+
- {os: ubuntu-latest, r: 'oldrel-3'}
38+
- {os: ubuntu-latest, r: 'oldrel-4'}
3839

3940
env:
4041
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4142
R_KEEP_PKG_SOURCE: yes
4243

4344
steps:
44-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4546

4647
- uses: r-lib/actions/setup-pandoc@v2
4748

48-
- name: Install latest git, Windows
49-
if: runner.os == 'Windows'
50-
run: choco upgrade -y git.install
51-
52-
- name: Install latest git, macOS
53-
if: runner.os == 'macOS'
54-
run: |
55-
brew upgrade git
56-
brew tap microsoft/git
57-
brew install --cask git-credential-manager-core
58-
5949
- uses: r-lib/actions/setup-r@v2
6050
with:
6151
r-version: ${{ matrix.config.r }}

.github/workflows/pkgdown.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
2020
env:
2121
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
contents: write
2224
steps:
23-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2426

2527
- uses: r-lib/actions/setup-pandoc@v2
2628

@@ -39,7 +41,7 @@ jobs:
3941

4042
- name: Deploy to GitHub pages 🚀
4143
if: github.event_name != 'pull_request'
42-
uses: JamesIves/[email protected].4
44+
uses: JamesIves/github-pages-deploy-action@v4.4.1
4345
with:
4446
clean: false
4547
branch: gh-pages

.github/workflows/pr-commands.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818

1919
- uses: r-lib/actions/pr-fetch@v2
2020
with:
@@ -51,7 +51,7 @@ jobs:
5151
env:
5252
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5353
steps:
54-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
5555

5656
- uses: r-lib/actions/pr-fetch@v2
5757
with:

.github/workflows/test-coverage.yaml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,7 @@ jobs:
2323
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2424

2525
steps:
26-
- uses: actions/checkout@v2
27-
28-
- name: Install latest git, Windows
29-
if: runner.os == 'Windows'
30-
run: choco upgrade -y git.install
31-
32-
- name: Install latest git, macOS
33-
if: runner.os == 'macOS'
34-
run: |
35-
brew upgrade git
36-
brew tap microsoft/git
37-
brew install --cask git-credential-manager-core
26+
- uses: actions/checkout@v3
3827

3928
- uses: r-lib/actions/setup-r@v2
4029
with:
@@ -46,5 +35,24 @@ jobs:
4635
needs: coverage
4736

4837
- name: Test coverage
49-
run: covr::codecov(quiet = FALSE)
38+
run: |
39+
covr::codecov(
40+
quiet = FALSE,
41+
clean = FALSE,
42+
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
43+
)
5044
shell: Rscript {0}
45+
46+
- name: Show testthat output
47+
if: always()
48+
run: |
49+
## --------------------------------------------------------------------
50+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
51+
shell: bash
52+
53+
- name: Upload test results
54+
if: failure()
55+
uses: actions/upload-artifact@v3
56+
with:
57+
name: coverage-test-failures
58+
path: ${{ runner.temp }}/package

DESCRIPTION

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title: Query 'git' Credentials from 'R'
33
Version: 0.1.2.9000
44
Authors@R: c(
55
person("Gábor", "Csárdi", , "[email protected]", role = c("aut", "cre")),
6-
person("RStudio", role = c("cph", "fnd"))
6+
person("Posit Software, PBC", role = c("cph", "fnd"))
77
)
88
Description: Query, set, delete credentials from the 'git' credential
99
store. Manage 'GitHub' tokens and other 'git' credentials. This
@@ -12,7 +12,8 @@ Description: Query, set, delete credentials from the 'git' credential
1212
License: MIT + file LICENSE
1313
URL: https://gitcreds.r-lib.org/, https://github.com/r-lib/gitcreds
1414
BugReports: https://github.com/r-lib/gitcreds/issues
15-
Depends: R (>= 3.4)
15+
Depends:
16+
R (>= 3.4)
1617
Suggests:
1718
codetools,
1819
covr,
@@ -25,8 +26,8 @@ Suggests:
2526
VignetteBuilder:
2627
knitr
2728
Config/Needs/website: tidyverse/tidytemplate
29+
Config/testthat/edition: 3
2830
Encoding: UTF-8
2931
Roxygen: list(markdown = TRUE)
30-
RoxygenNote: 7.2.1.9000
32+
RoxygenNote: 7.3.2
3133
SystemRequirements: git
32-
Config/testthat/edition: 3

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2020
2-
COPYRIGHT HOLDER: Gábor Csárdi
1+
YEAR: 2023
2+
COPYRIGHT HOLDER: gitcreds authors

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2023 gitcreds authors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

R/aaa-doc.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
#'
5858
#' To set up password-less authentication to GitHub:
5959
#' 1. Create a personal access token (PAT). See
60-
#' https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token.
60+
#' <https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token>.
61+
#' Note that personal access tokens can expire, and the default expiration time is 30 days.
6162
#' 2. Call `gitcreds_set()` and give this token as the password.
6263
#' 3. Run `gitcreds_get(use_cache = FALSE)` to check that the new
6364
#' PAT is set up. To see the token, you can run

README.Rmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ Install the package from CRAN:
4747
install.packages("gitcreds")
4848
```
4949

50+
Install the development version from GitHub:
51+
52+
```{r eval = FALSE}
53+
pak::pak("r-lib/gitcreds")
54+
```
55+
5056
## Usage
5157

5258
gitcreds is typically used upstream, in R packages that need to

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,21 @@ coverage](https://codecov.io/gh/r-lib/gitcreds/branch/main/graph/badge.svg)](htt
1414

1515
## Features
1616

17-
- (Re)use the same credentials in command line git, R and the RStudio
18-
IDE., etc. Users can set their GitHub token once and use it
19-
everywhere.
17+
- (Re)use the same credentials in command line git, R and the RStudio
18+
IDE., etc. Users can set their GitHub token once and use it
19+
everywhere.
2020

21-
- Typically more secure than storing passwords and tokens in
22-
`.Renviron` files.
21+
- Typically more secure than storing passwords and tokens in `.Renviron`
22+
files.
2323

24-
- gitcreds has a cache that makes credential lookup very fast.
24+
- gitcreds has a cache that makes credential lookup very fast.
2525

26-
- gitcreds supports multiple users and multiple hosts, including
27-
Enterprise GitHub installations.
26+
- gitcreds supports multiple users and multiple hosts, including
27+
Enterprise GitHub installations.
2828

29-
- If git or git credential helpers are not available, e.g. typically
30-
on a Linux server, or a CI, then gitcreds can fall back to use
31-
environment variables, and it still supports multiple users and
32-
hosts.
29+
- If git or git credential helpers are not available, e.g. typically on
30+
a Linux server, or a CI, then gitcreds can fall back to use
31+
environment variables, and it still supports multiple users and hosts.
3332

3433
## Installation
3534

@@ -39,6 +38,12 @@ Install the package from CRAN:
3938
install.packages("gitcreds")
4039
```
4140

41+
Install the development version from GitHub:
42+
43+
``` r
44+
pak::pak("r-lib/gitcreds")
45+
```
46+
4247
## Usage
4348

4449
gitcreds is typically used upstream, in R packages that need to

man/gitcreds-package.Rd

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gitcreds_get.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)