feat(release): support distribution tags and custom release user info#292
feat(release): support distribution tags and custom release user info#292
Conversation
| const fs = require('fs') | ||
| const chalk = require('chalk') |
| }) => { | ||
| for (const language in translations) { | ||
| if (translations.hasOwnProperty(language)) { | ||
| if (Object.prototype.hasOwnProperty.call(translations, language)) { |
There was a problem hiding this comment.
Lint rule: no access to prototype built-ins
| const filePathToDelete = path.join(inDir, file) | ||
| const filePathToDelete = file |
There was a problem hiding this comment.
Lint rule: no undefined variables
| } | ||
|
|
||
| const rest = await tryCatchAsync( | ||
| const res = await tryCatchAsync( |
There was a problem hiding this comment.
Lint rule: no unused variables
Also a bug where res is accessed later, but the variable is named rest.
| await Promise.all( | ||
| clusters.map(async cluster => { | ||
| const status = await getStatus(cluster) | ||
| cluster.status = formatStatus(status) |
There was a problem hiding this comment.
Lint rule: possible race condition (mutating source while looping)
| } | ||
| } | ||
|
|
||
| const restoreFromFile = async ({ cacheLocation, dbFile, dbVersion, name }) => { |
There was a problem hiding this comment.
Lint rule: no unused variables
| const { reporter, chalk } = require('@dhis2/cli-helpers-engine') | ||
|
|
||
| const buildApp = async ({ name, ...argv }) => { | ||
| const buildApp = async () => { |
There was a problem hiding this comment.
Lint rule: no unused variables
| type = type.toLowerCase() | ||
| switch (type) { | ||
| case 'cli': | ||
| case 'cli': { |
There was a problem hiding this comment.
Lint rule: lexical scope needed to use const in case
| const command = { | ||
| command: 'create <type> [name]', | ||
| desc: 'Create various DHIS2 components from templates', | ||
| builder: yargs => { |
There was a problem hiding this comment.
Lint rule: no unused variables
| @@ -1,4 +1,4 @@ | |||
| const run = ({ _, $0, raw, ...argv }) => { | |||
| const run = ({ raw, ...argv }) => { | |||
There was a problem hiding this comment.
Lint rule: no unused variables
| const SemanticReleaseError = require('@semantic-release/error') | ||
|
|
||
| const analyzeCommits = (config = {}, context) => { | ||
| const analyzeCommits = (config, context) => { |
There was a problem hiding this comment.
Lint rule: no unused variables
| } | ||
|
|
||
| validPackages.forEach(package => { | ||
| package.label = package.json.name || '<unnamed>' |
There was a problem hiding this comment.
Lint rule: package is a reserved keyword
| } | ||
|
|
||
| const replaceDependencies = (pkg, listNames, packageNames, version) => { | ||
| const replaceDependencies = ({ pkg, listNames, packageNames, version }) => { |
There was a problem hiding this comment.
Lint rule: max-params > 3
|
Added comments to the lint rule resolutions. |
|
@varl this looks great!! (and thanks for fixing all my lint bugs) I'll take a deeper look at the code, but allowing |
|
We could merge this to |
|
I want to see if it works, so |
|
🎉 This PR is included in version 2.9.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
…#292) * feat(release): support distribution tags and custom release user info * ci(actions): add lint and test * chore(lint): resolve long-standing lint issues * ci(actions): update workflow templates Co-authored-by: Austin McGee <947888+amcgee@users.noreply.github.com>
# [2.9.0](v2.8.1...v2.9.0) (2020-03-15) ### Bug Fixes * **release:** cannot use squash/rebase when using dist channels in semantic-release ([1f994fb](1f994fb)) * release with the internal changes, not the npm package ([2e17226](2e17226)) ### Features * **release:** support distribution tags and custom release user info ([#292](#292)) ([17496d1](17496d1))
# [2.9.0](v2.8.1...v2.9.0) (2020-03-15) ### Bug Fixes * **release:** cannot use squash/rebase when using dist channels in semantic-release ([1f994fb](1f994fb)) * **release:** fix the changelog ([f6ca488](f6ca488)) * release with the internal changes, not the npm package ([2e17226](2e17226)) ### Features * **release:** support distribution tags and custom release user info ([#292](#292)) ([17496d1](17496d1))
master,next,next-major,N.x,N.x.x,N.N.x,beta,alphanextpublishes on the dist-tag@next, more info here: https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/distribution-channels.mdN.xwhereNis a number. Thexis literal, e.g. to release a patch on version 1 create the branch1.x, for1.2create1.2.x, etc.betaandalphabranches will be marked asprerelease.GIT_*variables to be configured through the environment, previously they were hardcoded.