This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
get_clean_message() { | |
egrep -o '^[^#].*' "$1" | |
} | |
# Do not allow empty messages after removing comments | |
[ -z "$(get_clean_message "$1")" ] && { | |
echo >&2 Commit message cannot be empty. | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RunJobAt wait until the Stop() function has been called on the run | |
// or the specified time for the run is after the present time. | |
func (ot *OneTime) RunJobAt(initr models.Initiator, job models.JobSpec) { | |
select { | |
case <-ot.done: | |
case <-ot.Clock.After(initr.Time.DurationFromNow()): | |
if initr.Ran { | |
logger.Error((fmt.Errorf("Job runner: Initiator: %v cannot be run more than once", initr.ID))) | |
return | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# github.com/whatsadebugger/chainlink | |
main_test.go:8:2: use of internal package not allowed | |
FAIL github.com/whatsadebugger/chainlink [setup failed] | |
# github.com/whatsadebugger/chainlink/adapters | |
adapters/adapter_test.go:9:2: use of internal package not allowed | |
FAIL github.com/whatsadebugger/chainlink/adapters [setup failed] | |
# github.com/whatsadebugger/chainlink/cmd | |
cmd/authenticator_test.go:7:2: use of internal package not allowed | |
FAIL github.com/whatsadebugger/chainlink/cmd [setup failed] | |
# github.com/whatsadebugger/chainlink/services |