This file contains 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
blueprint: | |
name: Frigate Notification | |
description: | | |
## Frigate Mobile App Notification | |
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but will update to include actionable notifications allowing you to view the saved clip/snapshot when available, or silence the notification for a configurable amount of time. | |
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1]. | |
### Required entities: |
This file contains 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
/* | |
* Copyright © 2020 Atomist, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
/* | |
* Copyright © 2019 Atomist, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
export const configuration = configure<{}>(async sdm => { | |
// SDM Stuff | |
}, { | |
preProcessors: [ | |
async cfg => { | |
cfg.sdm.repoRefResolver = new CustomBitBucketRepoRefResolver(); | |
return cfg; | |
}, | |
], | |
}); |
This file contains 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
export const hasJenkinsfile: PredicatePushTest = predicatePushTest( | |
"hasJenkinsfile", | |
async p => { | |
const foundNumber = await projectUtils.countFiles(p, "**/Dockerfile"); | |
return foundNumber !== 0; | |
}, | |
); |
This file contains 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
import { | |
DefaultGoalNameGenerator, | |
ExecuteGoal, | |
ExecuteGoalResult, | |
FulfillableGoalDetails, | |
FulfillableGoalWithRegistrations, | |
getGoalDefinitionFrom, | |
Goal, | |
GoalDefinition, | |
GoalInvocation, |
This file contains 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
sdm.addPullRequestListener(async prl => { | |
const repo = await fetchBranchTips( | |
prl.context, | |
{ | |
repo: prl.pullRequest.repo.name, | |
owner: prl.pullRequest.repo.owner, | |
providerId: prl.pullRequest.repo.org.provider.providerId, | |
}, | |
); |
This file contains 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
/* | |
* Copyright © 2019 Atomist, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
function createAxiosRequestConfig(config: AxiosRequestConfig): AxiosRequestConfig { | |
const tunnel = tunneling.httpsOverHttp({ | |
proxy: configurationValue<tunneling.HttpsOverHttpOptions["proxy"]>("sdm.proxy"), | |
}); | |
return { | |
...config, | |
httpsAgent: tunnel, | |
proxy: false, | |
}; |
This file contains 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
fingerprintSupport( | |
fingerprint, | |
[ | |
{ | |
extract: createNpmDepsFingerprints, | |
apply: applyNpmDepsFingerprint, | |
selector: fp => fp.name.startsWith("npm-project-dep"), | |
summary: diffNpmDepsFingerprints, | |
}, | |
{ |
NewerOlder