Enables for example a maintainer to run a daily build of their project,
whether a change has been made or not. The rebuild parameter is made
fully optional.
Contribution Type: new feature
This pull request affects the following areas:
[x] Front-End
[ ] Builder
[ ] Build Plugins
In raising this pull request, I confirm the following (please check boxes):
[x] I have checked that another pull request for this purpose does not exist.
[x] I have considered, and confirmed that this submission will be valuable to others.
[ ] I have created or updated the relevant documentation for this change on the PHPCI Wiki.
[ ] Do the PHPCI tests pass?
Detailed description of change:
An optional parameter rebuild has been added to WebhookController::createBuild. This allows a maintainer to use the git webhook to start a rebuild of their project. At our project we want an automatic daily build of the project and this feature supports it.
In WebhookController::git the parameter rebuild can be read, where it is false if no parameter has been given. The parameter $rebuild is then passed to WebhookController::createBuild. There the parameter $rebuild is also made optional and false by default, such that other calls to createBuild are still supported.
Enables for example a maintainer to run a daily build of their project, whether a change has been made or not. The rebuild parameter is made fully optional.
Contribution Type: new feature
This pull request affects the following areas:
In raising this pull request, I confirm the following (please check boxes):
Detailed description of change:
An optional parameter
rebuild
has been added toWebhookController::createBuild
. This allows a maintainer to use the git webhook to start a rebuild of their project. At our project we want an automatic daily build of the project and this feature supports it.In
WebhookController::git
the parameterrebuild
can be read, where it isfalse
if no parameter has been given. The parameter$rebuild
is then passed toWebhookController::createBuild
. There the parameter$rebuild
is also made optional andfalse
by default, such that other calls tocreateBuild
are still supported.