- Comments: #177
- Proposed by: @lotas
Allow to skip running tasks for certain commits containing [ci skip]
/[skip ci]
keyword.
This will allow to save computing resources and give more flexibility for the Taskcluster users on Github. Not all commits require tasks to be run, for example, updating README. All major CI platforms provide this functionality.
This will be implemented in the webhook API handler. Depending on the .taskcluster.yml
configuration, tasks could be created for both push
and pull-request
events, so we'll have to do those checks on both.
For the push event, we will check if the head commit includes one of the [ci skip]
, [skip ci]
keywords in its message. If message is found, this webhook event will be ignored. No messages will be published to the rabbitmq exchange, so no tasks will be started from this event.
If push consists of multiple commits, we would only check the head or the latest one.
To prevent whole pull request from running tasks, we will check if its title contains [ci skip]
, [skip ci]
keywords.
In this case, API handler will stop processing pull request event and will not publsh any event to the exchange. No tasks will be generated.