feat: use @semantic-release/github as default for success and fail hooks
				
					
				
			BREAKING CHANGE: `success` and `fail` hooks are now enabled by default
In order to disable the `@semantic-release/github` plugin for the `success` and `fail` hook, the corresponding options have to be set to `false` in the **semantic-release** configuration:
```json
{
  "release": {
    "success": false,
    "fail": false
  }
}
```
Users who do not use the `@semantic-release/github` plugin, should disable it in the `success` and `fail` by setting the corresponding options to `false` or to alternative plugin providing `success` and `fail` hooks.
			
			
This commit is contained in:
		
							parent
							
								
									04f3061bed
								
							
						
					
					
						commit
						9788fcad4e
					
				| @ -171,7 +171,7 @@ See [Plugins configuration](plugins.md#configuration) for more details. | |||||||
| 
 | 
 | ||||||
| Type: `Array`, `String`, `Object` | Type: `Array`, `String`, `Object` | ||||||
| 
 | 
 | ||||||
| Default: `[]` | Default: `['@semantic-release/github']` | ||||||
| 
 | 
 | ||||||
| CLI argument: `--success` | CLI argument: `--success` | ||||||
| 
 | 
 | ||||||
| @ -183,7 +183,7 @@ See [Plugins configuration](plugins.md#configuration) for more details. | |||||||
| 
 | 
 | ||||||
| Type: `Array`, `String`, `Object` | Type: `Array`, `String`, `Object` | ||||||
| 
 | 
 | ||||||
| Default: `[]` | Default: `['@semantic-release/github']` | ||||||
| 
 | 
 | ||||||
| CLI argument: `--fail` | CLI argument: `--fail` | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -47,13 +47,13 @@ module.exports = { | |||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   success: { |   success: { | ||||||
|     default: false, |     default: ['@semantic-release/github'], | ||||||
|     config: { |     config: { | ||||||
|       validator: conf => !conf || (isArray(conf) ? conf : [conf]).every(conf => validatePluginConfig(conf)), |       validator: conf => !conf || (isArray(conf) ? conf : [conf]).every(conf => validatePluginConfig(conf)), | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   fail: { |   fail: { | ||||||
|     default: false, |     default: ['@semantic-release/github'], | ||||||
|     config: { |     config: { | ||||||
|       validator: conf => !conf || (isArray(conf) ? conf : [conf]).every(conf => validatePluginConfig(conf)), |       validator: conf => !conf || (isArray(conf) ? conf : [conf]).every(conf => validatePluginConfig(conf)), | ||||||
|     }, |     }, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user