1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-02-23 12:15:31 +01:00
Commit Graph

4403 Commits

Author SHA1 Message Date
ff44786b27 Extend _buildinfo file lookup to the current directory
Fixes 'osc lbl' for git based packages.
2025-06-13 15:56:18 +02:00
bfd1ac3eeb Merge pull request #1833 from dmach/osc-fork-validate-arguments
Validate arguments in 'osc fork' command
2025-06-13 13:26:19 +02:00
b84019b368 Migrate store_* functions to use get_store instead of the original code
That allows us to use both OBS SCM store and Git SCM store
2025-06-13 11:24:35 +02:00
c0ef7daae0 Validate arguments in 'osc fork' command 2025-06-12 21:49:54 +02:00
706fcf50b4 Remove unwanted debug print from pr.py 2025-06-06 16:10:28 +02:00
4668bc3ff9 Remove duplicate code after a badly resolved merge conflict from pr_review_interactive.py 2025-06-06 15:57:27 +02:00
3426469e62 Add 'A)approve and schedule for merging' action to 'git obs pr review interactive' 2025-06-06 15:13:59 +02:00
d4d535d7cc Add 'git-obs pr merge' command 2025-06-06 15:13:53 +02:00
7d81fd3900 Add 'git-obs pr review accept' and 'git-obs pr review decline' commands 2025-06-06 08:28:05 +02:00
626299efe8 Rename 'git-obs pr review' to 'git-obs pr review interactive' 2025-06-05 14:50:53 +02:00
89014e8026 Merge pull request #1818 from dmach/fix-failing-unittests
Fix failing unittests
2025-06-03 16:12:59 +02:00
fef8c4aa7d Merge pull request #1816 from andrii-suse/add_pr_export
Add --export to pr list and pr search
2025-06-03 16:01:23 +02:00
60e176f9bc Fix how types are compared in OscOptions.set_value_from_string()
Some python versions require '==' instead of 'is' operator, otherwise we get
TypeError: Field 'http_headers' has type 'typing.List[osc.conf.HttpHeader]'. Cannot assign a value with type 'str'.
2025-06-03 13:49:15 +02:00
bdf74e036f Add a possibility to override git-obs login entries from env 2025-06-02 15:57:19 +02:00
Andrii Nikitin
1e5582ace5 Add --export to pr list and pr search 2025-06-02 15:15:38 +02:00
b6f8c6026d Fix git store when .git is a file with "gitdir: <path>" link 2025-05-22 20:57:52 +02:00
e2d890391e Refactor gitea_api to use objects with properties instead of raw JSON data 2025-05-20 14:29:20 +02:00
92867a5145 release 1.16.0 2025-05-20 11:44:46 +02:00
f7d5a17931 Merge pull request #1812 from dmach/git-obs-pr-list-improvements
Improvements to the 'git-obs pr list' command
2025-05-20 11:29:01 +02:00
fb70fbc64d Merge pull request #1784 from andrii-suse/behave_add_osc_fork
behave: Add osc fork test
2025-05-20 11:25:28 +02:00
664e7cf546 Add '--target-branch' filter option to 'git-obs pr list' 2025-05-20 11:10:53 +02:00
12bfd69bc2 Set limit=0 to disable pagination in all relevant git-obs subcommands 2025-05-20 09:24:12 +02:00
506391feaf Add '--no-draft' filter option to 'git-obs pr list' 2025-05-20 09:00:35 +02:00
96198380ea Merge pull request #1791 from openSUSE-Python/no-implicit-optional
chore: do not use implicit Optional[] type
2025-05-16 10:47:23 +02:00
Andrii Nikitin
ddef2a11cc behave: Add osc fork test 2025-05-16 10:46:16 +02:00
8ea352270a Merge pull request #1794 from andrii-suse/add_rmkpac
Add rmkpac command
2025-05-16 10:38:53 +02:00
b7aeaeb0ed Merge pull request #1801 from dmach/git-scm-store-fix-reading-project-from-parent-directory
Fix how GitStore reads project from the parent directory
2025-05-16 10:36:39 +02:00
Andrii Nikitin
988e8601b0 Add rmkpac command
The primary goal of remote mkpac is to provide a convenient way
for users to create packages with scmsync tag in _meta
2025-05-13 09:59:09 +02:00
aa8a48b79b Implement '--reviewer' and '--review-state' options for 'git-obs pr list' 2025-05-12 17:11:27 +02:00
3ac715b40f Fix how GitStore reads project from the parent directory 2025-05-12 08:50:57 +02:00
d5ed8fe2e4 Improve message in 301: Moved Permanently error in git-obs 2025-05-09 13:50:56 +02:00
79657c0e22 Merge pull request #1798 from andrii-suse/fix_editor_with_params
Fix git-obs pr create with multistring EDITOR
2025-05-09 13:17:33 +02:00
Andrii Nikitin
a9d5f8ca6d Fix git-obs pr create with multistring EDITOR 2025-05-07 14:19:10 +02:00
d794e86925 Fix TypeError in response_to_exception() in gitea_api
Gitea seems to be inconsistent in including the "errors" entry in responses.
It may be completely missing or set to null/None.
2025-05-07 08:31:34 +02:00
2ab01d8e9a chore: run no_implicit_optional on the code base to make it PEP 484 compliant.
References: https://github.com/hauntsaninja/no_implicit_optional
2025-05-06 23:12:37 +02:00
43dce68a75 Merge pull request #1792 from openSUSE-Python/no-dot
fix(sr): don't limit SRs to be superseded by other characters
2025-05-06 13:44:03 +02:00
dabe585c6d Merge pull request #1786 from dmach/git-obs-better-exceptions
Improve handling exceptions in 'git-obs' command
2025-05-06 13:42:56 +02:00
273811f4e5 Merge pull request #1790 from openSUSE-Python/empty_description
don't crash when API returns None as a description
2025-05-06 13:42:10 +02:00
a380dc8624 Improve git-obs to read credentials from env variables
Supported variables:
- GIT_OBS_GITEA_URL (mandatory)
- GIT_OBS_GITEA_USER (mandatory)
- GIT_OBS_GITEA_TOKEN (mandatory)
- GIT_OBS_GITEA_SSH_KEY (optional)
2025-05-05 14:08:19 +02:00
743169e49c fix(sr): don't limit SRs to be superseded by other characters
I understand that the current output is better from the point of
view of typography, but it is inconvenient when I need to use the
number of the SR to-be-superseded for clipboard.
2025-04-29 07:50:24 +02:00
914a04836f don't crash when API returns None as a description 2025-04-28 19:52:33 +02:00
cea248ce71 Improve handling exceptions in 'git-obs' command 2025-04-23 13:42:48 +02:00
db95d8ff9a Merge pull request #1780 from dmach/git-obs-improve-help
Improve help of the 'git-obs login' subcommands
2025-04-22 17:23:41 +02:00
e90daa64fe Update 'git-obs login {add,update}' to check the gitea token format 2025-04-22 16:25:32 +02:00
4b10e0381e Improve help of the 'git-obs login' subcommands 2025-04-22 16:25:32 +02:00
02cd8b5e6c Fix 'osc fork' when <attributes/> in the source project is empty 2025-04-22 09:58:10 +02:00
4f1d92f844 Add 'min_key_length' argument to KeyValueTable to enforce the minimal length of the first column 2025-04-17 16:20:17 +02:00
a27786ef96 Fix git-obs connection for urllib3 v1 by overriding the default timeout 2025-04-15 15:51:46 +02:00
3a885ac369 Merge pull request #1719 from JanZerebecki/precommit
Add osc service precommit, for use with git hook
2025-04-07 13:16:34 +02:00
fffdda9840 Add troubleshooting info to gitea_api.Login.DoesNotExist message 2025-04-07 11:40:54 +02:00