PHP 클래스 Liip\RMT\Changelog\Formatter\SemanticChangelogFormatter

Format a changelog file in a sementic style. Here is an example: VERSION 1 MAJOR TITLE ====================== Version 1.1 - Minor Title 08/11/1980 12:34 1.1.1 patch comment ada96f3 commit msg 2eb6fae commit msg 08/11/1980 03:56 1.1.0 initial release' 2eb6fae commit msg Version 1.0 - Minor Title 08/11/1980 03:56 1.0.0 initial release' 2eb6fae commit msg VERSION 0 BETA =============== Version 0.9 - Minor Title 08/11/1980 12:34 0.9.1 patch comment ada96f3 commit msg 2eb6fae commit msg 08/11/1980 03:56 0.9.0 initial release' 2eb6fae commit msg
파일 보기 프로젝트 열기: liip/rmt

공개 메소드들

메소드 설명
getLastVersionRegex ( )
updateExistingLines ( $lines, $version, $comment, $options )

보호된 메소드들

메소드 설명
findPositionToInsert ( array $lines, string $type ) : integer Return the position where to insert new lines according to the type of insertion
getFormattedDate ( )
getNewLines ( string $type, string $version, string $comment ) : array Return the new formatted lines for the given variables

메소드 상세

findPositionToInsert() 보호된 메소드

Return the position where to insert new lines according to the type of insertion
protected findPositionToInsert ( array $lines, string $type ) : integer
$lines array Existing lines
$type string Release type
리턴 integer The position where to insert

getFormattedDate() 보호된 메소드

protected getFormattedDate ( )

getLastVersionRegex() 공개 메소드

public getLastVersionRegex ( )

getNewLines() 보호된 메소드

Return the new formatted lines for the given variables
protected getNewLines ( string $type, string $version, string $comment ) : array
$type string The version type, could be major, minor, patch
$version string The new version number
$comment string The user comment
리턴 array An array of new lines

updateExistingLines() 공개 메소드

public updateExistingLines ( $lines, $version, $comment, $options )