Skip to content

Commit

Permalink
Merge branch 'dogsheep:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
khimaros authored Oct 3, 2022
2 parents 412ae1d + 0e45b72 commit bd9f4d3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: "3.10"
- uses: actions/cache@v1
name: Configure pip caching
with:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
with:
path: github.db
- name: Set up Cloud Run
uses: google-github-actions/setup-gcloud@master
uses: google-github-actions/setup-gcloud@v0
with:
version: '275.0.0'
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
Expand All @@ -108,11 +108,11 @@ jobs:
-m demo-metadata.json \
--service github-to-sqlite \
--branch=main \
--install=py-gfm \
--install=datasette-search-all>=0.3 \
--install=datasette-render-markdown>=1.1.2 \
--install=datasette-pretty-json \
--install=datasette-pretty-json>=0.2.2 \
--install=datasette-json-html \
--install=datasette-vega \
--install=datasette-render-images \
--install=datasette-graphql
--install=datasette-graphql \
--install=datasette-atom
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ The command accepts one or more repositories.

Add `-v` for verbose output.

Example: [dependents table](https://github-to-sqlite.dogsheep.net/github/dependents)
Example: [dependents table](https://github-to-sqlite.dogsheep.net/github/dependents?_sort_desc=first_seen_utc)

## Fetching emojis

Expand Down
20 changes: 4 additions & 16 deletions demo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@
"span": [
"class"
]
},
"extensions": [
"mdx_gfm:GithubFlavoredMarkdownExtension"
]
}
}
}
},
Expand Down Expand Up @@ -89,10 +86,7 @@
"span": [
"class"
]
},
"extensions": [
"mdx_gfm:GithubFlavoredMarkdownExtension"
]
}
}
}
},
Expand Down Expand Up @@ -138,10 +132,7 @@
"span": [
"class"
]
},
"extensions": [
"mdx_gfm:GithubFlavoredMarkdownExtension"
]
}
}
}
},
Expand Down Expand Up @@ -180,10 +171,7 @@
"span": [
"class"
]
},
"extensions": [
"mdx_gfm:GithubFlavoredMarkdownExtension"
]
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion github_to_sqlite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def emojis(db_path, auth, fetch):
help="Accept header to send, e.g. application/vnd.github.VERSION.html",
)
def get(url, auth, paginate, nl, accept):
"Save repos owened by the specified (or authenticated) username or organization"
"Make an authenticated HTTP GET against the specified URL"
token = load_token(auth)
first = True
should_output_closing_brace = not nl
Expand Down
5 changes: 5 additions & 0 deletions github_to_sqlite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ def save_pull_requests(db, pull_requests, repo):


def save_user(db, user):
# Under some conditions, GitHub caches removed repositories with
# stars and ends up leaving dangling `None` user references.
if user is None:
return None

# Remove all url fields except avatar_url and html_url
to_save = {
key: value
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup
import os

VERSION = "2.8.2"
VERSION = "2.8.3"


def get_long_description():
Expand Down

0 comments on commit bd9f4d3

Please sign in to comment.