-
-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance pipeline message and pr title #3421
base: main
Are you sure you want to change the base?
Conversation
Actually the |
This also change webui |
I think the first option is the best if we then show the commit message as pipeline message. Otherwise it's duplicated. See e.g. the release PRs in your example: The ":tada: Release v2.7.0" is shown on top and in the message below. How would this work with very long PR titles? And is this info shown in the pipeline detail view? |
Okay then I would do it like:
Events:
We might find some better names for |
Thats not 100% correct, tag and release do have dedicated title information |
Pull also if the forge driver is implemented corectly ... |
Plan is to remove them. Not really helpful to store that information twice (see screenshot). |
… into pr/6543/3421
Sender: hook.Sender.UserName, | ||
Email: hook.Sender.Email, | ||
PRTitleDescription: hook.PullRequest.Title + "\n" + hook.PullRequest.Body, | ||
Message: "", // TODO: get message from last commit to pr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does someone know if we can this data from the webhook somehow, or do we need to query the api again?
Deployment of preview was successful: https://woodpecker-ci-woodpecker-pr-3421.surge.sh |
I don't think we should store the PR description, the title is enough |
var message string | ||
if len(hook.Commits) > 0 { | ||
message = hook.Commits[0].Message | ||
if len(hook.Commits) == 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty if
Changes