Skip to content

Commit c7d59b8

Browse files
authoredJan 7, 2025
chore: change rstudio/connectapi to posit-dev/connectapi (#358)
1 parent 974afb9 commit c7d59b8

File tree

9 files changed

+52
-52
lines changed

9 files changed

+52
-52
lines changed
 

‎.github/CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ This has some additional requirements.
1515

1616
- You need a valid Connect license key or file. Put the contents of the license key, or the path to the license file, in the `RSC_LICENSE` environment variable.
1717
- You need Docker.
18-
- If you're running on an ARM (non-Intel) Mac, `export DOCKER_DEFAULT_PLATFORM=linux/amd64`
18+
- If you're running on an ARM (non-Intel) Mac, `export DOCKER_DEFAULT_PLATFORM=linux/amd64`
1919
- Run `connectapi:::build_test_env()` to set up the Connect processes in docker
20-
- By default, this will run against a contemporary version of Connect. To test against an older version, set the environment variable `CONNECT_VERSION` to something else and then run `build_test_env()`.
20+
- By default, this will run against a contemporary version of Connect. To test against an older version, set the environment variable `CONNECT_VERSION` to something else and then run `build_test_env()`.
2121
- Set `CONNECTAPI_INTEGRATED=true` in the environment to enable running the integration tests (they're skipped by default).
2222
- Run them with `source("tests/test-integrated.R")`
2323

@@ -35,7 +35,7 @@ If you’ve found a bug, please file an issue that illustrates the bug with a mi
3535

3636
### Pull request process
3737

38-
* Fork the package and clone onto your computer. If you haven't done this before, we recommend using `usethis::create_from_github("rstudio/connectapi", fork = TRUE)`.
38+
* Fork the package and clone onto your computer. If you haven't done this before, we recommend using `usethis::create_from_github("posit-dev/connectapi", fork = TRUE)`.
3939

4040
* Install all development dependencies with `devtools::install_dev_deps()`, and then make sure the package passes R CMD check by running `devtools::check()`.
4141
If R CMD check doesn't pass cleanly, it's a good idea to ask for help before continuing.

‎.github/SUPPORT.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Armed with your reprex, the next step is to figure out [where to ask](https://ww
1616

1717
* If it's a question: start with [forum.posit.co](https://forum.posit.co/), and/or StackOverflow. There are more people there to answer questions.
1818

19-
* If it's a bug: you're in the right place, [file an issue](https://github.com/rstudio/connectapi/issues/new).
19+
* If it's a bug: you're in the right place, [file an issue](https://github.com/posit-dev/connectapi/issues/new).
2020

2121
* If you're not sure: let the community help you figure it out!
2222
If your problem _is_ a bug or a feature request, you can easily return here and report it.
2323

24-
Before opening a new issue, be sure to [search issues and pull requests](https://github.com/rstudio/connectapi/issues) to make sure the bug hasn't been reported and/or already fixed in the development version.
24+
Before opening a new issue, be sure to [search issues and pull requests](https://github.com/posit-dev/connectapi/issues) to make sure the bug hasn't been reported and/or already fixed in the development version.
2525
By default, the search will be pre-populated with `is:issue is:open`.
2626
You can [edit the qualifiers](https://help.github.com/articles/searching-issues-and-pull-requests/) (e.g. `is:pr`, `is:closed`) as needed.
2727
For example, you'd simply remove `is:open` to search _all_ issues in the repo, open or closed.

‎DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Description: Provides a helpful 'R6' class and methods for interacting with
2424
and version, but the latest documentation is also hosted publicly at
2525
<https://docs.posit.co/connect/api/>.
2626
License: MIT + file LICENSE
27-
URL: https://pkgs.rstudio.com/connectapi/, https://github.com/rstudio/connectapi
28-
BugReports: https://github.com/rstudio/connectapi/issues
27+
URL: https://posit-dev.github.io/connectapi/, https://github.com/posit-dev/connectapi
28+
BugReports: https://github.com/posit-dev/connectapi/issues
2929
Imports:
3030
bit64,
3131
fs,

‎NEWS.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
- `Content$tag_delete()` removes the tag from the target content item rather
125125
than removing the tag entirely. (#194)
126126
- `audit_r_versions()` returns a bar chart instead of a histogram (#179)
127-
- Fix issue with `NULL` or `length 1` job outputs ([#193](https://github.com/rstudio/connectapi/issues/193))
127+
- Fix issue with `NULL` or `length 1` job outputs (#193)
128128
- Timestamp parsing now correctly preserves time components (#259)
129129

130130
# connectapi 0.1.3.1
@@ -140,21 +140,21 @@
140140
# connectapi 0.1.2
141141

142142
- Update docs to illustrate customizing HTTP requests
143-
([#168](https://github.com/rstudio/connectapi/pull/168))
143+
(#168)
144144
- Fix issue with HTML documentation to retain on CRAN
145-
([#164](https://github.com/rstudio/connectapi/pull/164))
145+
(#164)
146146
- Fix typo in `min_data_version` parameter for usage data functions
147-
([#166](https://github.com/rstudio/connectapi/pull/166))
147+
(#166)
148148
- Bump Connect tested version to 2022.09.0
149-
([#170](https://github.com/rstudio/connectapi/pull/170))
149+
(#170)
150150

151151
# connectapi 0.1.1.1
152152

153153
### BREAKING
154154

155155
- BREAKING: the following functions now require RStudio Connect 1.8.6 or later
156156
(because they are no longer experimental, as of that release).
157-
([#128](https://github.com/rstudio/connectapi/pulls/12))
157+
(#128)
158158
- `set_vanity_url()`, `get_vanity_url()`, `swap_vanity_url()`
159159
- `get_tags()`, `get_tag_data()`, `get_content_tags()`, `create_tag()`,
160160
`create_tag_tree()`, `delete_tag()`, `get_content_tags()`,
@@ -165,16 +165,16 @@
165165
- BREAKING: `Connect$new()` now takes a `server` argument (instead of `host`)
166166
- The same is true of the `connect()` function, although we warn about
167167
argument deprecation in that case.
168-
([#125](https://github.com/rstudio/connectapi/pulls/125))
168+
(#125)
169169
- BREAKING: `set_environment_new()` and `set_environment_remove()` no longer
170170
take a `.version` argument, and output data structure is a bit different (a
171171
list of names). They now use the public API, which changes the interface a bit.
172172
Also, intricacies of how to set / remove environment variables are changed (i.e.
173173
setting `VAR=NA` will remove `VAR`).
174-
([#141](https://github.com/rstudio/connectapi/pull/141))
174+
(#141)
175175
- BREAKING: `get_vanity_url()` and `set_vanity_url()` are now no longer
176176
experimental functions.
177-
([#113](https://github.com/rstudio/connectapi/pulls/113)) However:
177+
(#113) However:
178178
- `get_vanity_url()` now returns a character string representing the vanity
179179
url in use (or NULL if not defined)
180180
- `set_vanity_url()` still returns a `Vanity` R6 object, but
@@ -184,15 +184,15 @@
184184
- BREAKING: Several `content_*` and other APIs have moved from experimental to
185185
"v1" variants. This means they have stabilized, but with several subtle breaking
186186
changes that could impact your scripts.
187-
([#115](https://github.com/rstudio/connectapi/pulls/115))
187+
(#115)
188188
- i.e. `bundle_id` has become `id` in some response data. In others, `url` has become `content_url`.
189189
- The R6 method `content$get_bundles()` no longer takes a `page_number`
190190
argument, and the `get_bundles(limit)` argument is now deprecated
191-
([#129](https://github.com/rstudio/connectapi/pulls/129))
191+
(#129)
192192
- `Connect$download_bundle` is now deprecated in favor of
193193
`Content$bundle_download()`, and `delete_bundle()` now takes a `Content`
194194
item instead of `Connect`.
195-
([#153](https://github.com/rstudio/connectapi/pull/153))
195+
(#153)
196196
- BREAKING: `acl_*()` functions are deprecated in favor of
197197
`get_content_permissions()`, `content_add_user()`, and friends.
198198
- BREAKING: `Connect$PUT()`, `Connect$POST()` and `Connect$PATCH()` endpoints
@@ -203,37 +203,37 @@
203203
### Other Changes
204204

205205
- `users_create_remote()` gains an `exact` argument to simplify complex cases
206-
([#135](https://github.com/rstudio/connectapi/issues/135)). Long term, we should
206+
(#135). Long term, we should
207207
solicit feedback on whether this function attempts to do too much.
208208
- Add helpers for common content modification actions: `content_update()`,
209209
`content_update_access_type()` and `content_update_owner()`
210210
- Fix an issue with relative paths in `bundle_dir()`
211211
([`@slodge`](https://github.com/slodge))
212-
([#118](https://github.com/rstudio/connectapi/issues/118),
213-
[#121](https://github.com/rstudio/connectapi/issues/121))
212+
(#118,
213+
#121)
214214
- Add `overwrite=` parameter to `download_bundle()`
215215
- Add HTTP request customization options, and related documentation
216-
([#101](https://github.com/rstudio/connectapi/pull/101))
217-
- Add git deployment ([#112](https://github.com/rstudio/connectapi/issues/112))
216+
(#101)
217+
- Add git deployment (#112)
218218
- Switch `Task` class to `ContentTask`
219219
- R6 does not support multiple inheritance, so we keep the `Task` interface up-to-date on
220220
`ContentTask` and `VariantTask` manually
221221
- Improve several print methods
222-
([#18](https://github.com/rstudio/connectapi/issues/18),
223-
[#19](https://github.com/rstudio/connectapi/issues/19))
222+
(#18,
223+
#19)
224224
- Protect against bad bundles
225-
([#13](https://github.com/rstudio/connectapi/issues/13))
226-
- Error if an empty API key is defined ([#16](https://github.com/rstudio/connectapi/issues/16))
225+
(#13)
226+
- Error if an empty API key is defined (#16)
227227
- Add a few `content_list_*` helpers
228-
([#130](https://github.com/rstudio/connectapi/pulls/130)):
228+
(#130):
229229
- `content_list_with_permissions` returns a `content_list` with a "permission"
230230
column that includes who has access
231231
- `content_list_by_tag` allows fetching just a `content_list` for a particular tag
232232
- `content_list_guid_has_access` filters a "content list with permission" by
233233
whether a user or group GUID has access
234234
- Add a `user_guid_from_username()` function to convert `session$user` or other
235235
usernames to a user GUID
236-
([#130](https://github.com/rstudio/connectapi/pulls/130))
236+
(#130)
237237

238238
# connectapi 0.1.0.9018
239239

‎README.Rmd

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ knitr::opts_chunk$set(
1616
<!-- badges: start -->
1717
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#maturing)
1818
[![CRAN status](https://www.r-pkg.org/badges/version/connectapi)](https://cran.r-project.org/package=connectapi)
19-
[![Codecov test coverage](https://codecov.io/gh/rstudio/connectapi/branch/main/graph/badge.svg)](https://app.codecov.io/gh/rstudio/connectapi?branch=main)
20-
[![R build status](https://github.com/rstudio/connectapi/workflows/R-CMD-check/badge.svg)](https://github.com/rstudio/connectapi/actions)
19+
[![Codecov test coverage](https://codecov.io/gh/posit-dev/connectapi/branch/main/graph/badge.svg)](https://app.codecov.io/gh/posit-dev/connectapi?branch=main)
20+
[![R build status](https://github.com/posit-dev/connectapi/workflows/R-CMD-check/badge.svg)](https://github.com/posit-dev/connectapi/actions)
2121
<!-- badges: end -->
2222

2323
# connectapi <img src='man/figures/logo.svg' align="right" height="139" />
@@ -38,7 +38,7 @@ install.packages("connectapi")
3838
To install the development version:
3939

4040
```r
41-
remotes::install_github('rstudio/connectapi')
41+
remotes::install_github('posit-dev/connectapi')
4242
```
4343

4444
## Client
@@ -204,5 +204,5 @@ Please open an issue or PR! We would love to have your contribution!
204204
## Code of Conduct
205205

206206
Please note that the connectapi project is released with a [Contributor Code of
207-
Conduct](https://pkgs.rstudio.com/connectapi/CODE_OF_CONDUCT.html). By
207+
Conduct](https://posit-dev.github.io/connectapi/CODE_OF_CONDUCT.html). By
208208
contributing to this project, you agree to abide by its terms.

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lif
88
[![CRAN
99
status](https://www.r-pkg.org/badges/version/connectapi)](https://cran.r-project.org/package=connectapi)
1010
[![Codecov test
11-
coverage](https://codecov.io/gh/rstudio/connectapi/branch/main/graph/badge.svg)](https://app.codecov.io/gh/rstudio/connectapi?branch=main)
11+
coverage](https://codecov.io/gh/posit-dev/connectapi/branch/main/graph/badge.svg)](https://app.codecov.io/gh/posit-dev/connectapi?branch=main)
1212
[![R build
13-
status](https://github.com/rstudio/connectapi/workflows/R-CMD-check/badge.svg)](https://github.com/rstudio/connectapi/actions)
13+
status](https://github.com/posit-dev/connectapi/workflows/R-CMD-check/badge.svg)](https://github.com/posit-dev/connectapi/actions)
1414
<!-- badges: end -->
1515

1616
# connectapi <img src='man/figures/logo.svg' align="right" height="139" />
@@ -32,7 +32,7 @@ install.packages("connectapi")
3232
To install the development version:
3333

3434
``` r
35-
remotes::install_github('rstudio/connectapi')
35+
remotes::install_github('posit-dev/connectapi')
3636
```
3737

3838
## Client
@@ -209,5 +209,5 @@ Please open an issue or PR! We would love to have your contribution!
209209

210210
Please note that the connectapi project is released with a [Contributor
211211
Code of
212-
Conduct](https://pkgs.rstudio.com/connectapi/CODE_OF_CONDUCT.html). By
212+
Conduct](https://posit-dev.github.io/connectapi/CODE_OF_CONDUCT.html). By
213213
contributing to this project, you agree to abide by its terms.

‎_pkgdown.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
url: https://pkgs.rstudio.com/connectapi/
1+
url: https://posit-dev.github.io/connectapi/
22

33
template:
44
bootstrap: 5

‎tests/integrated/test-git.R

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test_that("git deployment works", {
77
scoped_experimental_silence()
88
cont0 <- deploy_repo(
99
test_conn_1,
10-
"https://github.com/rstudio/connectapi",
10+
"https://github.com/posit-dev/connectapi",
1111
"main",
1212
"tests/testthat/examples/static"
1313
)
@@ -17,7 +17,7 @@ test_that("git deployment works", {
1717
new_name <- uuid::UUIDgenerate()
1818
cont1 <- deploy_repo(
1919
test_conn_1,
20-
"https://github.com/rstudio/connectapi",
20+
"https://github.com/posit-dev/connectapi",
2121
"main",
2222
"tests/testthat/examples/static",
2323
new_name,
@@ -48,7 +48,7 @@ test_that("repo_check_branches works", {
4848
"not found"
4949
)
5050

51-
br <- repo_check_branches(test_conn_1, "https://github.com/rstudio/connectapi")
51+
br <- repo_check_branches(test_conn_1, "https://github.com/posit-dev/connectapi")
5252
expect_true("main" %in% br)
5353
})
5454

@@ -59,7 +59,7 @@ test_that("repo_check_branches_ref works", {
5959
"not found"
6060
)
6161

62-
br <- repo_check_branches_ref(test_conn_1, "https://github.com/rstudio/connectapi")
62+
br <- repo_check_branches_ref(test_conn_1, "https://github.com/posit-dev/connectapi")
6363
expect_type(br, "character")
6464
expect_true("main" %in% names(br))
6565
expect_false("main" %in% br)
@@ -73,7 +73,7 @@ test_that("repo_check_manifest_dirs works", {
7373
"not found"
7474
)
7575

76-
drs <- repo_check_manifest_dirs(test_conn_1, "https://github.com/rstudio/connectapi", "main")
76+
drs <- repo_check_manifest_dirs(test_conn_1, "https://github.com/posit-dev/connectapi", "main")
7777
expect_true("tests/testthat/examples/static" %in% drs)
7878
})
7979

@@ -83,7 +83,7 @@ test_that("deploy_repo_enable works", {
8383
new_name <- uuid::UUIDgenerate()
8484
cont1 <- deploy_repo(
8585
test_conn_1,
86-
"https://github.com/rstudio/connectapi",
86+
"https://github.com/posit-dev/connectapi",
8787
"main",
8888
"tests/testthat/examples/static",
8989
new_name,
@@ -109,7 +109,7 @@ test_that("deploy_repo_update works", {
109109
new_name <- uuid::UUIDgenerate()
110110
cont1 <- deploy_repo(
111111
test_conn_1,
112-
"https://github.com/rstudio/connectapi",
112+
"https://github.com/posit-dev/connectapi",
113113
"main",
114114
"tests/testthat/examples/static",
115115
new_name,
@@ -124,7 +124,7 @@ test_that("deploy_repo_update works", {
124124
wrong_branch <- uuid::UUIDgenerate()
125125
cont2 <- deploy_repo(
126126
test_conn_1,
127-
"https://github.com/rstudio/connectapi",
127+
"https://github.com/posit-dev/connectapi",
128128
"master-not-a-real-branch",
129129
"tests/testthat/examples/static",
130130
wrong_branch,

‎tests/testthat/test-git.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ without_internet({
88
test_that("Query params to repo_account", {
99
con <- Connect$new(server = "https://connect.example", api_key = "fake")
1010
expect_GET(
11-
con$repo_account("https://github.com/rstudio/connectapi"),
11+
con$repo_account("https://github.com/posit-dev/connectapi"),
1212
repo_path("account?url=https%3A%2F%2Fgithub.com")
1313
)
1414
expect_error(
@@ -20,16 +20,16 @@ without_internet({
2020
test_that("Query params to repo_branches", {
2121
con <- Connect$new(server = "https://connect.example", api_key = "fake")
2222
expect_GET(
23-
con$repo_branches("https://github.com/rstudio/connectapi"),
24-
repo_path("branches?url=https%3A%2F%2Fgithub.com%2Frstudio%2Fconnectapi")
23+
con$repo_branches("https://github.com/posit-dev/connectapi"),
24+
repo_path("branches?url=https%3A%2F%2Fgithub.com%2Fposit-dev%2Fconnectapi")
2525
)
2626
})
2727

2828
test_that("Query params to repo_manifest_dirs", {
2929
con <- Connect$new(server = "https://connect.example", api_key = "fake")
3030
expect_GET(
31-
con$repo_manifest_dirs("https://github.com/rstudio/connectapi", "main"),
32-
repo_path("manifest-dirs?url=https%3A%2F%2Fgithub.com%2Frstudio%2Fconnectapi&branch=main")
31+
con$repo_manifest_dirs("https://github.com/posit-dev/connectapi", "main"),
32+
repo_path("manifest-dirs?url=https%3A%2F%2Fgithub.com%2Fposit-dev%2Fconnectapi&branch=main")
3333
)
3434
})
3535
})

0 commit comments

Comments
 (0)