How does Peril trigger an installation event?
- Dominant language
- TypeScript
- Stars
- 460
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
Hi, team!
I'm trying to use the `scheduler` feature, but when I log the `installations` variable here:
https://github.com/danger/peril/blob/ecd41ac044329755bc7a2ce3a8ab0e9da7eab2da/source/scheduler/startRepeatedTaskScheduler.ts#L11-L26
I get `[ null ]`, which I'm assuming means an installation was never created.
Looking at how installations are created, I see this:
https://github.com/danger/peril/blob/2591f3db7c65d648ca0757c96e85a27f7e6b2a4c/source/plugins/installationLifeCycle.ts#L16-L22
But I'm not super clear on how to send the `created` action to get an installation created. Did I miss a step somewhere, or is there a doc that explains how to manually trigger an installation creation?
It would also be great to get an idea of the general lifecycle: should the installation be checked/created on every Peril run, or only during a very specific phase?
Thanks for all your help!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.