Experimental GitHub bot

This commit is contained in:
Luke Street
2025-04-18 17:07:56 -06:00
parent 488d507194
commit 805ebaf3a5
38 changed files with 2631 additions and 961 deletions
@@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "\n UPDATE projects\n SET workflow_id = ?\n WHERE id = ?\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 2
},
"nullable": []
},
"hash": "0ba3585fd6ddf3c941d59b360fe177083607758c56bd1d8279c2bdb1590ae3d6"
}
@@ -0,0 +1,68 @@
{
"db_name": "SQLite",
"query": "\n SELECT frogress_slug,\n frogress_version,\n frogress_category,\n frogress_measure,\n project_id,\n version,\n category,\n category_name,\n measure\n FROM frogress_mappings\n ORDER BY frogress_slug, frogress_version, frogress_category\n ",
"describe": {
"columns": [
{
"name": "frogress_slug",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "frogress_version",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "frogress_category",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "frogress_measure",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "project_id",
"ordinal": 4,
"type_info": "Integer"
},
{
"name": "version",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "category",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "category_name",
"ordinal": 7,
"type_info": "Text"
},
{
"name": "measure",
"ordinal": 8,
"type_info": "Text"
}
],
"parameters": {
"Right": 0
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
"hash": "0ca422ccf34a2f1a8d15f5f620821c1a65f7678ea1929b61885dde31bc4b6f24"
}
@@ -0,0 +1,38 @@
{
"db_name": "SQLite",
"query": "\n SELECT git_commit, git_commit_message, timestamp, version\n FROM reports\n WHERE project_id = ? AND timestamp = (\n SELECT MAX(timestamp)\n FROM reports\n WHERE project_id = ?\n )\n ORDER BY version\n ",
"describe": {
"columns": [
{
"name": "git_commit",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "git_commit_message",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "timestamp",
"ordinal": 2,
"type_info": "Datetime"
},
{
"name": "version",
"ordinal": 3,
"type_info": "Text"
}
],
"parameters": {
"Right": 2
},
"nullable": [
false,
true,
false,
false
]
},
"hash": "15bbe4fa503d79dfa792cfa473fabe7696222b06744bc83049e8f83a25f469a6"
}
@@ -0,0 +1,62 @@
{
"db_name": "SQLite",
"query": "\n SELECT owner, repo, name, short_name, default_category, default_version, platform, workflow_id\n FROM projects\n WHERE id = ?\n ",
"describe": {
"columns": [
{
"name": "owner",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "repo",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "short_name",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "default_category",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "default_version",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "platform",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "workflow_id",
"ordinal": 7,
"type_info": "Text"
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false,
true,
true,
true,
true,
true,
true
]
},
"hash": "269859ed391626ddbc2af37381a13c36976f48e6a89aaaa03da8ea66baccddff"
}
@@ -1,6 +1,6 @@
{
"db_name": "SQLite",
"query": "\n SELECT EXISTS (\n SELECT 1\n FROM reports JOIN projects ON reports.project_id = projects.id\n WHERE projects.owner = ? COLLATE NOCASE AND projects.repo = ? COLLATE NOCASE\n AND git_commit = ? COLLATE NOCASE\n ) AS \"exists!\"\n ",
"query": "\n SELECT EXISTS (\n SELECT 1\n FROM reports JOIN projects ON reports.project_id = projects.id\n WHERE projects.id = ? AND git_commit = ? COLLATE NOCASE\n ) AS \"exists!\"\n ",
"describe": {
"columns": [
{
@@ -10,11 +10,11 @@
}
],
"parameters": {
"Right": 3
"Right": 2
},
"nullable": [
false
]
},
"hash": "21108206934d9a3b1e895e8413c319da09b55b6667b0d12efa7422babd5ec584"
"hash": "2d55fd406b948029e83a7ad21ab5f8186e44638d8b5a2eb1135300b8ff14d864"
}
@@ -1,6 +1,6 @@
{
"db_name": "SQLite",
"query": "\n SELECT git_commit, timestamp, version\n FROM reports\n WHERE project_id = ? AND git_commit = ? COLLATE NOCASE\n ORDER BY version\n ",
"query": "\n SELECT git_commit, git_commit_message, timestamp\n FROM reports\n WHERE project_id = ? AND version = ? COLLATE NOCASE\n ORDER BY timestamp DESC\n ",
"describe": {
"columns": [
{
@@ -9,14 +9,14 @@
"type_info": "Text"
},
{
"name": "timestamp",
"name": "git_commit_message",
"ordinal": 1,
"type_info": "Datetime"
"type_info": "Text"
},
{
"name": "version",
"name": "timestamp",
"ordinal": 2,
"type_info": "Text"
"type_info": "Datetime"
}
],
"parameters": {
@@ -24,9 +24,9 @@
},
"nullable": [
false,
false,
true,
false
]
},
"hash": "364ea7a0b23d5edfbf4810659d41b0ceaeaa4fb6fd200dacf15030063ec7909d"
"hash": "40064a6137d5177432a13ba71255b4a836c567139892ab997a80ea40158e5082"
}
@@ -0,0 +1,20 @@
{
"db_name": "SQLite",
"query": "\n INSERT INTO reports (project_id, version, git_commit, timestamp, data, data_version)\n VALUES (?, ?, ?, ?, ?, ?)\n ON CONFLICT (project_id, version COLLATE NOCASE, git_commit COLLATE NOCASE) DO UPDATE\n SET timestamp = EXCLUDED.timestamp\n RETURNING id\n ",
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Integer"
}
],
"parameters": {
"Right": 6
},
"nullable": [
false
]
},
"hash": "40da4ebeb3450a8c78a890e359bcca067142cbc16805c73f186bca873a8e9c98"
}
@@ -1,26 +0,0 @@
{
"db_name": "SQLite",
"query": "\n SELECT git_commit, timestamp\n FROM reports\n WHERE project_id = ? AND version = ? COLLATE NOCASE\n ORDER BY timestamp DESC\n ",
"describe": {
"columns": [
{
"name": "git_commit",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "timestamp",
"ordinal": 1,
"type_info": "Datetime"
}
],
"parameters": {
"Right": 2
},
"nullable": [
false,
false
]
},
"hash": "50e7e6303ba6fa91e2f527c7fa864a28ad702456c58e950c3d5d58e4e8d9b59e"
}
@@ -1,6 +1,6 @@
{
"db_name": "SQLite",
"query": "\n SELECT git_commit, timestamp, version\n FROM reports\n WHERE project_id = ? AND timestamp = (\n SELECT MAX(timestamp)\n FROM reports\n WHERE project_id = ?\n )\n ORDER BY version\n ",
"query": "\n SELECT git_commit, git_commit_message, timestamp, version\n FROM reports\n WHERE project_id = ? AND git_commit = ? COLLATE NOCASE\n ORDER BY version\n ",
"describe": {
"columns": [
{
@@ -9,13 +9,18 @@
"type_info": "Text"
},
{
"name": "timestamp",
"name": "git_commit_message",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "timestamp",
"ordinal": 2,
"type_info": "Datetime"
},
{
"name": "version",
"ordinal": 2,
"ordinal": 3,
"type_info": "Text"
}
],
@@ -24,9 +29,10 @@
},
"nullable": [
false,
true,
false,
false
]
},
"hash": "4f3b7670e663abfba2a3c1b41f11293425d9701e3583fb1ce5851092dae89f10"
"hash": "563bea47238272cf883abc1662ee37ce3154c075d8a6f2d4db48c95f31033cc2"
}
@@ -1,20 +0,0 @@
{
"db_name": "SQLite",
"query": "\n INSERT INTO reports (project_id, version, git_commit, timestamp, data)\n VALUES (?, ?, ?, ?, ?)\n ON CONFLICT (project_id, version COLLATE NOCASE, git_commit COLLATE NOCASE) DO UPDATE\n SET timestamp = EXCLUDED.timestamp\n RETURNING id\n ",
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Integer"
}
],
"parameters": {
"Right": 5
},
"nullable": [
false
]
},
"hash": "56c994f1c82f796c9924b571d5442a2694c3a1dbf469c88dfb8df8f283e18a3d"
}
@@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "\n INSERT INTO projects (id, owner, repo, name, short_name, default_category, default_version, created_at, updated_at)\n VALUES (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)\n ON CONFLICT (id) DO NOTHING\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 7
},
"nullable": []
},
"hash": "5de3235fb918d2e691289b998a5899e71f5f491f72864b134b4debe85bb57fa9"
}
@@ -1,6 +1,6 @@
{
"db_name": "SQLite",
"query": "\n SELECT id AS \"id!\", owner, repo, name, short_name, default_version, platform\n FROM projects\n WHERE owner = ? COLLATE NOCASE AND repo = ? COLLATE NOCASE\n ",
"query": "\n SELECT id AS \"id!\", owner, repo, name, short_name, default_category, default_version, platform, workflow_id\n FROM projects\n WHERE owner = ? COLLATE NOCASE AND repo = ? COLLATE NOCASE\n ",
"describe": {
"columns": [
{
@@ -29,14 +29,24 @@
"type_info": "Text"
},
{
"name": "default_version",
"name": "default_category",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "platform",
"name": "default_version",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "platform",
"ordinal": 7,
"type_info": "Text"
},
{
"name": "workflow_id",
"ordinal": 8,
"type_info": "Text"
}
],
"parameters": {
@@ -49,8 +59,10 @@
true,
true,
true,
true,
true,
true
]
},
"hash": "b5c315558b6853de6aeb2f3338ec8448f2e8d9aca51ac488d55d526bef7147e3"
"hash": "60a01415ef25ea6a2fc7f3287e0e6972404e351401f8aeaedbc74b4c934c777c"
}
@@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "\n UPDATE projects\n SET owner = ?, repo = ?\n WHERE id = ?\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 3
},
"nullable": []
},
"hash": "756e4c1b9b1d5e0bf5100247a18e8998ecc0596dd1b9f388f1d6116c2209ef96"
}
@@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "\n UPDATE reports\n SET git_commit_message = ?\n WHERE project_id = ? AND git_commit = ? COLLATE NOCASE\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 3
},
"nullable": []
},
"hash": "a4130f021284bfab1562647ecf4b2967a8d70a1e1f02f92c4f792d71ace021e5"
}
@@ -1,6 +1,6 @@
{
"db_name": "SQLite",
"query": "\n SELECT\n projects.id AS \"project_id!\",\n owner AS \"owner!\",\n repo AS \"repo!\",\n name,\n short_name,\n default_version,\n platform,\n git_commit,\n MAX(timestamp) AS \"timestamp: chrono::NaiveDateTime\",\n JSON_GROUP_ARRAY(version ORDER BY version)\n FILTER (WHERE version IS NOT NULL) AS versions\n FROM projects LEFT JOIN reports ON (\n reports.project_id = projects.id\n AND reports.timestamp = (\n SELECT MAX(timestamp)\n FROM reports\n WHERE project_id = projects.id\n )\n )\n GROUP BY projects.id\n ORDER BY MAX(timestamp) DESC\n ",
"query": "\n SELECT\n projects.id AS \"project_id!\",\n owner AS \"owner!\",\n repo AS \"repo!\",\n name,\n short_name,\n default_category,\n default_version,\n platform,\n workflow_id,\n git_commit,\n git_commit_message,\n MAX(timestamp) AS \"timestamp: time::OffsetDateTime\",\n JSON_GROUP_ARRAY(version ORDER BY version)\n FILTER (WHERE version IS NOT NULL) AS versions\n FROM projects LEFT JOIN reports ON (\n reports.project_id = projects.id\n AND reports.timestamp = (\n SELECT MAX(timestamp)\n FROM reports\n WHERE project_id = projects.id\n )\n )\n GROUP BY projects.id\n ORDER BY MAX(timestamp) DESC\n ",
"describe": {
"columns": [
{
@@ -29,29 +29,44 @@
"type_info": "Text"
},
{
"name": "default_version",
"name": "default_category",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "platform",
"name": "default_version",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "git_commit",
"name": "platform",
"ordinal": 7,
"type_info": "Text"
},
{
"name": "timestamp: chrono::NaiveDateTime",
"name": "workflow_id",
"ordinal": 8,
"type_info": "Text"
},
{
"name": "versions",
"name": "git_commit",
"ordinal": 9,
"type_info": "Text"
},
{
"name": "git_commit_message",
"ordinal": 10,
"type_info": "Text"
},
{
"name": "timestamp: time::OffsetDateTime",
"ordinal": 11,
"type_info": "Text"
},
{
"name": "versions",
"ordinal": 12,
"type_info": "Text"
}
],
"parameters": {
@@ -67,8 +82,11 @@
true,
true,
true,
true,
true,
true,
true
]
},
"hash": "1c5ea45ed729197e046adfd9a9129de3479799b64556826043d6dd909c314429"
"hash": "b492f0562501ae39110cf2df7a545cd0c676b438b91d63b915988c17d5bb29b6"
}
@@ -0,0 +1,26 @@
{
"db_name": "SQLite",
"query": "\n SELECT owner, repo FROM projects WHERE id = ?\n ",
"describe": {
"columns": [
{
"name": "owner",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "repo",
"ordinal": 1,
"type_info": "Text"
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false
]
},
"hash": "b529ab4eadd4de8acf149fde3ee5e3064e7392bc5b3d647b6723c66169933812"
}
@@ -1,12 +0,0 @@
{
"db_name": "SQLite",
"query": "\n INSERT INTO projects (id, owner, repo, name, short_name, default_version, created_at, updated_at)\n VALUES (?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)\n ON CONFLICT (id) DO NOTHING\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 6
},
"nullable": []
},
"hash": "c0adc5fae9d742173927a8f48d01d02add2ea3b8abae862a144c4607a62cc196"
}
@@ -0,0 +1,20 @@
{
"db_name": "SQLite",
"query": "\n SELECT version FROM reports WHERE project_id = ? AND git_commit = ? COLLATE NOCASE\n ",
"describe": {
"columns": [
{
"name": "version",
"ordinal": 0,
"type_info": "Text"
}
],
"parameters": {
"Right": 2
},
"nullable": [
false
]
},
"hash": "d4bb3705fccd553cb29ac7f77382bd61adeef31df221b3bbddef34ce8bcda70e"
}
@@ -1,6 +1,6 @@
{
"db_name": "SQLite",
"query": "\n SELECT\n reports.id as \"report_id!\",\n git_commit,\n timestamp,\n version,\n data\n FROM reports JOIN projects ON reports.project_id = projects.id\n WHERE projects.owner = ? COLLATE NOCASE AND projects.repo = ? COLLATE NOCASE\n AND version = ? COLLATE NOCASE AND git_commit = ? COLLATE NOCASE\n ",
"query": "\n SELECT\n reports.id as \"report_id!\",\n git_commit,\n git_commit_message,\n timestamp,\n version,\n data\n FROM reports JOIN projects ON reports.project_id = projects.id\n WHERE projects.owner = ? COLLATE NOCASE AND projects.repo = ? COLLATE NOCASE\n AND version = ? COLLATE NOCASE AND git_commit = ? COLLATE NOCASE\n ",
"describe": {
"columns": [
{
@@ -14,18 +14,23 @@
"type_info": "Text"
},
{
"name": "timestamp",
"name": "git_commit_message",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "timestamp",
"ordinal": 3,
"type_info": "Datetime"
},
{
"name": "version",
"ordinal": 3,
"ordinal": 4,
"type_info": "Text"
},
{
"name": "data",
"ordinal": 4,
"ordinal": 5,
"type_info": "Blob"
}
],
@@ -35,10 +40,11 @@
"nullable": [
true,
false,
true,
false,
false,
false
]
},
"hash": "4756303132114bcbac47dd560381c0cc2883a7708f5da51fdc6f0ec81e1ce292"
"hash": "e66a8c18b0637fd37084ad02dac3e8a9d6e9a24aa0d3051cee977f13f780e0af"
}
Generated
+897 -593
View File
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More