Skip to content

Commit

Permalink
add docs for github_user_repos and github_org_repos
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdevivo committed Aug 4, 2021
1 parent 0b0c3c2 commit 53c9bb1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,50 @@ SELECT github_stargazer_count('askgitdev', 'askgit');
SELECT github_stargazer_count('askgitdev/askgit'); -- both are equivalent
```

##### `github_user_repos` and `github_org_repos`

Table-valued function that returns all the repositories belonging to a user or an organization.

| Column | Type |
|-----------------------------|------|
| created_at | TEXT |
| database_id | INT |
| default_branch_ref_name | TEXT |
| default_branch_ref_prefix | TEXT |
| description | TEXT |
| disk_usage | INT |
| fork_count | INT |
| homepage_url | TEXT |
| is_archived | INT |
| is_disabled | INT |
| is_fork | INT |
| is_mirror | INT |
| is_private | INT |
| issue_count | INT |
| latest_release_author | TEXT |
| latest_release_created_at | TEXT |
| latest_release_name | TEXT |
| latest_release_published_at | TEXT |
| license_key | TEXT |
| license_name | TEXT |
| name | TEXT |
| open_graph_image_url | TEXT |
| primary_language | TEXT |
| pull_request_count | INT |
| pushed_at | TEXT |
| release_count | INT |
| stargazer_count | TEXT |
| updated_at | TEXT |
| watcher_count | INT |

Params:
1. `login` - the `login` of a GitHub user or organization

```sql
SELECT * FROM github_user_repos('patrickdevivo')
SELECT * FROM github_org_repos('askgitdev')
```

##### `github_repo_issues`

Table-valued-function that returns all the issues of a GitHub repository.
Expand Down

0 comments on commit 53c9bb1

Please sign in to comment.