Skip to content

Commit

Permalink
Add github.autoAlias flag to now.json (#34)
Browse files Browse the repository at this point in the history
This flag will stop aliasing automatically on the default branch.
  • Loading branch information
arunoda authored Sep 12, 2018
1 parent 44a6f54 commit 7de539b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deployment/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ module.exports = {
},
aliasing: {
type: 'boolean'
},
autoAlias: {
type: 'boolean'
}
},
additionalProperties: false
Expand Down
9 changes: 9 additions & 0 deletions test/deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@ exports.test_github_aliasing = () => {
assert.equal(isValid, true);
};

exports.test_github_auto_alias = () => {
const isValid = ajv.validate(deploymentConfigSchema, {
github: {
autoAlias: false
}
});
assert.equal(isValid, true);
};

exports.test_github_additional_field = () => {
const isValid = ajv.validate(deploymentConfigSchema, {
github: {
Expand Down

0 comments on commit 7de539b

Please sign in to comment.