Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement a trigger system #28
As of now Package Drone's channels can be enhanced by using "aspects". These alter the state of a channel but work more like a passive element during the whole process.
Sometimes it is necessary to execute actions triggered be certain conditions. These actions are executed at a specific time and do not necessarily alter the state of a channel.
A trigger is more like "if this, then that". While an aspect Always transforms the channel in the same way, there is no operation involved.
There are two classic examples in Package Drone which failed this idea. The "Tycho Cleaner" and the "Cleanup" aspect. Those were implemented as an aspect (due to the missing trigger system back then) but did not produce the same channel state when removing and re-adding those aspects.
Also can aspects only be added once to a channel, leading to the trouble of only having a single cleanup configuration (see also issue ctron/package-drone#94).
There should be a trigger system which allows: