1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-01-27 00:03:23 +01:00

5650 Commits

Author SHA1 Message Date
0ce49e87e9 release 1.21.0 1.21.0 2025-10-10 14:59:01 +02:00
8a305f0448 Merge pull request #1963 from dmach/git-obs-improve-meta
Improve handling meta in git-obs
2025-10-10 14:35:31 +02:00
07acc067f0 Fix gitea_api.Git.get_branch_head() to raise a proper exception if the HEAD cannot be retrieved 2025-10-10 14:19:14 +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
14d42d252c Derive package name from topdir if a package is part of a project checkout 2025-10-10 14:19:14 +02:00
6b4ee09f95 Improve GitStore.pull() to support reading project from project.build 2025-10-10 14:03:29 +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
6b05fff00c Merge pull request #1962 from dmach/osc-build-fix-offline-no-build-repositories-in-store
Fix crash 'osc build' when 'build_repositories' in store was None
2025-10-10 13:22:11 +02:00
0b495508ee Fix crash 'osc build' when 'build_repositories' in store was None 2025-10-10 10:23:19 +02:00
01c60fb7d7 Merge pull request #1959 from dmach/osc-build-root-substitutions
Support substitutions in 'osc build --root'
2025-10-09 16:06:19 +02:00
729e837db5 Support substitutions in 'osc build --root' 2025-10-09 14:57:20 +02:00
a48ce183b1 Merge pull request #1956 from dmach/git-obs-runtime-error
Introduce GitObsRuntimeError exception and use it where appropriate
2025-10-09 13:17:19 +02:00
1488f3b873 Introduce GitObsRuntimeError exception and use it where appropriate 2025-10-09 09:54:18 +02:00
4fddb4568a Merge pull request #1951 from dmach/git-obs-pr-review-interactive-fix-stderr-and-terminal
Fix various crashes in 'git-obs pr review interactive'
2025-10-08 16:50:20 +02:00
2ead4cb313 Mute stderr when creating a worktree in 'git-obs pr review interactive 2025-10-08 16:20:09 +02:00
7aa9734143 Fix tardiff by removing directories with shutil.rmtree() and files by os.unlink() 2025-10-08 16:20:09 +02:00
5e0ab3ecb0 Mute stderr in git_obs.Git.lfs_cat_file() 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
0b242dc553 Change obs_api.TarDiff to spawn a process extracting archives as a context manager 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
10f5e7309e Fix typo in 'osc status' error message about unsupported git 2025-10-07 08:55:57 +02:00
c981fc3810 Merge pull request #1949 from dmach/git-obs-pr-dump-fix-submodules-reset
Fix 'git-obs pr dump' by calling 'git reset' prior fetching the pull request
2025-10-03 10:28:48 +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
76eab5a2f5 Change 'commit' argument in gitea_api.Git.reset() to optional 2025-10-03 09:51:35 +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
98570dc232 Merge pull request #1948 from dmach/git-obs-pr-dump-fix-submodule-path-warning
Fix traceback in 'git-obs pr dump' while printing a warning about invalid submodule path
2025-10-02 13:24:38 +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
4af579e152 Merge pull request #1806 from dmach/git-obs-pr-dump
Implement 'git-obs pr dump' command to store pull request information on disk
2025-10-02 10:43:45 +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
35f25dc9b8 Add gitea_api.Git.get_owner_repo_from_url() staticmethod 2025-10-02 08:48:42 +02:00
84288258b0 Add gitea_api.Git.urljoin() static method 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
7a9113953b Merge pull request #1946 from dmach/git-store-osc-allow-scmurl
Make scmsync (scmurl) packages work again with git commands
2025-09-29 17:23:02 +02:00