Skip to content

Add a workflow to report (issue & PR) queue status#497

Open
rkratky wants to merge 1 commit intoubuntu:mainfrom
rkratky:issue-bot
Open

Add a workflow to report (issue & PR) queue status#497
rkratky wants to merge 1 commit intoubuntu:mainfrom
rkratky:issue-bot

Conversation

@rkratky
Copy link
Copy Markdown
Collaborator

@rkratky rkratky commented Mar 27, 2026

Description

  • Python script that gathers info on issue & PR queue status
    • sends a message to Canonical Mattermost & Ubuntu Matrix
  • GH Action workflow to run weekly on Mondays
  • Brief README

Disclosure: Written in large parts by AI


Checklist


This will be ready for merging upon approval by members of #devel:ubuntu.com on Matrix.

  * Python script that gathers info on issue & PR queue status
  * + sends a message to Canonical Mattermost & Ubuntu Matrix
  * GH Action workflow to run weekly on Mondays
  * Brief README
@rkratky rkratky requested a review from s-makin as a code owner March 27, 2026 09:46
@rkratky rkratky added enhancement New feature or request tooling labels Mar 27, 2026
Copy link
Copy Markdown
Collaborator

@j5awry j5awry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving -- the comments are non-blocking and things we can consider and iterate on.

Formatted Markdown string.
"""
today = datetime.now(timezone.utc).strftime("%Y-%m-%d")
return (
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't block, but a future improvement may be to move this to a markdown file with templating rather than inline block in a return.

minimally sticking it in the config section, and having a default value or something similar would make future changes easier. i know i wouldn't first think to look in a return statement for the entire chunk

"""
today = datetime.now(timezone.utc).strftime("%Y-%m-%d")
return (
f"📋 Ubuntu Project Docs — Issue & PR Queue ({today})\n"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above. without the docstring, i wouldn't have realized this was for Matrix either.

and what happens if we send markdown as plaintext? it seems like most annoying bit is the table formatting. I don't want to overcomplicate the code, so maybe having 2 renderings is fine. but having them be in a config spot still makes more sense to me.

table_foot = "</tbody></table>"

return (
f"<h2>📋 Ubuntu Project Docs — Issue &amp; PR Queue ({today})</h2>"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder if it's better to use a markdown-to-html library and just maintain a plaintext and a markdown version, and trust md -> html works?

i don't like having three strings of the same thing in different formats. we should be able to simplify and automate that somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants