新增:解绑和更改状态接口

This commit is contained in:
2024-04-18 15:20:19 +08:00
parent eeb0994961
commit 6f458e0e79
4 changed files with 36 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ class Api::V1::Projects::SyncRepositories::CreateService < ApplicationService
active: true,
branch_filter: '*',
http_method: 'POST',
url: "#{Rails.application.config_for(:configuration)['platform_url']}/api/v1/#{project&.owner&.login}/#{project&.identifier}/sync_repositories/sync",
url: "#{Rails.application.config_for(:configuration)['platform_url']}/api/v1/#{project&.owner&.login}/#{project&.identifier}/sync_repositories/sync?sync_direction=1",
content_type: 'json',
type: 'reposync',
events: ["push"]