Commit graph

3 commits

Author SHA1 Message Date
Antonin Delpeuch
2c185c39fe [GITEA] Avoid conflicts of issue and PR numbers in GitLab migration (#1790)
Closes #1789.

The bug was due to the fact that GitLab does not guarantee that issue numbers are created sequentially: some identifiers can be skipped. Therefore, the new pull requests numbers should not be offset by the number of issues, but by the maximum issue number.

See for instance https://gitlab.com/troyengel/archbuild/-/issues/?sort=created_date&state=all&first_page_size=20, where there is only a singe issue with number "2".

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1790
Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
Co-committed-by: Antonin Delpeuch <antonin@delpeuch.eu>
2023-11-30 13:56:47 +00:00
Antonin Delpeuch
ca517c8bb4 Simplify HTTP mocking utility in unit tests
Follow-up to https://codeberg.org/forgejo/forgejo/pulls/1841
2023-11-30 09:47:54 +01:00
Antonin Delpeuch
19cefc4de2 Enable mocked HTTP responses for GitLab migration test 2023-11-28 20:46:51 +01:00