Skip to content

Conversation

JakobDev
Copy link
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

head = "{}:{}".format(repo.owner.login, change.branch)
pr_message = ((change.body or "") + "\n\n" + DISCLAIMER).strip()

if branch_title:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or something like:

Suggested change
if branch_title:
if base not in ('master', 'beta'):

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personal prefer a argument, so the User can decide if he want it or not. There may be someone who uses f-e-d-c on the master and the beta branch and want to know, if a PR goes against the master or the beta branch.

@gasinvein
Copy link
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

change: CommittedChanges,
manifest_checker: manifest.ManifestChecker = None,
fork: t.Optional[bool] = None,
branch_title: t.Optional[bool] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
branch_title: t.Optional[bool] = None,
branch_title: bool = False,

@bbhtt
Copy link
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
Contributor Author

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

@bbhtt
Copy link
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
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
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.

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