Skip to content

Commit

Permalink
Merge pull request #227 from stackql/dev
Browse files Browse the repository at this point in the history
updated `github`
  • Loading branch information
jeffreyaven authored Apr 30, 2024
2 parents ecdaf59 + 758e428 commit 6dfd8a9
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 32 deletions.
63 changes: 38 additions & 25 deletions providers/src/github/v00.00.00000/services/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30558,7 +30558,8 @@ components:
select:
- $ref: '#/components/x-stackQL-resources/org_secrets/methods/get_org_secret'
- $ref: '#/components/x-stackQL-resources/org_secrets/methods/list_org_secrets'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/org_secrets/methods/create_or_update_org_secret'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/org_secrets/methods/delete_org_secret'
Expand Down Expand Up @@ -31091,70 +31092,82 @@ components:
insert: []
update: []
delete: []
secrets:
id: github.actions.secrets
name: secrets
title: Secrets
environment_secrets:
id: github.actions.environment_secrets
name: environment_secrets
title: Environment Secrets
methods:
list_repo_secrets:
list_environment_secrets:
operation:
$ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets/get'
$ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets/get'
response:
mediaType: application/json
openAPIDocKey: '200'
get_repo_secret:
get_environment_secret:
operation:
$ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/get'
$ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/get'
response:
mediaType: application/json
openAPIDocKey: '200'
create_or_update_repo_secret:
create_or_update_environment_secret:
operation:
$ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/put'
$ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/put'
response:
mediaType: application/json
openAPIDocKey: '200'
delete_repo_secret:
delete_environment_secret:
operation:
$ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/delete'
$ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/delete'
response:
mediaType: application/json
openAPIDocKey: '200'
list_environment_secrets:
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/environment_secrets/methods/get_environment_secret'
- $ref: '#/components/x-stackQL-resources/environment_secrets/methods/list_environment_secrets'
insert:
- $ref: '#/components/x-stackQL-resources/environment_secrets/methods/create_or_update_environment_secret'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/environment_secrets/methods/delete_environment_secret'
secrets:
id: github.actions.secrets
name: secrets
title: Secrets
methods:
list_repo_secrets:
operation:
$ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets/get'
$ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets/get'
response:
mediaType: application/json
openAPIDocKey: '200'
get_environment_secret:
get_repo_secret:
operation:
$ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/get'
$ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/get'
response:
mediaType: application/json
openAPIDocKey: '200'
create_or_update_environment_secret:
create_or_update_repo_secret:
operation:
$ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/put'
$ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/put'
response:
mediaType: application/json
openAPIDocKey: '200'
delete_environment_secret:
delete_repo_secret:
operation:
$ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/delete'
$ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/delete'
response:
mediaType: application/json
openAPIDocKey: '200'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/secrets/methods/get_repo_secret'
- $ref: '#/components/x-stackQL-resources/secrets/methods/get_environment_secret'
- $ref: '#/components/x-stackQL-resources/secrets/methods/list_repo_secrets'
- $ref: '#/components/x-stackQL-resources/secrets/methods/list_environment_secrets'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/secrets/methods/create_or_update_repo_secret'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/secrets/methods/delete_repo_secret'
- $ref: '#/components/x-stackQL-resources/secrets/methods/delete_environment_secret'
variables:
id: github.actions.variables
name: variables
Expand Down
83 changes: 83 additions & 0 deletions providers/src/github/v00.00.00000/services/activity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29329,6 +29329,84 @@ components:
insert: []
update: []
delete: []
repo_stargazers_extended:
id: github.activity.repo_stargazers_extended
name: repo_stargazers_extended
title: Repo Stargazers extened response
methods:
list_stargazers_for_repo:
operation:
$ref: '#/paths/~1repos~1{owner}~1{repo}~1stargazers/get'
response:
mediaType: application/vnd.github.star+json
openAPIDocKey: '200'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/repo_stargazers_extended/methods/list_stargazers_for_repo'
insert: []
update: []
delete: []
repo_stargazers_with_timestamps:
name: repo_stargazers_with_timestamps
id: github.activity.repo_stargazers_with_timestamps
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
owner,
repo,
JSON_EXTRACT(user, '$.login') as login,
JSON_EXTRACT(user, '$.id') as id,
JSON_EXTRACT(user, '$.node_id') as node_id,
JSON_EXTRACT(user, '$.type') as type,
JSON_EXTRACT(user, '$.url') as url,
JSON_EXTRACT(user, '$.avatar_url') as avatar_url,
JSON_EXTRACT(user, '$.events_url') as events_url,
JSON_EXTRACT(user, '$.followers_url') as followers_url,
JSON_EXTRACT(user, '$.following_url') as following_url,
JSON_EXTRACT(user, '$.gists_url') as gists_url,
JSON_EXTRACT(user, '$.gravatar_id') as gravatar_id,
JSON_EXTRACT(user, '$.html_url') as html_url,
JSON_EXTRACT(user, '$.organizations_url') as organizations_url,
JSON_EXTRACT(user, '$.received_events_url') as received_events_url,
JSON_EXTRACT(user, '$.repos_url') as repos_url,
JSON_EXTRACT(user, '$.site_admin') as site_admin,
JSON_EXTRACT(user, '$.starred_url') as starred_url,
JSON_EXTRACT(user, '$.subscriptions_url') as subscriptions_url,
starred_at
FROM
github.activity.repo_stargazers_extended
WHERE owner = 'stackql' and repo = 'stackql'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
owner,
repo,
json_extract_path_text(user, 'login') as login,
json_extract_path_text(user, 'id') as id,
json_extract_path_text(user, 'node_id') as node_id,
json_extract_path_text(user, 'type') as type,
json_extract_path_text(user, 'url') as url,
json_extract_path_text(user, 'avatar_url') as avatar_url,
json_extract_path_text(user, 'events_url') as events_url,
json_extract_path_text(user, 'followers_url') as followers_url,
json_extract_path_text(user, 'following_url') as following_url,
json_extract_path_text(user, 'gists_url') as gists_url,
json_extract_path_text(user, 'gravatar_id') as gravatar_id,
json_extract_path_text(user, 'html_url') as html_url,
json_extract_path_text(user, 'organizations_url') as organizations_url,
json_extract_path_text(user, 'received_events_url') as received_events_url,
json_extract_path_text(user, 'repos_url') as repos_url,
json_extract_path_text(user, 'site_admin') as site_admin,
json_extract_path_text(user, 'starred_url') as starred_url,
json_extract_path_text(user, 'subscriptions_url') as subscriptions_url,
starred_at
FROM
github.activity.repo_stargazers_extended
WHERE owner = 'stackql' and repo = 'stackql'
repo_watchers:
id: github.activity.repo_watchers
name: repo_watchers
Expand Down Expand Up @@ -30063,6 +30141,11 @@ paths:
$ref: '#/components/examples/simple-user-items-default-response'
alternative-response-with-star-creation-timestamps:
$ref: '#/components/examples/stargazer-items-alternative-response-with-star-creation-timestamps'
application/vnd.github.star+json:
schema:
type: array
items:
$ref: '#/components/schemas/stargazer'
headers:
Link:
$ref: '#/components/headers/link'
Expand Down
9 changes: 6 additions & 3 deletions providers/src/github/v00.00.00000/services/codespaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29662,7 +29662,8 @@ components:
select:
- $ref: '#/components/x-stackQL-resources/organization_secrets/methods/get_org_secret'
- $ref: '#/components/x-stackQL-resources/organization_secrets/methods/list_org_secrets'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/organization_secrets/methods/create_or_update_org_secret'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/organization_secrets/methods/delete_org_secret'
Expand Down Expand Up @@ -29882,7 +29883,8 @@ components:
select:
- $ref: '#/components/x-stackQL-resources/repository_secrets/methods/get_repo_secret'
- $ref: '#/components/x-stackQL-resources/repository_secrets/methods/list_repo_secrets'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/repository_secrets/methods/create_or_update_repo_secret'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/repository_secrets/methods/delete_repo_secret'
Expand Down Expand Up @@ -29919,7 +29921,8 @@ components:
select:
- $ref: '#/components/x-stackQL-resources/secrets/methods/get_secret_for_authenticated_user'
- $ref: '#/components/x-stackQL-resources/secrets/methods/list_secrets_for_authenticated_user'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/secrets/methods/create_or_update_secret_for_authenticated_user'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/secrets/methods/delete_secret_for_authenticated_user'
Expand Down
6 changes: 4 additions & 2 deletions providers/src/github/v00.00.00000/services/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28314,7 +28314,8 @@ components:
select:
- $ref: '#/components/x-stackQL-resources/org_secrets/methods/get_org_secret'
- $ref: '#/components/x-stackQL-resources/org_secrets/methods/list_org_secrets'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/org_secrets/methods/create_or_update_org_secret'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/org_secrets/methods/delete_org_secret'
Expand Down Expand Up @@ -28441,7 +28442,8 @@ components:
select:
- $ref: '#/components/x-stackQL-resources/secrets/methods/get_repo_secret'
- $ref: '#/components/x-stackQL-resources/secrets/methods/list_repo_secrets'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/secrets/methods/create_or_update_repo_secret'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/secrets/methods/delete_repo_secret'
Expand Down
6 changes: 4 additions & 2 deletions providers/src/github/v00.00.00000/services/repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34864,7 +34864,8 @@ components:
select:
- $ref: '#/components/x-stackQL-resources/contents/methods/get_readme_in_directory'
- $ref: '#/components/x-stackQL-resources/contents/methods/get_readme'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/contents/methods/create_or_update_file_contents'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/contents/methods/delete_file'
Expand Down Expand Up @@ -34987,7 +34988,8 @@ components:
select:
- $ref: '#/components/x-stackQL-resources/environments/methods/get_environment'
- $ref: '#/components/x-stackQL-resources/environments/methods/get_all_environments'
insert: []
insert:
- $ref: '#/components/x-stackQL-resources/environments/methods/create_or_update_environment'
update: []
delete:
- $ref: '#/components/x-stackQL-resources/environments/methods/delete_an_environment'
Expand Down

0 comments on commit 6dfd8a9

Please sign in to comment.