Commit graph

12 commits

Author SHA1 Message Date
20ed6dcb85 pagure_add_migration_comment: don't sleep for --dry-run updates 2026-06-01 17:59:26 +02:00
a3b5283606 pagure_add_migration_comment: Print issue IDs for failed requests
Assisted-by: Cursor AI
2026-06-01 17:59:26 +02:00
4b723e50ee pagure_add_migration_comment: support --skip-close and --skip-comment
Also do fewer API calls.

This is a follow-up to 4303ca8b0 and !2 that enhances it.

Assisted-by: Cursor AI
2026-06-01 17:25:19 +02:00
4303ca8b07 Close opened issues when adding migration comment 2026-06-01 17:24:07 +02:00
79855da7be Add forge_convert_labels.py to convert to templated labels
As part of the Pagure migration process, per-repo labels were
created to match Pagure's labels, priorities and statuses. But
in Forgejo we also have similar quality org-wide labels templated
from instance-wide labels, which is confusing and redundant.

This script runs on a Forgejo repo and removes the per-repo
priority labels, replacing them with the templated priority
labels. It also replaces 'bug' with 'Work Item/Bug' and
'task' with 'Work Item/Task', since they seem pretty good
equivalents.

We use color to distinguish between the per-repo and templated
priority labels as they actually have the exact same names. The
colors for the 'bug' and 'task' labels seem pretty consistent
from repo to repo, except one outlier where the 'task' color
was different. We make the replacements mapping an external file
that can be swapped out, so it can easily be adapted to different
organizations and repositories.

Fixes #1

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-04-29 12:52:29 +02:00
fb9cf8f80b add "AI-generated" comment to each script 2025-12-03 10:28:14 +01:00
74fd98e494 readme: Remove unsupported --comment arg from example 2025-12-02 14:13:16 +01:00
b8d59fae5c update readme 2025-11-28 16:43:47 +01:00
a5e372d039 add forge_migrate_story_points.py 2025-11-28 16:43:47 +01:00
109ef794ff naming tweaks 2025-11-28 16:43:47 +01:00
25b8f0cfe3 add pagure-create-issues.py 2025-11-28 16:43:47 +01:00
35977a8989 add pagure_add_migration_comment.py 2025-11-28 16:43:34 +01:00