#447 fedpkg update should detect the bug number in the git commit when using rpmautospec
Closed: Fixed 2 years ago by onosek. Opened 2 years ago by eclipseo.

With transitioning to rpmautospec, we don't have the bug numbers in the changelog anymore so it can't be fetched for fedpkg update. Instead it has to be specified manually with the --bugs parameter. It would be great if it could be fetched from the git commit instead.


I looked at the issue. When rpmautospec is enabled, a commit message is processed and searched for bugs - but only the last one. But sometimes the message doesn't contain bug numbers. Especially after merges, the last commit message looks like this:

Merge remote-tracking branch 'origin/rawhide' into f32

In this case, we should look at older messages. Do you have any example where my assumption is not rigt?
We can do some heuristics: look at older messages and search them for bugs. But question is, whether this behaviour is always desirable. Otherwise, it would need an additional command-line argument.

Metadata Update from @onosek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Metadata Update from @onosek:
- Issue set to the milestone: 1.41

2 years ago

Login to comment on this ticket.

Metadata