[PR #4583] [MERGED] Fix failure on creating pull request with assignees (#4419) #17425

Closed
opened 2025-11-02 13:19:33 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4583
Author: @SagePtr
Created: 8/1/2018
Status: Merged
Merged: 8/16/2018
Merged by: @lunny

Base: masterHead: issue4419


📝 Commits (3)

  • cf5e259 Fix failure on creating pull request with assignees (#4419)
  • 6a09222 Merge branch 'master' into issue4419
  • b40c9e2 Merge branch 'master' into issue4419

📊 Changes

2 files changed (+7 additions, -3 deletions)

View changed files

📝 models/issue.go (+1 -1)
📝 models/issue_assignees.go (+6 -2)

📄 Description

Fixes #4419

If pull request is in the middle of creation, it's impossible to call 'pull_request' webhook with action 'assign' in changeAssignee function. Now it's just skipped.

I don't know if this extra webhooks should be called after pull request is created, because 'pull_request' webhook with action 'opened' is called anyway and it already contains assignees section. For now additional assign webhooks are just skipped.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4583 **Author:** [@SagePtr](https://github.com/SagePtr) **Created:** 8/1/2018 **Status:** ✅ Merged **Merged:** 8/16/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `issue4419` --- ### 📝 Commits (3) - [`cf5e259`](https://github.com/go-gitea/gitea/commit/cf5e25968ff8541dadc5a07aefe4bb835513cab6) Fix failure on creating pull request with assignees (#4419) - [`6a09222`](https://github.com/go-gitea/gitea/commit/6a092225122fbe5572646ad9d8d2f1b53a2a1f1a) Merge branch 'master' into issue4419 - [`b40c9e2`](https://github.com/go-gitea/gitea/commit/b40c9e29e6eec2bebb4daebed41f8fcb108c2d61) Merge branch 'master' into issue4419 ### 📊 Changes **2 files changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `models/issue.go` (+1 -1) 📝 `models/issue_assignees.go` (+6 -2) </details> ### 📄 Description Fixes #4419 If pull request is in the middle of creation, it's impossible to call 'pull_request' webhook with action 'assign' in changeAssignee function. Now it's just skipped. I don't know if this extra webhooks should be called after pull request is created, because 'pull_request' webhook with action 'opened' is called anyway and it already contains assignees section. For now additional assign webhooks are just skipped. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 13:19:33 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17425