2017-04-21 52 views

回答

0

我可以設法啓用/禁用全部或部分(位於同一組織)存儲庫中的問題跟蹤功能。爲此,我使用SQLiteStudio並在SQLite數據庫上執行以下SQL命令:

-- Disable issue tracking of all repositories 
UPDATE repository SET enable_issues = 0 WHERE enable_issues = 1; 

-- Enable issue tracking of all repositories 
UPDATE repository SET enable_issues = 1 WHERE enable_issues = 0; 

-- Disable issue tracking of all repositories under TESTPROJECT organization 
UPDATE repository SET enable_issues = 0 WHERE owner_id IN (SELECT id FROM user WHERE name='TESTPROJECT'); 

-- Enable issue tracking of all repositories under TESTPROJECT organization 
UPDATE repository SET enable_issues = 1 WHERE owner_id IN (SELECT id FROM user WHERE name='TESTPROJECT');