tf / redmine_merge_request_links

Display links to associated Gitlab merge requests and GitHub pull requests on Redmine's issue page.
https://www.redmine.org/plugins/redmine_merge_request_links
MIT License
35 stars 26 forks source link

Redmine Pull request disappears #27

Open calvu opened 4 years ago

calvu commented 4 years ago

Hello,

My setup:

Problem: Creating a pullrequest with the ticket number "#1234" within Gitea creates an entry in the Redmine Ticket. As soon as the pullrequest is closed, by Merge or Close, the entry disappears in the ticket. I have already looked at the Redmine DB and noticed the following behavior.

Greetings, Peter

tf commented 4 years ago

Maybe the webhook sent on close does not contain the description/body? Every time that is changed, the linked merge requests are updated.

I'm not using the Gitea integration myself. So I can only guess. Maybe @saitho who developed the adapter has more ideas?

jpraet commented 3 years ago

I am experiencing the same issue. Indeed the body is empty in gitea's PR merged/closed webhook payload.

tf commented 3 years ago

Maybe we can make the Gitea adater only update the description if the corresponding field is present? Happy to accept a PR that adds a test case similar to the existing ones with a webhook payload that represents this case and makes sure.

jpraet commented 3 years ago

It will be fixed on the Gitea side in the upcoming 1.14.3 patch release.