chore: fix code review comments

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-09-30 17:16:08 +02:00
parent a61204bc4b
commit ca9c69f3a8
2 changed files with 2 additions and 3 deletions
@@ -14,7 +14,6 @@
* limitations under the License.
*/
import { ScmIntegrations } from '@backstage/integration';
import { TemplateActionRegistry } from '..';
import {
Task,
TaskSpec,
@@ -33,6 +32,7 @@ import { PassThrough } from 'stream';
import { isTruthy } from './helper';
import { validate as validateJsonSchema } from 'jsonschema';
import { parseRepoUrl } from '../actions/builtin/publish/util';
import { TemplateActionRegistry } from '../actions';
type Options = {
workingDirectory: string;
@@ -200,8 +200,7 @@ export async function createRouter(
}
const baseUrl = getEntityBaseUrl(template);
// TODO: need to make sure that the TaskSpec is the right format here.
// If it's beta2 use values, beta3 uses parameters to clear that up.
taskSpec =
template.apiVersion === 'backstage.io/v1beta2'
? {