Skip to content

feat(bot): bump stale tickets in the internal channel#132

Merged
Nullskulls merged 3 commits into
hackclub:mainfrom
ObayM:feat/bump-tickets
Jun 8, 2026
Lines changed: 114 additions & 10 deletionsions
Merged

feat(bot): bump stale tickets in the internal channel#132
Nullskulls merged 3 commits into
hackclub:mainfrom
ObayM:feat/bump-tickets

Conversation

@ObayM

@ObayM ObayM commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

This adds an automatic daily bumps for stale tickets (over 24h) in the internal channel for shipwrights tickets

@Nullskulls Nullskulls left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great PR but please resolve these.

sw-bot/Source/alerts.py
sw-bot/Source/alerts.py
sw-bot/Source/db.py
Comment on lines +1 to +15
"""
Migration: add last_bumped_at to tickets
Run once: python migrate_add_last_bumped_at.py
"""
import db

with db.get_db() as conn:
with conn.cursor() as cur:
cur.execute(
"""
ALTER TABLE tickets
ADD COLUMN IF NOT EXISTS last_bumped_at TIMESTAMPTZ DEFAULT NULL;
"""
)
print("Migration complete: last_bumped_at added to tickets.")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps having a migrations folder might be worthwhile Though optional

@ObayM ObayM requested a review from rom Nullskulls June 8, 2026 16:30

@Nullskulls Nullskulls left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lgtm!

@Nullskulls Nullskulls merged commit mit 84c7906 into hackclub:main Jun 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

None yet

2 participants