1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-02-03 19:38:58 +01:00
Commit Graph

5390 Commits

Author SHA1 Message Date
1b24e1f654 Fix loading shell completions for 'git-obs'
Don't load the completions when /usr/bin/register-python-argcomplete is not available
2025-06-05 13:43:59 +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
4df8ac5e9d Fix remaining issues with environmental variables in unittests 2025-06-03 13:47:05 +02:00
416862f100 Merge pull request #1817 from dmach/git-obs-override-login-from-env
Add a possibility to override git-obs login entries from env
2025-06-03 08:54:45 +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
e7779e8d59 Merge pull request #1815 from dmach/git-store-.git-file
Fix git store when .git is a file with "gitdir: <path>" link
2025-05-28 13:20:25 +02:00
b6f8c6026d Fix git store when .git is a file with "gitdir: <path>" link 2025-05-22 20:57:52 +02:00
e8bc5f440a Merge pull request #1808 from dmach/gitea_api-objects
Refactor gitea_api to use objects with properties instead of raw JSON data
2025-05-20 15:04:32 +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 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
70ca70e613 Merge pull request #1802 from dmach/git-obs-moved-permanently
Improve message in 301: Moved Permanently error in git-obs
2025-05-16 10:35:24 +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
f77a65de79 Fix handling env in tests for 'osc vc' 2025-05-12 08:50:57 +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
78ec52eb9b Merge pull request #1793 from andrii-suse/ci_surpress_mypy_failure
ci: Suppress mypy failure
2025-05-07 14:10:46 +02:00
740e48e885 Merge pull request #1799 from dmach/fix-response_to_exception-TypeError
Fix TypeError in response_to_exception() in gitea_api
2025-05-07 14:02:55 +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
6e59b6c020 Merge pull request #1796 from dmach/git-obs-env-credentials
Improve git-obs to read credentials from env variables
2025-05-06 13:41:36 +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
Andrii Nikitin
2010dbde5c ci: Suppress mypy failure
There is no much point in always failing mypy in the current state.
I suggest suppressing the failure until it is ready and make PRs green again
2025-04-29 10:19:05 +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
04a02377ab Merge pull request #1779 from andrii-suse/behave_fix_failure_when_no_git-osc-precommit-hook
Fix behave failure when not defined git-osc-precommit-hook
2025-04-24 11:54:16 +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
6983a81f46 Merge pull request #1782 from dmach/fix-osc-fork-empty-attributes
Fix 'osc fork' when <attributes/> in the source project is empty
2025-04-22 16:00:55 +02:00
02cd8b5e6c Fix 'osc fork' when <attributes/> in the source project is empty 2025-04-22 09:58:10 +02:00
52440da6d6 Merge pull request #1777 from dmach/urllib3-v1-fix-socket-timeout
Fix git-obs connection for urllib3 v1 by overriding the default timeout
2025-04-22 08:24:26 +02:00