Skip to content

Commit

Permalink
updated github notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyaven committed Oct 27, 2023
1 parent b0c2882 commit 9c2af7c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"STACKQL_GITHUB_PASSWORD": "${secrets:STACKQL_GITHUB_PASSWORD}",
"STACKQL_GITHUB_USERNAME": "${secrets:STACKQL_GITHUB_USERNAME}"
},
"hostRequirements": {
"cpus": 16
},
"customizations": {
"vscode": {
"extensions": [
Expand Down
44 changes: 44 additions & 0 deletions notebooks/github.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,50 @@
"WHERE owner = '$owner' AND repo = '$repo'\n",
"AND s.login IS NULL"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Org Followers who Arent Stargazers"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%%stackql\n",
"SELECT f.login FROM \n",
"github.users.followers f\n",
"LEFT OUTER JOIN github.activity.repo_stargazers s\n",
"ON f.login = s.login\n",
"WHERE s.owner = '$owner' AND s.repo = '$repo' AND f.username = '$org'\n",
"AND s.login IS NULL"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Repo Watchers who Arent Stargazers"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%%stackql\n",
"SELECT w.login FROM \n",
"github.activity.repo_watchers w\n",
"LEFT OUTER JOIN github.activity.repo_stargazers s\n",
"ON w.login = s.login\n",
"WHERE owner = '$owner' AND repo = '$repo'\n",
"AND s.login IS NULL"
]
}
],
"metadata": {
Expand Down

0 comments on commit 9c2af7c

Please sign in to comment.