Skip to content

Commit

Permalink
Update main.go (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
judell authored Jan 31, 2024
1 parent 61f7cb8 commit 47f6bd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions all/github-add-or-remove-topic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import (
var query = `
with names as (
select
replace(full_name, 'judell/', '') as name -- replace with your ownerLogin
replace(name_with_owner, 'judell/', '') as name -- replace with your ownerLogin
from
github_my_repository
where
full_name ~ 'judell/(elmcity|facet)' -- replace with your ownerLogin and a pattern
name_with_owner ~ 'judell/(elmcity|facet)' -- replace with your ownerLogin and a pattern
order by
full_name desc
name_with_owner desc
)
select
array_to_string(array_agg(name), ',') as names
Expand Down Expand Up @@ -65,7 +65,7 @@ func querySpcForRepos() string {
Names string `json:"names"`
} `json:"items"`
}
uri := fmt.Sprintf("https://cloud.steampipe.io/api/latest/org/acme/workspace/jon/query?sql=%s", url.PathEscape(query)) //-- use your handle and workspace
uri := fmt.Sprintf("https://pipes.turbot.com/api/latest/org/acme/workspace/jon/query?sql=%s", url.PathEscape(query)) //-- use your handle and workspace
req, err := http.NewRequest("GET", uri, nil)
CheckError(err)
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", os.Getenv("STEAMPIPE_CLOUD_TOKEN")))
Expand Down

0 comments on commit 47f6bd9

Please sign in to comment.