1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-28 15:29:52 +01:00
Commit Graph

18 Commits

Author SHA1 Message Date
1c8d5383f2 Fix 'git-obs pr dump' by calling 'git reset' prior fetching the pull request 2025-10-03 09:55:22 +02:00
a139c8d581 Fix checking if a directory contains a git repo in 'git-obs pr dump' 2025-10-02 13:46:08 +02:00
6bad43ad7e Fix traceback in 'git-obs pr dump' while printing a warning about invalid submodule path 2025-10-02 13:10:58 +02:00
ef3c488d79 Update 'git-obs pr dump' to remove 'metadata' directory with old data before an update 2025-10-02 10:28:44 +02:00
fa1832e081 Change 'git-obs pr dump' to skip requests that are not open and then exit with 11 2025-10-02 08:48:42 +02:00
6d88e807bf Fix 'git-obs pr dump' to support adding more keys to the submodule metadata 2025-10-02 08:48:42 +02:00
e786a634dd Change 'git-obs pr dump' to show empty timeline entries instead just printing warnings to stderr 2025-10-02 08:48:42 +02:00
fe9c535596 Another take on parsing pull request references
Parse only references that start with 'PR:'.
Parse both owner/repo#number and gitea_url/owner/repo/pulls/number
2025-10-02 08:48:42 +02:00
Andrii Nikitin
999c1a716f Work around submodules without commit
Apparently there is some discrepancy between .submodules and git submodules status

> ./git-obs.py repo clone products/SLFO -G ibs
❯ cd SLFO
❯ git submodule status | grep '\bxli\b'
❯ grep -A 1 '\bxli\b' .gitmodules
[submodule "xli"]
	path = xli
	url = ../../SLFO-pool/xli
[submodule "xmessage"]
2025-10-02 08:48:42 +02:00
Andrii Nikitin
0108e8e70f pr_dump: Show warning on incorrect submodule url 2025-10-02 08:48:42 +02:00
Andrii Nikitin
85e00ec85e pr dump: support for short pr references
Also work around empty IssueTimelineEntries
2025-10-02 08:48:42 +02:00
Andrii Nikitin
a208031331 Dump referenced PRs to metadata/referenced-pull-requests.json 2025-10-02 08:48:42 +02:00
7ff0cdc6b4 Extend 'git-obs pr dump' to create metadata about submodules and their diff 2025-10-02 08:48:42 +02:00
a1b05a739b Include timeline in 'git-obs pr dump' results 2025-10-02 08:48:42 +02:00
0e4a7df482 Add '--subdir-fmt' to 'git-obs pr dump' for tweaking the output subdir 2025-10-02 08:48:42 +02:00
1b8fb3c584 Fix 'git-obs pr dump' to update 'base' directory to a newer commit correctly 2025-10-02 08:48:42 +02:00
1c8277c222 Speed 'git-obs pr dump' up by skipping git fetch if the HEAD commits match with commits from Gitea 2025-10-02 08:48:42 +02:00
f288795e58 Implement 'git-obs pr dump' command to store pull request information on disk 2025-10-02 08:48:38 +02:00