Skip to content

Instantly share code, notes, and snippets.

View whatsadebugger's full-sized avatar
💭
🍦

Ahmad Tabbakha whatsadebugger

💭
🍦
View GitHub Profile
@whatsadebugger
whatsadebugger / commit-msg
Created April 19, 2018 13:14
nice script that pulls issue keys from branch and adds them to commit message.
#!/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
// 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
}
# 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