Browse Source

Merge pull request '新增Pr检测的用户范围判定' (#155) from KingChan/forgeplus:chenjing into standalone_develop

pull/338/head
KingChan 2 years ago
parent
commit
b4723a0488
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/models/glcc_medium_term_examine_material.rb

+ 2
- 2
app/models/glcc_medium_term_examine_material.rb View File

@@ -36,8 +36,8 @@ class GlccMediumTermExamineMaterial < ActiveRecord::Base
unless pull_index == 5
state << 2
end
project = Project.find_by(identifier: url_array[4])
user = User.find_by(login: url_array[3])
project = Project.find_by(identifier: url_array[4], user_id:user.try(:id))
pr = PullRequest.where(project:project, gitea_number:url_array[6])

unless pr.present?


Loading…
Cancel
Save