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.
array Elgg\Project\ChangelogWriter::__construct |
( |
array |
$options = [] | ) |
|
Elgg\Project\ChangelogWriter::__invoke |
( |
| ) |
|
Write the changelog for the current release.
- Returns
- void
Definition at line 59 of file ChangelogWriter.php.
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.
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.
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.
Elgg\Project\ChangelogWriter::formatHeader |
( |
| ) |
|
|
protected |
Elgg\Project\ChangelogWriter::getGitCommits |
( |
array |
$options | ) |
|
|
protected |
Elgg\Project\ChangelogWriter::getGitContributors |
( |
array |
$options = [] | ) |
|
|
protected |
Elgg\Project\ChangelogWriter::getGitTags |
( |
| ) |
|
|
protected |
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.
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.
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.
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.
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.
array Elgg\Project\ChangelogWriter::$commit_types |
|
protected |
array Elgg\Project\ChangelogWriter::$options |
|
protected |
The documentation for this class was generated from the following file: