From b7377bb8c58db8106c62c6025b7f372bb201f8ea Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 4 Apr 2019 15:05:40 +0200 Subject: [PATCH] Ask the Cockpit Bots to propose updates for NPM modules Copied from starter-kit. Closes #71 --- .tasks | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 .tasks diff --git a/.tasks b/.tasks new file mode 100755 index 000000000..7fdc60d6b --- /dev/null +++ b/.tasks @@ -0,0 +1,16 @@ +#!/bin/sh + +# When run automated, randomize to minimize stampeding herd +if [ -t 0 ]; then + chance=10 +else + chance=$(shuf -i 0-10 -n 1) +fi + +if [ $chance -gt 9 ]; then + # Open issues for things that need doing on a regular basis + bots/npm-trigger +fi + +# Find those issues and propose to do them +bots/issue-scan