You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've really enjoyed spinning the wheels on this package, it seems very useful. I ran into trouble when first trying it. It appears that when creating a PAT, you need to check some of the boxes for correct authorization. I think this only requires a tiny change to the article ( https://emilyriederer.github.io/projmgr/articles/github-pat.html)
I apologize if the reprexes are too long, I was trying to be thorough. This is with a PAT with no scope boxes checked.
library(projmgr)
cfr_plan_txt<-"- title: 2009 is a problem description: > The 2009 files continue to display weird results issue: - title: Investigate issue body: Not sure about path assignees: [willwheels] labels: [long-term]- title: Redo network description: > Recreate network with tidygraph; do all data steps in initial dataframe issue: - title: Remove igraph steps body: nuke igraph - title: Move data steps body: Move all weight and size calculations to data frame creation - title: Visualizations body: recreate network visualizations"cfr_plan<- read_plan(cfr_plan_txt)
cfr_repo_ref<- create_repo_ref("willwheels", "CFR")
#> Requests will authenticate with GITHUB_PAT
check_credentials(cfr_repo_ref)
#> -- With provided credentials -- #> + Login: willwheels#> + Type: User#> -- In the CFR repo -- #> + Admin: FALSE#> + Push: FALSE#> + Pull: FALSEcfr_plan#> Plan: #> 1. 2009 is a problem (1 issues) #> 2. Redo network (3 issues)cfr_repo_ref#> + Repository Owner: willwheels#> + Repository: CFR#> + From URL: https://api.github.com/#> + Authenticating with: GITHUB_PAT
post_plan(cfr_repo_ref, cfr_plan)
#> Error in gh::gh(endpoint = paste0(ref$base_url, ref$repo_path, api_endpoint), : GitHub API error (404): 404 Not Found#> Not Found
I've really enjoyed spinning the wheels on this package, it seems very useful. I ran into trouble when first trying it. It appears that when creating a PAT, you need to check some of the boxes for correct authorization. I think this only requires a tiny change to the article (
https://emilyriederer.github.io/projmgr/articles/github-pat.html)
I apologize if the reprexes are too long, I was trying to be thorough. This is with a PAT with no scope boxes checked.
Created on 2020-05-20 by the reprex package (v0.3.0)
Then, created a new PAT, checking the boxes for "repo" and "workflow" and it worked:
Created on 2020-05-20 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: