Skip to content

Conversation

@AdamMajer
Copy link
Contributor

To allow to dissociate from parent branch
need to change head_branch = "user/topic", flow = 1, head_repo_id = base_repo_id

Related to: #33883

To allow to dissociate from parent branch
need to change head_branch = "user/topic", flow = 1, head_repo_id = base_repo_id

+----+------+--------+------------------+---------------+----------------+-------------------------+----------+-------+--------------+--------------+-----------------+-------------+--------------------------------------------------------------+-----------------------+------------+------------------+-----------+-------------+------+
| id | type | status | conflicted_files | commits_ahead | commits_behind | changed_protected_files | issue_id | index | head_repo_id | base_repo_id |   head_branch   | base_branch |                          merge_base                          | allow_maintainer_edit | has_merged | merged_commit_id | merger_id | merged_unix | flow |
+----+------+--------+------------------+---------------+----------------+-------------------------+----------+-------+--------------+--------------+-----------------+-------------+--------------------------------------------------------------+-----------------------+------------+------------------+-----------+-------------+------+
| 2  | 0    | 2      | null             | 1             | 0              | null                    | 2        | 2     | 3            | 1            | master          | master      | 21ef3959cb995307e97c5c76f7677ab13a3ea88a911999d69f2ca3033b70 | 0                     | 0          |                  | 0         | 1752264162  | 0    |
|    |      |        |                  |               |                |                         |          |       |              |              |                 |             | 28ab                                                         |                       |            |                  |           |             |      |
+----+------+--------+------------------+---------------+----------------+-------------------------+----------+-------+--------------+--------------+-----------------+-------------+--------------------------------------------------------------+-----------------------+------------+------------------+-----------+-------------+------+
| 3  | 0    | 2      | null             | 1             | 0              | null                    | 3        | 3     | 1            | 1            | test/topic_here | master      | 21ef3959cb995307e97c5c76f7677ab13a3ea88a911999d69f2ca3033b70 | 0                     | 0          |                  | 0         | 1752424365  | 1    |
|    |      |        |                  |               |                |                         |          |       |              |              |                 |             | 28ab                                                         |                       |            |                  |           |             |      |
+----+------+--------+------------------+---------------+----------------+-------------------------+----------+-------+--------------+--------------+-----------------+-------------+--------------------------------------------------------------+-----------------------+------------+------------------+-----------+-------------+------+

Related to: go-gitea#33883
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 17, 2025
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code labels Jul 17, 2025
@AdamMajer
Copy link
Contributor Author

The purpose here is to disassociate the source branch from the PR and one way of doing this is via an AGit PR.

The scenario in question is that we have multiple tracking branches across repositories. We can submit from one branch to another, but the PR must not get automatically advanced as the source tracking branch is updated. One way to accomplish this is to use an AGit style PR. If the original PR is Github style, we can disassociate from the source tracking branch by converting it to AGit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants