Browse Source

FIX code bug

tags/v3.2.0
jasder 4 years ago
parent
commit
a825271a36
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      app/models/pull_request.rb

+ 4
- 2
app/models/pull_request.rb View File

@@ -54,8 +54,10 @@ class PullRequest < ApplicationRecord
Project.find_by(id: self.fork_project_id)
end

def bind_gitea_pull_request!(gitea_pull_number)
update_column(:gitea_number, gitea_pull_number)
def bind_gitea_pull_request!(gitea_pull_number, gitea_pull_id)
update_columns(
gitea_number: gitea_pull_number,
gitea_id: gitea_pull_id)
end

def merge!


Loading…
Cancel
Save