-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix check of token scopes and give more informative feedback when the…
…y are not sufficient.
- Loading branch information
1 parent
18a2574
commit e2767b6
Showing
6 changed files
with
74 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# to TEST create tokens with insufficient scopes | ||
|
||
create_gitstats() |> | ||
set_github_host( | ||
orgs = "r-world-devs", | ||
token = Sys.getenv("GITHUB_PAT_INSUFFICIENT") | ||
) |> | ||
get_repos() | ||
|
||
create_gitstats() |> | ||
set_gitlab_host( | ||
orgs = "mbtests" | ||
) |> | ||
get_repos() | ||
|
||
create_gitstats() |> | ||
set_gitlab_host( | ||
orgs = "mbtests", | ||
token = Sys.getenv("GITLAB_PAT_PUBLIC_INSUFFICIENT") | ||
) |> | ||
get_repos() | ||
|
||
create_gitstats() |> | ||
set_github_host( | ||
orgs = "r-world-devs" | ||
) |