Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add table github_search_commit. Closes #101 #108

Merged
merged 2 commits into from
Dec 6, 2021
Merged

Conversation

c0d3r-arnab
Copy link
Contributor

Example query results

Results
> select
  sha,
  query,
  html_url,
  score
from
  github_search_commit
where
  query = 'Add table github_my_star org:turbot';
+------------------------------------------+-------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| sha                                      | query                               | html_url                                                                                          | score |
+------------------------------------------+-------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| 15c07531167143bf7e5c3629307f50047ec416f5 | Add table github_my_star org:turbot | https://github.com/turbot/steampipe-plugin-github/commit/15c07531167143bf7e5c3629307f50047ec416f5 | 1     |
+------------------------------------------+-------------------------------------+---------------------------------------------------------------------------------------------------+-------+
> select
  sha,
  query,
  html_url,
  score
from
  github_search_commit
where
  query = 'Add table github_my_star user:turbot';
+------------------------------------------+--------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| sha                                      | query                                | html_url                                                                                          | score |
+------------------------------------------+--------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| 15c07531167143bf7e5c3629307f50047ec416f5 | Add table github_my_star user:turbot | https://github.com/turbot/steampipe-plugin-github/commit/15c07531167143bf7e5c3629307f50047ec416f5 | 1     |
+------------------------------------------+--------------------------------------+---------------------------------------------------------------------------------------------------+-------+
> select
  sha,
  query,
  html_url,
  score
from
  github_search_commit
where
  query = 'Add table github_my_star repo:turbot/steampipe-plugin-github';
+------------------------------------------+--------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| sha                                      | query                                                        | html_url                                                                                          | score |
+------------------------------------------+--------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| 15c07531167143bf7e5c3629307f50047ec416f5 | Add table github_my_star repo:turbot/steampipe-plugin-github | https://github.com/turbot/steampipe-plugin-github/commit/15c07531167143bf7e5c3629307f50047ec416f5 | 1     |
+------------------------------------------+--------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
> select
  sha,
  query,
  html_url,
  score
from
  github_search_commit
where
  query = 'author:VincentHardouin repo:turbot/steampipe-plugin-github';
+------------------------------------------+------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| sha                                      | query                                                      | html_url                                                                                          | score |
+------------------------------------------+------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| 15c07531167143bf7e5c3629307f50047ec416f5 | author:VincentHardouin repo:turbot/steampipe-plugin-github | https://github.com/turbot/steampipe-plugin-github/commit/15c07531167143bf7e5c3629307f50047ec416f5 | 1     |
+------------------------------------------+------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
> select
  sha,
  query,
  html_url,
  score
from
  github_search_commit
where
  query = 'committer-date:2021-11-16..2021-11-23 repo:turbot/steampipe-plugin-github';
+------------------------------------------+---------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| sha                                      | query                                                                     | html_url                                                                                          | score |
+------------------------------------------+---------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| 130d76f25347e9c2753e134ac6da48f569fdc274 | committer-date:2021-11-16..2021-11-23 repo:turbot/steampipe-plugin-github | https://github.com/turbot/steampipe-plugin-github/commit/130d76f25347e9c2753e134ac6da48f569fdc274 | 1     |
| d53c3b8d9d2c1262f987478b2fcef452977d6ed1 | committer-date:2021-11-16..2021-11-23 repo:turbot/steampipe-plugin-github | https://github.com/turbot/steampipe-plugin-github/commit/d53c3b8d9d2c1262f987478b2fcef452977d6ed1 | 1     |
| b0566eafb30e0595651c14a4c499b16e1c443767 | committer-date:2021-11-16..2021-11-23 repo:turbot/steampipe-plugin-github | https://github.com/turbot/steampipe-plugin-github/commit/b0566eafb30e0595651c14a4c499b16e1c443767 | 1     |
+------------------------------------------+---------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
> select
  sha,
  query,
  html_url,
  score
from
  github_search_commit
where
  query = 'hash:b0566eafb30e0595651c14a4c499b16e1c443767 repo:turbot/steampipe-plugin-github';
+------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| sha                                      | query                                                                             | html_url                                                                                          | score |
+------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| b0566eafb30e0595651c14a4c499b16e1c443767 | hash:b0566eafb30e0595651c14a4c499b16e1c443767 repo:turbot/steampipe-plugin-github | https://github.com/turbot/steampipe-plugin-github/commit/b0566eafb30e0595651c14a4c499b16e1c443767 | 1     |
+------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
> select
  sha,
  query,
  html_url,
  score
from
  github_search_commit
where
  query = 'parent:b0566ea';
+------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------+-------+
| sha                                      | query          | html_url                                                                                                                    | score |
+------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------+-------+
| 760b64359439ddc70d3c2b56fe744a1c57e6cb34 | parent:b0566ea | https://github.com/zc256/IS_601_FINAL/commit/760b64359439ddc70d3c2b56fe744a1c57e6cb34                                       | 1     |
| cd0711162364fab8933fb2651717e40f2b2e95f7 | parent:b0566ea | https://github.com/JohnLCurran/drei/commit/cd0711162364fab8933fb2651717e40f2b2e95f7                                         | 1     |
| 2531fb6a8b3b781394541114d9ce7c0662f70113 | parent:b0566ea | https://github.com/etdel651/ECEN350/commit/2531fb6a8b3b781394541114d9ce7c0662f70113                                         | 1     |
| 8677583bac69c0b863f7dbc51afec414b4f365b0 | parent:b0566ea | https://github.com/zc256/IS_601_FINAL/commit/8677583bac69c0b863f7dbc51afec414b4f365b0                                       | 1     |
| 9890c6defbe500736e3a3d7404002e837bb4a8da | parent:b0566ea | https://github.com/p02101997h/Test/commit/9890c6defbe500736e3a3d7404002e837bb4a8da                                          | 1     |
| 5435e04af5448b4acacfc5f2ebe36669fe620aa0 | parent:b0566ea | https://github.com/zc256/IS_601_FINAL/commit/5435e04af5448b4acacfc5f2ebe36669fe620aa0                                       | 1     |
| ccac03f3805077103431148f5e20410df1360b38 | parent:b0566ea | https://github.com/borazuwarah/ImageComparator/commit/ccac03f3805077103431148f5e20410df1360b38                              | 1     |
| dea3026aca7bae569d0cce69b4708273a953bb57 | parent:b0566ea | https://github.com/suzumiya2014/autoInfo/commit/dea3026aca7bae569d0cce69b4708273a953bb57                                    | 1     |
| b8637117312f0d791a55f8032a5b1827a48a103d | parent:b0566ea | https://github.com/Rofiqul-Islam/Virtual-Library/commit/b8637117312f0d791a55f8032a5b1827a48a103d                            | 1     |
| 87d79d6e09e0b91c72c864492604918f610b4904 | parent:b0566ea | https://github.com/dlangille/bacula/commit/87d79d6e09e0b91c72c864492604918f610b4904                                         | 1     |
| 2531fb6a8b3b781394541114d9ce7c0662f70113 | parent:b0566ea | https://github.com/etdel651/Joe/commit/2531fb6a8b3b781394541114d9ce7c0662f70113                                             | 1     |
| dddd4cae76e99463dbc89602e219c213f4133771 | parent:b0566ea | https://github.com/Make-School-Courses/FEW-2.3-Single-Page-Web-Applications/commit/dddd4cae76e99463dbc89602e219c213f4133771 | 1     |
| 34b008f063c9a9f8c660b7478a4ce8be7de172a1 | parent:b0566ea | https://github.com/calvinsettachatgul/html_css_college_san_mateo_fall_2016/commit/34b008f063c9a9f8c660b7478a4ce8be7de172a1  | 1     |
| 87d79d6e09e0b91c72c864492604918f610b4904 | parent:b0566ea | https://github.com/sjmudd/bacula/commit/87d79d6e09e0b91c72c864492604918f610b4904                                            | 1     |
| 4f9be6674dfd277837eade4895c03f6c37cfdcc5 | parent:b0566ea | https://github.com/Die-Gang/bubbles/commit/4f9be6674dfd277837eade4895c03f6c37cfdcc5                                         | 1     |
+------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------+-------+
> select
  sha,
  query,
  html_url,
  score
from
  github_search_commit
where
  query = 'merge:true repo:turbot/steampipe-plugin-azure';
+------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------+-------+
| sha                                      | query                                         | html_url                                                                                         | score |
+------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------+-------+
| d1decf14fde89fb580fd4894372041638a5c32b1 | merge:true repo:turbot/steampipe-plugin-azure | https://github.com/turbot/steampipe-plugin-azure/commit/d1decf14fde89fb580fd4894372041638a5c32b1 | 1     |
+------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------+-------+
> select
  sha,
  repository -> 'name' as repo_name,
  repository ->> 'id' as repo_id,
  repository ->> 'html_url' as repo_html_url,
  jsonb_pretty(repository -> 'owner') as repo_owner
from
  github_search_commit
where
  query = 'hash:b0566eafb30e0595651c14a4c499b16e1c443767 repo:turbot/steampipe-plugin-github';
+------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| sha                                      | query                                                                             | html_url                                                                                          | score |
+------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+
| b0566eafb30e0595651c14a4c499b16e1c443767 | hash:b0566eafb30e0595651c14a4c499b16e1c443767 repo:turbot/steampipe-plugin-github | https://github.com/turbot/steampipe-plugin-github/commit/b0566eafb30e0595651c14a4c499b16e1c443767 | 1     |
+------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-------+

@c0d3r-arnab c0d3r-arnab self-assigned this Nov 23, 2021
@c0d3r-arnab c0d3r-arnab linked an issue Nov 23, 2021 that may be closed by this pull request
@c0d3r-arnab c0d3r-arnab changed the title Add tables github_search_commits. Closes #101 Add tables github_search_commit. Closes #101 Nov 24, 2021
@c0d3r-arnab c0d3r-arnab changed the title Add tables github_search_commit. Closes #101 Add table github_search_commit. Closes #101 Nov 24, 2021
Copy link
Contributor

@ParthaI ParthaI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bigdatasourav bigdatasourav merged commit 2794f51 into main Dec 6, 2021
@bigdatasourav bigdatasourav deleted the issue-101 branch December 6, 2021 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add table github_search_commit.
3 participants