Helper class to write the changelog during release.
More...
Helper class to write the changelog during release.
- Since
- 5.1
Definition at line 13 of file ChangelogWriter.php.
◆ __construct()
Elgg\Project\ChangelogWriter::__construct |
( |
array |
$options = [] | ) |
|
◆ __invoke()
Elgg\Project\ChangelogWriter::__invoke |
( |
| ) |
|
Write the changelog for the current release.
- Returns
- void
Definition at line 59 of file ChangelogWriter.php.
◆ executeCommand()
Elgg\Project\ChangelogWriter::executeCommand |
( |
string |
$command | ) |
|
|
protected |
Execute a command.
- Parameters
-
string | $command | the command to execute |
- Returns
- null|array
Definition at line 468 of file ChangelogWriter.php.
◆ formatCommits()
Elgg\Project\ChangelogWriter::formatCommits |
( |
array |
$commits | ) |
|
|
protected |
Format the different commits into sections.
- Parameters
-
array | $commits | all the commits |
- Returns
- string
Definition at line 277 of file ChangelogWriter.php.
◆ formatContributors()
Elgg\Project\ChangelogWriter::formatContributors |
( |
array |
$contributors | ) |
|
|
protected |
Format the contributors into a section.
- Parameters
-
array | $contributors | contributors |
- Returns
- string
Definition at line 368 of file ChangelogWriter.php.
◆ formatHeader()
Elgg\Project\ChangelogWriter::formatHeader |
( |
| ) |
|
|
protected |
◆ getGitCommits()
Elgg\Project\ChangelogWriter::getGitCommits |
( |
array |
$options | ) |
|
|
protected |
◆ getGitContributors()
Elgg\Project\ChangelogWriter::getGitContributors |
( |
array |
$options = [] | ) |
|
|
protected |
◆ getGitTags()
Elgg\Project\ChangelogWriter::getGitTags |
( |
| ) |
|
|
protected |
◆ getOption()
Elgg\Project\ChangelogWriter::getOption |
( |
string |
$option, |
|
|
mixed |
$default = null |
|
) |
| |
|
protected |
Get an option.
- Parameters
-
string | $option | name op the option |
mixed | $default | default value |
- Returns
- mixed
Definition at line 489 of file ChangelogWriter.php.
◆ makeCommitLink()
Elgg\Project\ChangelogWriter::makeCommitLink |
( |
array |
$commit | ) |
|
|
protected |
Get a link to a GitHub commit.
- Parameters
-
array | $commit | commit information |
- Returns
- string
Definition at line 411 of file ChangelogWriter.php.
◆ makeIssueLink()
Elgg\Project\ChangelogWriter::makeIssueLink |
( |
int |
$issue_id | ) |
|
|
protected |
Generate a link to a GitHub issue.
- Parameters
-
- Returns
- string
Definition at line 430 of file ChangelogWriter.php.
◆ readNotes()
Elgg\Project\ChangelogWriter::readNotes |
( |
| ) |
|
|
protected |
Read anything in the changelog before the first '' and consider this release notes.
- Returns
- string
Definition at line 88 of file ChangelogWriter.php.
◆ writeChangelog()
Elgg\Project\ChangelogWriter::writeChangelog |
( |
string |
$release_notes | ) |
|
|
protected |
Write the release notes to the changelog.
- Parameters
-
string | $release_notes | release notes |
- Returns
- void
Definition at line 449 of file ChangelogWriter.php.
◆ $commit_types
array Elgg\Project\ChangelogWriter::$commit_types |
|
protected |
Initial value:= [
'feature' => 'Features',
'performance' => 'Performance',
'documentation' => 'Documentation',
'fix' => 'Bug fixes',
'deprecated' => 'Deprecations',
'breaking' => 'Breaking Changes',
'removed' => 'Removed',
]
Definition at line 17 of file ChangelogWriter.php.
◆ $options
array Elgg\Project\ChangelogWriter::$options |
|
protected |
The documentation for this class was generated from the following file: