cc37fa73bd
Add an "lfs fsck" check after submodule update
...
to avoid merging pull requests where lfs objects are not correctly
registered. Can happen when user has not installed lfs for example.
2026-02-26 11:12:29 +01:00
7740021192
Disable temporary comment adding in case of lacking permissions
2026-02-26 11:12:29 +01:00
6b76c3efc0
pr: only update PR if elided title not changed
...
Gitea trims long titles so we need to compare if the trimmed length
is same, not entire string that will always differ.
2026-02-26 11:12:29 +01:00
d04b67fde7
Support remote source in pull requests
...
This requires write permission by maintainer there
2026-02-26 11:12:29 +01:00
40317bf527
pr: small refactor
2026-02-25 12:48:48 +01:00
31299b2d61
pr: move functions around
2026-02-25 12:48:48 +01:00
85927ad76d
pr: new package handling
2026-02-25 12:48:48 +01:00
711c2d677a
pr: make sure new repos have fork/parent relationship
...
If new target repo is "reparented", it will have correct relationship
here. Otherwise PR creation will fail
2026-02-25 12:48:47 +01:00
45f2b55e53
pr: implement first part of issue processing
2026-02-25 12:48:47 +01:00
c83a3a454f
wip: process issues
2026-02-25 12:48:47 +01:00
29607f922c
HACK: disable close of pullrequests for now
...
it hit too many ones
2026-02-25 10:50:57 +01:00
7f98298b89
Transfer WIP: from package pool requests to project
go-generate-check / go-generate-check (push) Successful in 23s
2026-02-02 11:14:07 +01:00
58e5547a91
pr: fix case where PrjGit not cloned
...
go-generate-check / go-generate-check (push) Successful in 25s
When the PRSet is of size 1, so only PrjGit, the project git
may not be cloned. This breaks build preperations, etc.
2026-01-30 16:02:13 +01:00
51403713be
pr: always require review, if configured
...
Implement ReviewRequired option to workflow.config. This will
always require a review by maintainer, unless no other maintainers
are available.
By default, AlwaysRequireReview is false
2026-01-20 19:17:10 +01:00
362e481a09
pr: fix unit tests
2026-01-08 17:54:00 +01:00
19d9fc5f1e
pr: request staging only when staging.config is there
...
If the project git does not have a staging.config, then there is
no reason to request reviews by the staging bot.
2025-12-11 17:01:15 +01:00
ae6b638df6
pr: handle case of … and ... elided title
...
Also do not change title of PR if not created by bot
2025-12-03 12:41:50 +01:00
5756f7ceea
pr: only update PR if elided title not changed
...
Gitea trims long titles so we need to compare if the trimmed length
is same, not entire string that will always differ.
2025-11-28 12:25:58 +01:00
2be0f808d2
pr: make sure issue list is consistent
2025-11-28 12:08:54 +01:00
86acfa6871
pr: set staging auto label according to config
...
falls back to staging/Auto if nothing is set
2025-11-20 16:25:06 +01:00
4bd259a2a0
pr: ignore pkg PR if not open and no PrjGit PR
2025-11-19 16:35:17 +01:00
3ed5ecc3f0
pr: add staging/Auto on new PRs
...
also, cache timeline fetches
2025-11-17 11:01:45 +01:00
a418b48809
pr: process PR on comments, not issue changes
2025-10-31 13:07:18 +01:00
ca7966f3e0
pr: sanity check
...
make sure that the checked out PR matches what Gitea is sending
us, otherwise pause for a few seconds and retry.
2025-10-11 18:10:15 +02:00
0c47ca4d32
pr: updating PR needs to update the SHA
...
If we are updating a Project Git PR, we need to save the updated
hash or we may be lookign at pre-update PR for various operations,
including merging.
This mostly only affects project gits in devel projects where
the project git could be updated by direct workflow bot, but then
the project is incorrectly resulting in no package update.
2025-10-11 17:25:48 +02:00
1af2f53755
PR: Fix case where PR repo != target repo
...
Was using a check that the label has the repo name in it, but
this is not always reliable. So, check repo.ID if it's the same.
2025-10-01 15:33:39 +02:00
a4fb3e6151
PR: Don't clobber other's PrjGit description
...
If we did not create the PRjGit PR, don't touch the title
and description
Closes : #68
2025-09-02 19:47:47 +02:00
4651440457
Revert "Fixing creation or PR even when we don't want it"
...
This reverts commit e90ba95869 .
We need to assign reviews anyway...
2025-08-29 17:09:08 +02:00
e90ba95869
Fixing creation or PR even when we don't want it
2025-08-29 15:08:05 +02:00
1015e79026
PR: don't try to update PR if PrjGit only being updated
2025-08-29 14:36:20 +02:00
833cb8b430
PR: marshall config before logging it
2025-08-28 18:13:11 +02:00
a882ae283f
PR: workaround lfs errors
...
in case where files are not in lfs but should be, the checkout
causes files to be modified. Then the checkout of the PR.Head fails.
There should be better way of dealing with this
2025-08-28 16:30:04 +02:00
72b979b587
PR: remove closed package PRs from a PRset
...
This used to happen as a side-effect of a different code path
that was removed in b96b784b38
2025-08-27 14:57:43 +02:00
62658e23a7
PR: quiet submodule deinit output
2025-08-27 14:49:16 +02:00
46a187a60e
pr: error format fix
2025-08-26 23:50:48 +02:00
f013180c4b
PR: assign reviewers only when not merging
2025-08-26 22:41:37 +02:00
b96b784b38
PR: remove broken code
2025-08-26 19:57:48 +02:00
8d0047649a
PR: if we have unpushed commits, update PRset
...
PRset is used elsewhere and if the pending, unpushed commits
are not part of it, we have an old state
2025-08-26 18:59:38 +02:00
2f180c264e
PR: check pending changes, pushed changes
2025-08-26 18:16:42 +02:00
7d2233dd4a
PR: add NoProjectGitPR option
2025-08-26 16:19:56 +02:00
c30ae5750b
PR: clone fixes
2025-08-26 15:47:58 +02:00
ea2134c6e9
PR: checkout a commit, for safety - we can't push to non-branch
2025-08-26 13:51:09 +02:00
b22f418595
PR: process with ProjectGit originating from non-local
2025-08-26 13:37:11 +02:00
7e055c3169
Merge branch 'jzerebecki-fix-pr-link'
2025-08-25 19:12:59 +02:00
5a875c19a0
PR: handle issues webhooks
...
These issues have to be associated with a PR. Otherwise processing
is ignored. We need these to handle comments to bot
2025-08-22 16:28:43 +02:00
33c9bffc2e
Merge messages and handle gitea manual merge race
2025-08-22 13:55:04 +02:00
4894c0d90a
mark manual merge instead of relying on Gitea -- delays?
2025-08-22 09:07:34 +02:00
090c291f8a
prjgit manual merge check
2025-08-21 17:39:52 +02:00
Jan Zerebecki
933ca9a3db
Fix PR link
...
to use ! instead of # . The later is for issues and only works due to
a redirect, which currently fails in gitea if a repo has its issue
tracker disabled.
2025-08-19 16:27:39 +02:00
76aec3aabb
PR: PrjGit description generation in one place
...
This allows for easier editing and for guidance of what will
happen next
2025-07-18 16:26:35 +02:00