home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 605110015

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason performed_via_github_app reactions draft state_reason
605110015 MDU6SXNzdWU2MDUxMTAwMTU= 731 Option to automatically configure based on directory layout 9599 closed 0     9 2020-04-22T22:17:47Z 2020-04-27T16:32:44Z 2020-04-27T16:30:26Z OWNER  

My Datasette projects increasingly take on the following structure:

  • metadata.json with the metadata
  • One or more something.db database files
  • A templates/ folder with some custom templates
  • A plugins/ folder with some custom plugins

Then I have to run Datasette like this:

datasette *.db -m metadata.json --template-dir=templates --plugins-dir=plugins

It would be really interesting if Datasette had a special mode where you could point it at a directory with the above layout and it would automatically configure itself based on the contents.

Maybe even allow datasette serve to detect if it was passed a single argument that's a directory, not a file, and kick in to "directory layout configuration mode" in that case:

datasette .
107914493 issue    
{
    "url": "https://api.github.com/repos/simonw/datasette/issues/731/reactions",
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 9 rows from issue in issue_comments
Powered by Datasette · Queries took 0.993ms · About: github-to-sqlite