#!/usr/bin/env php replaceCommentLink(); timeout=0 cid=18091 - 替换完成任务 @Finish task #8. - 替换完成多个任务 @Finish task #1,8,12. - 替换修复bug @Fix bug #3 - 替换修复多个bug @Fix bug #3,5,12 - 替换需求 @Story #1 - 替换多个需求 @Story #1,2,3 */ $repo = new repotest(); $finishTaskComment = 'Finish task#8.'; $finishTaskComment2 = 'Finish task#1,8,12.'; $fixBugComment = 'Fix bug#3'; $fixBugComment2 = 'Fix bug#3,5,12'; $storyComment = 'Story#1'; $storyComment2 = 'Story#1,2,3'; r($repo->replaceCommentLinkTest($finishTaskComment)) && p() && e("Finish task #8."); //替换完成任务 r($repo->replaceCommentLinkTest($finishTaskComment2)) && p() && e("Finish task #1,8,12."); //替换完成多个任务 r($repo->replaceCommentLinkTest($fixBugComment)) && p() && e("Fix bug #3"); //替换修复bug r($repo->replaceCommentLinkTest($fixBugComment2)) && p() && e("Fix bug #3,5,12"); //替换修复多个bug r($repo->replaceCommentLinkTest($storyComment)) && p() && e("Story #1"); //替换需求 r($repo->replaceCommentLinkTest($storyComment2)) && p() && e("Story #1,2,3"); //替换多个需求