Skip to content

Show base branch in PR title#332

Merged
bbhtt merged 2 commits intoflathub-infra:masterfrom
JakobDev:branchpr
Apr 23, 2026
Merged

Show base branch in PR title#332
bbhtt merged 2 commits intoflathub-infra:masterfrom
JakobDev:branchpr

Conversation

@JakobDev
Copy link
Copy Markdown
Contributor

f-e-d-c is currently used by com.riverbankcomputing.PyQt.BaseApp on 3 different branches. Having the branch (e.g. 5.15-22.08 or 6.3) would make it possible to see which branch is targeted directly in the Notification or the PR list.

Note: This is currently not tested

Comment thread src/main.py Outdated
@gasinvein
Copy link
Copy Markdown
Collaborator

gasinvein commented Oct 13, 2022

I wonder if it could be more generic - instead of a boolean option determining whether or not to put branch name into PR title, use a string option with PR title template, with $updated as the default, and ability to set it to something like [$branch] $updated

Comment thread src/main.py Outdated
@bbhtt
Copy link
Copy Markdown
Contributor

bbhtt commented May 13, 2025

Is this still needed? Instead of having branch in the title, labels would be better I think. fedc as of yesterday supports setting PR labels. Also the base branch is included in the branches it creates

@JakobDev
Copy link
Copy Markdown
Contributor Author

I'm already using labels. The problem with labels is that they don't show up in Notifications.

@bbhtt
Copy link
Copy Markdown
Contributor

bbhtt commented May 16, 2025

Ok so can you rebase and fix the conflict? IMO these minor things don't need be an argument and can be added by default to the title but if you prefer then it's ok.

@JakobDev
Copy link
Copy Markdown
Contributor Author

JakobDev commented Jun 2, 2025

can be added by default to the title

So just add it to the title when the branch is not master?

@bbhtt
Copy link
Copy Markdown
Contributor

bbhtt commented Jun 3, 2025

You can add it even when it is master. There is no reason to special case a single branch.

bbhtt added 2 commits April 23, 2026 08:43
If it is different than the origin repo's default branch
The order of the arguments changed in PyGitHub's current version
so newer documentation is confusing to look at.

This was the order used in version closest to docker image (1.55)

https://pygithub.readthedocs.io/en/v1.58.0/github_objects/Repository.html?highlight=create_pull#github.Repository.Repository.create_pull
@bbhtt bbhtt enabled auto-merge (rebase) April 23, 2026 03:23
@bbhtt bbhtt changed the title Add option to show branch in PR title Show base branch in PR title Apr 23, 2026
@bbhtt bbhtt merged commit 028eba8 into flathub-infra:master Apr 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants