mirror of
https://github.com/actions/stale.git
synced 2026-01-01 01:07:09 +08:00
Add support to v1 to connect to GHES (#69)
* Bumping actions/github to 2.2.0 for GHES * Husky commit correct node modules
This commit is contained in:
13
node_modules/handlebars/lib/handlebars/helpers/helper-missing.js
generated
vendored
Normal file
13
node_modules/handlebars/lib/handlebars/helpers/helper-missing.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import Exception from '../exception';
|
||||
|
||||
export default function(instance) {
|
||||
instance.registerHelper('helperMissing', function(/* [args, ]options */) {
|
||||
if (arguments.length === 1) {
|
||||
// A missing field in a {{foo}} construct.
|
||||
return undefined;
|
||||
} else {
|
||||
// Someone is actually trying to call something, blow up.
|
||||
throw new Exception('Missing helper: "' + arguments[arguments.length - 1].name + '"');
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user