{"id":28690600,"url":"https://github.com/thunderbird/github-action-thunderbird-aaq","last_synced_at":"2025-06-14T06:05:39.565Z","repository":{"id":168483569,"uuid":"644206480","full_name":"thunderbird/github-action-thunderbird-aaq","owner":"thunderbird","description":"github action to get all the Thunderbird SUMO forum questions aka Ask a Question or AAQ","archived":false,"fork":false,"pushed_at":"2025-06-13T15:33:45.000Z","size":66926,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-13T15:42:01.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thunderbird.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-23T03:31:37.000Z","updated_at":"2025-06-13T15:33:49.000Z","dependencies_parsed_at":"2023-09-27T03:05:47.093Z","dependency_job_id":"ae621a0d-ad9c-4486-a623-36c916b42d9c","html_url":"https://github.com/thunderbird/github-action-thunderbird-aaq","commit_stats":null,"previous_names":["rtanglao/github-action-thunderbird-aaq","thunderbird/github-action-thunderbird-aaq"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thunderbird/github-action-thunderbird-aaq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fgithub-action-thunderbird-aaq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fgithub-action-thunderbird-aaq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fgithub-action-thunderbird-aaq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fgithub-action-thunderbird-aaq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thunderbird","download_url":"https://codeload.github.com/thunderbird/github-action-thunderbird-aaq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fgithub-action-thunderbird-aaq/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768604,"owners_count":22908229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-14T06:05:36.259Z","updated_at":"2025-06-14T06:05:39.559Z","avatar_url":"https://github.com/thunderbird.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-action-thunderbird-aaq\ngithub action to get all the Thunderbird SUMO forum questions aka Ask a Question or AAQ\n\n### 2024-10-20 refresh 2024 and get isoweek counts\n```bash\nmlr --csv sort -f id ../2024/*thunderbird-creator-answers-desktop-all-locales.csv \\\n\u003e 2024-yearly-thunderbird-questions.csv\n```\n### 2024-08-21 A better way to open a day's questions (that doesn't output the CSV header row)\n* to not output the CSV header row, use the following option: `--headerless-csv-output`\n```bash\n mlr --csv --headerless-csv-output put -f ../make-question-link.mlr \\\nthen cut -f link \\\n2024-08-20-2024-08-20-thunderbird-creator-answers-desktop-all-locales.csv \\ \n| xargs -n 1 -I % sh -c 'sleep 5; open %;' #5 seconds is better than 10, 10 is too long\n```\n\n### 2023-12-11 bundle install if you change the Gemfile\n```bash\n# REMINDER :-) if you change the gemfile, bundle install!!!!!\nbundle install\n```\n### 2023-12-10 get all time CSVs\n```bash\nmlr --csv sort -f id ../2023/*-thunderbird-regex-matches.csv \u003e alltime-thunderbird-regex-matches.csv\nmlr --csv sort -f date ../2023/*-thunderbird-daily-summary.csv \u003e alltime-thunderbird-daily-summary.csv\n```\n### No need for a script to combine CSV files! use mlr!\ntl;dr don't use concatenate-multiple-sumo-question-or-answer-files.rb :-)\n```bash\ncd SQLITE\nmlr --csv sort -f id ../2023/*thunderbird-creator-answers-desktop-all-locales.csv \\\n\u003e 2023-yearly-thunderbird-questions.csv\nmlr --csv sort -f id ../2023/*thunderbird-answers-for-questions-desktop.csv \\\n\u003e 2023-yearly-thunderbird-answers.csv\n```\n\n### 2023-12-05 get daily regular expression summaries\n```bash\n./get_regular_expression_matches_for_n_days_starting.rb 2023 4 1 247\n./get_daily-summary-csv-for-n-days-starting.rb 2023 4 1 247\ncd 2023\nmlr --csv sort -f date 2023*-thunderbird-daily*.csv \u003e2023-thunderbird-daily-regex-summmary.csv\ncsvs-to-sqlite 2023-thunderbird-daily-regex-summmary.csv -dt date ../SQLITE/2023-thunderbird-daily-regex-summary.db \n```\n### 2023-08-15 concat all the questions and answers from July 11-August 15, 2023 i.e. from start of TB115 release and then search them\n```bash\n./concatenate-multiple-sumo-question-or-answer-files.rb 2023 7 11 2023 8 15 questions\n./concatenate-multiple-sumo-question-or-answer-files.rb 2023 7 11 2023 8 15 answers\n```\nwhich creates the files:\n* CSV_BY_TIME_PERIOD_USUALLY_BY_MONTH/[thunderbird-desktop-questions-2023-07-11-2023-08-15.csv](https://raw.githubusercontent.com/rtanglao/github-action-thunderbird-aaq/main/CSV_BY_TIME_PERIOD_USUALLY_BY_MONTH/thunderbird-desktop-questions-2023-07-11-2023-08-15.csv)\n* CSV_BY_TIME_PERIOD_USUALLY_BY_MONTH/[thunderbird-desktop-answers-2023-07-11-2023-08-15.csv](https://raw.githubusercontent.com/rtanglao/github-action-thunderbird-aaq/main/CSV_BY_TIME_PERIOD_USUALLY_BY_MONTH/thunderbird-desktop-answers-2023-07-11-2023-08-15.csv)\n\n#### you can than then search using datasette lite using SQLite (joins etc)\n\n* https://lite.datasette.io/?csv=https://raw.githubusercontent.com/rtanglao/github-action-thunderbird-aaq/main/CSV_BY_TIME_PERIOD_USUALLY_BY_MONTH/thunderbird-desktop-questions-2023-07-11-2023-08-15.csv\u0026csv=https://raw.githubusercontent.com/rtanglao/github-action-thunderbird-aaq/main/CSV_BY_TIME_PERIOD_USUALLY_BY_MONTH/thunderbird-desktop-answers-2023-07-11-2023-08-15.csv \u003c-- to search the tables\n* search for all of wayne's replies aka answers:\n* SQLite is:\n  ```sql\n  select rowid, id, question_id, created, updated, content, creator, is_spam, num_helpful, num_unhelpful, link from [thunderbird-desktop-answers-2023-07-11-2023-08-15] where \"creator\" = :p0 order by rowid limit 101\n  p0=wsmwk\n  ````\n  * URL for above SQLite query is: https://lite.datasette.io/?csv=https://raw.githubusercontent.com/rtanglao/github-action-thunderbird-aaq/main/CSV_BY_TIME_PERIOD_USUALLY_BY_MONTH/thunderbird-desktop-questions-2023-07-11-2023-08-15.csv\u0026csv=https://raw.githubusercontent.com/rtanglao/github-action-thunderbird-aaq/main/CSV_BY_TIME_PERIOD_USUALLY_BY_MONTH/thunderbird-desktop-answers-2023-07-11-2023-08-15.csv#/data?sql=select+rowid%2C+id%2C+question_id%2C+created%2C+updated%2C+content%2C+creator%2C+is_spam%2C+num_helpful%2C+num_unhelpful%2C+link+from+%5Bthunderbird-desktop-answers-2023-07-11-2023-08-15%5D+where+%22creator%22+%3D+%3Ap0+order+by+rowid+limit+101\u0026p0=wsmwk\n\n\n### 2023-08-02 csvstack doesn't work as well as mlr here's how to concat CSV files\n```bash\nmlr --csv cat 2023-07-21-2023-07-21-thunderbird-creator-answers-desktop-all-locales.csv \\\n2023-07-22-2023-07-22-thunderbird-creator-answers-desktop-all-locales.csv \\\n2023-07-23-2023-07-23-thunderbird-creator-answers-desktop-all-locales.csv \\\n2023-07-24-2023-07-24-thunderbird-creator-answers-desktop-all-locales.csv \u003e \\\nthunderbird-2023-07-21-2023-07-24-questions.csv\n```\n## 2023-08-01 Pause 10 seconds between opening SUMO Thunderbird SUMO questions for a particular day\n```bash\nmlr --csv put -f ../make-question-link.mlr \\                               \n2023-07-19-2023-07-19-thunderbird-creator-answers-desktop-all-locales.csv | \\\nmlr --csv cut -f link | xargs -n 1 -I % sh -c 'sleep 5; open %;' #5 seconds is better than 10, 10 is too long\n```\n## 2023-07-25 how to open SUMO Thunderbird question links for a particular day\n```bash\nmlr --csv put -f ../make-question-link.mlr \\\n2023-07-17-2023-07-17-thunderbird-creator-answers-desktop-all-locales.csv | \\\nmlr --csv cut -f link | xargs -n 1 open\n```\n\n## 2023-07-23 creating thunderbird swag graphics april 1-june 30, 2023\n```bash\nmlr --csv cat 2023-04*creator*.csv 2023-05*creator*.csv 2023-06*creator*.csv \u003ethunderbird-2023-04-01-2023-06-30-questions.csv\nmlr --csv cat  2023-04*answers-for*.csv 2023-05*answers-for*.csv 2023-06*answers-for*.csv  \u003e thunderbird-2023-04-01-2023-06-30-answers.csv\nmlr --csv sort -n id thunderbird-2023-04-01-2023-06-30-questions.csv \u003esorted-by-id-thunderbird-2023-04-01-2023-06-30-questions.csv\nmlr --csv sort -n id thunderbird-2023-04-01-2023-06-30-answers.csv \u003esorted-by-id-thunderbird-2023-04-01-2023-06-30-answers.csv\n```\n## 2023-07-17 how to create SQLite database\n\n* first install pandas 1.4 as per https://github.com/simonw/csvs-to-sqlite/issues/88\n* and then install csvs-to-sqlite\n\n```bash\ncsvs-to-sqlite with-linktb115-2023-07-11-2023-07-16-questions.csv -dt created -dt updated \\\nwith-linktb115-2023-07-11-2023-07-16-questions.db\n```\n## 2023-07-16 How To concat CSV files and then add a link field and then open in browser\n\n```bash\ncsvstack 2023-07-11-2023-07-11-thunderbird-creator-answers-desktop-all-locales.csv \\\n2023-07-12-2023-07-12-thunderbird-creator-answers-desktop-all-locales.csv \\\n2023-07-13-2023-07-13-thunderbird-creator-answers-desktop-all-locales.csv \\\n2023-07-14-2023-07-14-thunderbird-creator-answers-desktop-all-locales.csv \\\n2023-07-15-2023-07-15-thunderbird-creator-answers-desktop-all-locales.csv \\\n2023-07-16-2023-07-16-thunderbird-creator-answers-desktop-all-locales.csv \u003e tb115-2023-07-11-2023-07-16-questions.csv\nmlr --csv put -f ../make-question-link.mlr tb115-2023-07-11-2023-07-16-questions.csv \\\n\u003e with-linktb115-2023-07-11-2023-07-16-questions.csv\nmlr --csv cut -f link with-linktb115-2023-07-11-2023-07-16-questions.csv | xargs -n 1 open\n```\n## 2023-06-04 how to print a count of all the CSV files in 2023\n\n```bash\ncd 2023\nfind . -name '*.csv' -print | sort | xargs -n 1 mlr --csv count then put 'print FILENAME'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunderbird%2Fgithub-action-thunderbird-aaq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunderbird%2Fgithub-action-thunderbird-aaq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunderbird%2Fgithub-action-thunderbird-aaq/lists"}