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

5831 Commits

Author SHA1 Message Date
bf7043090d release 1.25.0 1.25.0 2026-03-09 10:16:09 +01:00
fa5187644a Merge pull request #2056 from andreas-schwab/master
Make remotebuildlog an alias of buildlog
2026-03-09 10:04:24 +01:00
85fae02d2d Merge pull request #2046 from openSUSE/feature/ssh-key-auth
feat(gitea): Add support for SSH agent authentication
2026-03-09 09:36:08 +01:00
8703a7488e Merge pull request #2030 from dcermak/pr-list-branch-filter
add PullRequest.list target_branch filter
2026-03-09 09:35:18 +01:00
4b3cde4536 Fix use of ssh keys 2026-03-09 09:06:10 +01:00
e465a6fdfa Fix coding style in HttpSigner 2026-03-09 09:06:10 +01:00
dc0ee0a6ba Merge pull request #2058 from dmach/git-obs-staging-group-rebase
Change 'git-obs staging group' to rely on the workflow-pr bot
2026-03-06 14:40:17 +01:00
acf0d46b0f Merge pull request #2063 from openSUSE/fix/oscrc-lookup
Fix oscrc lookup: prefer XDG location, warn if there are multiple configs
2026-03-06 14:28:03 +01:00
e2bd20cd8a Fix oscrc lookup: prefer XDG location, warn if there are multiple configs 2026-03-06 13:13:11 +01:00
78815d2ef7 Merge pull request #2047 from openSUSE/feature/pr-separate-requests
git-obs: Add --separate-requests and --dry-run to pr create
2026-03-05 16:26:54 +01:00
6e705978a0 Fix pylint error: E0606: Possibly using variable 'local_commit' before assignment 2026-03-05 15:31:10 +01:00
4af1e897bf Fix git_scm.Manifest to skip subdirectories that do not exist 2026-03-05 14:21:50 +01:00
64de2e9435 Simplify working with _manifest in 'git-obs pr create' 2026-03-05 13:49:31 +01:00
544631b7a3 Merge pull request #2050 from openSUSE/feature/pr_forward
Add pr forward command to git-obs
2026-03-05 09:30:55 +01:00
591275272c Don't upload all lfs objects when running 'git-obs pr forward --mode=sync' 2026-03-05 08:53:06 +01:00
7b677104e8 Move editing the message after the merge/sync in 'git-obs pr forward' 2026-03-05 08:53:06 +01:00
0dc1ff89c3 Introduce '--mode' argument to the 'git-obs pr forward' command 2026-03-05 08:53:06 +01:00
6beefac68f Fix working with labels in 'git-obs staging group' 2026-03-04 15:15:17 +01:00
ece94c918a Change 'git-obs staging group' to rely on the workflow-pr bot 2026-03-04 14:10:42 +01:00
5230e55067 Merge pull request #2061 from adrianschroeter/alldirect_or_localdep
Add alldirect_or_localdep linkedbuild mode to schema
2026-03-04 09:43:59 +01:00
2342fe022c Add alldirect_or_localdep linkedbuild mode to schema 2026-03-04 09:41:38 +01:00
0fae6c03fa Merge pull request #2054 from openSUSE/feature/staging-group-no-fork-flow
Feature/staging group no fork flow
2026-03-04 09:29:55 +01:00
46ad83cf97 Break when a matching fork was found in 'git-obs staging group' 2026-03-04 08:41:27 +01:00
0be3154993 Refactor determining push permissions 2026-03-04 08:41:21 +01:00
Antonello Tartamo
dd25debca0 staging-group: Allow PR creation without a fork
The 'osc git staging-group' command now supports creating and updating
pull requests for users who have direct push access to the target
repository, eliminating the need for a personal fork.

Previously, the command always operated on a fork of the target
repository. This change introduces a check for repository permissions.
If the user has push or admin rights on the target repository, the
command will create the pull request from a new branch within that
repository.

This also applies when updating an existing pull request. If the user
has push access to the head repository of the pull request, the command
will push updates directly to the head branch, even if it's a fork.

To facilitate this, a new `list_my_repos` method was added to the
Gitea API wrapper to fetch all of a user's repositories and check
their permissions.

Additionally, when updating a pull request, the title is now
automatically appended with a list of the packages that were updated.
2026-03-04 08:41:21 +01:00
0b3f368cbc Merge pull request #2035 from dmach/osc-search-scmsync
Extend 'osc search' with gitea data cached in an external service
2026-03-04 08:36:17 +01:00
cf814c68cb Fix source remote so it works with --source-url in 'git-obs pr forward' 2026-03-02 13:48:19 +01:00
9c06de6a3e Mute linters complaining about unused variable in 'git-obs pr forward' 2026-03-02 10:55:04 +01:00
548b50fcd0 Remove unused 'fork_url' variable from 'git-obs pr forward' 2026-02-27 10:28:09 +01:00
bba2806992 Use Repo.clone() instead of Git.clone() in 'git-obs pr forward' to use the configured ssh key 2026-02-27 10:28:09 +01:00
7e8b448980 Handle fast-forwardable merges in 'git-obs pr forward' 2026-02-27 10:28:09 +01:00
731f92c7fb Add gitea_api.Git.branch_is_fast_forwardable() method 2026-02-27 10:28:09 +01:00
fe389a11e9 Remove useless exception handling from 'git-obs pr forward' 2026-02-27 10:28:09 +01:00
92530a83f4 Simplify use of 'source_url' and 'lfs_remote' in 'git-obs pr forward' command 2026-02-27 10:28:09 +01:00
6d897a9fd5 Add more details to the commit message in 'git-obs pr forward' 2026-02-27 10:11:00 +01:00
92e8a3668e Update gitea_api.Git.get_branch_head() to take optional argument 'remote' 2026-02-27 10:10:11 +01:00
6e9a92601d Simplify editing commit message in 'git-obs pr forward' 2026-02-27 10:10:11 +01:00
fb2275c855 Simplify error reporting in 'git-obs pr forward' 2026-02-27 10:10:10 +01:00
4816698039 Rename the forward branch in 'git-obs pr forward' 2026-02-27 10:08:30 +01:00
57ac14a7ae Use 'git read-tree' for cleanup after merge in 'git-obs pr forward' 2026-02-27 10:04:31 +01:00
e520541471 Add 'amend' and 'no_edit' arguments to gitea_api.Git.commit() 2026-02-27 10:04:31 +01:00
b707f5041e Add gitea_api.Git.has_changes property to determine if there are any staged or unstaged changes in the current working copy 2026-02-27 10:04:31 +01:00
964046f818 Make remotebuildlog an alias of buildlog
The buildlog command is now a superset of the remotebuildlog command.
2026-02-26 14:46:08 +01:00
a76ea4baca Improve .git detection in 'git-obs pr forward'
The .git entries can be both directories and files.
2026-02-25 13:37:47 +01:00
e25e3bd82a Change 'git-obs pr forward' to use makedirs(..., exist_ok=True) instead of testing for the directory presence 2026-02-25 13:36:58 +01:00
Antonello Tartamo
b3fedb6942 - Safer branching: the command now creates a dedicated, temporary branch on the user's fork (e.g., PR_factory_abc1234) for the forward-merge. This prevents conflicts with and accidental overwrites of existing development branches.
- Commit message: the pull request title and description are now used for the merge commit message. This creates a more informative and consistent git history, linking the merge commit directly to the resulting PR.
- Interactive editing: a new -e, --edit flag allows the user to open their default editor to interactively refine the PR title and description before submission.
- Unrelated history check: the command now checks for unrelated histories before merging and provides a clearer error message. A new --allow-unrelated-histories flag allows the user to override this check.
2026-02-25 12:58:55 +01:00
Antonello Tartamo
85cb0f748c Automates the workflow of forwarding sources from one branch to another (e.g., Factory to Leap/SLFO) via a Pull Request.
The command handles:
   - Automatic forking of the target repository if it doesn't exist.
   - Smart workspace detection and cloning.
   - Syncing the target branch with upstream.
   - Merging the source branch using the 'theirs' strategy.
   - Cleaning up files not present in the source branch to ensure a clean forward.
   - Optimized LFS fetching for specific incoming commits.
   - Force pushing the synchronized state to the fork and opening the Pull Request.
2026-02-25 12:58:55 +01:00
52982fc969 release 1.24.0 1.24.0 2026-02-23 13:35:22 +01:00
6de1181b13 Merge pull request #2041 from openSUSE/feature/added-target-owner-repo-fork
added target-owner in repo-fork
2026-02-23 12:41:43 +01:00
44342e8dbb Merge pull request #2045 from dmach/fix-get_request_collection
Fix how get_request_collection() filters the projects and packages
2026-02-23 09:06:55 +01:00