update two services

This commit is contained in:
zhangxunhui 2023-01-30 14:32:14 +08:00
parent dc486d0a73
commit 744e0eddf8
3 changed files with 3 additions and 4 deletions

View File

@ -263,7 +263,6 @@ class PullRequestsController < ApplicationController
else
# update issue to state 5
issue.update(status_id: 5)
normal_status(1, "合并成功")
end
end
end

View File

@ -22,7 +22,7 @@ class Gitea::Commit::DiffService < Gitea::ClientService
private
def params
Hash.new.merge(token: owner)
Hash.new.merge(token: token)
end
def url

View File

@ -7,7 +7,7 @@ class Gitea::Commit::InfoService < Gitea::ClientService
# repo: 仓库名称/标识
# sha: commit唯一标识
# eg:
# Gitea::Commit::InfoService.call('jasder', 'repo_identifier', 'sha value')
# Gitea::Commit::InfoService.call('jasder', 'repo_identifier', 'sha value', token='gitea token')
def initialize(owner, repo, sha, token=nil)
@owner = owner
@repo = repo
@ -22,7 +22,7 @@ class Gitea::Commit::InfoService < Gitea::ClientService
private
def params
Hash.new.merge(token: owner)
Hash.new.merge(token: token)
end
def url