1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-01-29 17:18:55 +01:00
Commit Graph

89 Commits

Author SHA1 Message Date
fb8d1f4c72 Fix 'git-obs pr dump' to skip the dump if the target has the same updated_at timestamp as the pull request in Gitea 2025-10-29 14:33:45 +01:00
4d4bdc1f71 Fix 'git-obs pr dump' to do case insensitive check on owner and repo 2025-10-27 07:57:43 +01:00
e91c904284 Add 'DELETE' to 'git-obs api' allowed methods 2025-10-15 12:19:06 +02:00
Antonello Tartamo
7954b9d11a Add filtering by label to 'git-obs pr list' 2025-10-15 12:19:06 +02:00
67a711c577 Add commit messages as commented lines to the template in 'git-obs pr create' 2025-10-13 13:24:00 +02:00
fc83822d79 Automatially pull meta after 'git-obs repo clone' 2025-10-10 14:19:14 +02:00
da592aac93 Add 'git-obs meta info' command for printing resolved metadata about the current checkout 2025-10-10 14:19:14 +02:00
87de410542 Move code from 'git-obs meta pull' command to GitStore.pull() 2025-10-10 14:03:29 +02:00
a5afc88561 Add -b/--branch option to 'git-obs repo clone' command 2025-10-10 14:03:29 +02:00
1488f3b873 Introduce GitObsRuntimeError exception and use it where appropriate 2025-10-09 09:54:18 +02:00
2ead4cb313 Mute stderr when creating a worktree in 'git-obs pr review interactive 2025-10-08 16:20:09 +02:00
6672d1a88c Change 'git-obs pr review interactive' to run pager process as a context manager
This avoids problems with broken terminal if an exception occurs in git-obs while the pager is active
2025-10-08 16:20:09 +02:00
ce99ac5e83 Add 'quiet' option to gitea_api.Git.switch() 2025-10-08 16:19:52 +02:00
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
5926857a1d Change 'git-obs pr review interactive' to write 'merge ok' comment instead of scheduling a merge 2025-10-02 08:48:42 +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
759a2da438 Fix filtering by reviewers in 'git-obs pr list' 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
7507953300 Implement 'git-obs --quiet' option (that mutes printing gitea settings now) 2025-09-26 11:38:51 +02:00
3792b55c53 Fix git store to check if all the required fields are present 2025-09-23 13:06:46 +02:00
9ca2b52139 Add 'git-obs meta' commands for managing the local metadata 2025-09-23 13:06:46 +02:00
590b4d3727 Fix checkout of the base branch in 'git-obs pr review interactive' command 2025-09-03 16:04:02 +02:00
c73c431320 Add 'close' option to 'git-obs pr review interactive' 2025-08-27 09:09:54 +02:00
de39324e35 Add 'git-obs pr close' and 'git-obs pr reopen' commands 2025-08-27 09:09:54 +02:00
34b2cddbaf Change 'git-obs pr review interactive' to work with all archives, not only those in Git LFS 2025-08-20 15:17:10 +02:00
ed5549722e Handle situations when there's 'None' among timeline entries 2025-08-15 11:35:34 +02:00
5aa50af3b5 Add timeline to 'git-obs pr review interactive' 2025-07-25 09:47:26 +02:00
4dadca5c16 Add '--timeline' option to 'git-obs pr get' 2025-07-25 09:47:26 +02:00
7b2f3ff334 Extend '--message' option in git-obs subcommands with the '-m' short option 2025-07-23 10:44:56 +02:00
698ba4d64b Add a different message for scheduled merges in 'git-obs pr merge' command 2025-07-23 09:35:21 +02:00
476e764472 Add 'git-obs pr cancel-scheduled-merge' command 2025-07-23 09:33:20 +02:00
325c007247 Add '--reviewer' option to 'git-obs pr review {approve,decline,interactive}' to support group reviews via group review bot 2025-07-07 11:58:53 +02:00
07b2c7560c Add 'git-obs pr comment [--message=...]' command 2025-07-07 11:41:10 +02:00
666e9ab7c0 Move get_editor() and related functions from command-line module to gitea_api.common 2025-07-07 11:41:10 +02:00
cd92782d58 Merge pull request #1851 from dmach/git-obs-pr-review-interactive-exit-codes
Update 'git-obs pr review interactive' to return non-zero return codes for 'exit' and 'skip' actions
2025-07-07 11:24:13 +02:00