@@ -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'
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user