Mike Lewis
56b61c2bc0
scaffolder: prefix input values in fetch:template templates
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-07 11:26:00 +01:00
Mike Lewis
51513c6420
scaffolder: fix use of path.join in fetch:template tests
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-07 11:20:10 +01:00
Mike Lewis
886844aa30
scaffolder: platform-agnostic path joining in fetch:template test suite
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-07 11:00:14 +01:00
Mike Lewis
b40370272b
scaffolder: remove unused import in fetch:template
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 15:42:22 +01:00
Mike Lewis
c22fc45ffa
scaffolder: use resolveSafeChildPath in fetch:template
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 15:30:04 +01:00
Mike Lewis
9d759702b1
docs: update docs to refer to new fetch:template action
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 15:07:37 +01:00
Himanshu Mishra
6aeb2b93de
fetch:template - test binary files are copied over
...
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-07-06 15:48:14 +02:00
Himanshu Mishra
f6eff971cb
fetch:template - rename isTemplated to shouldCopyWithoutRender
...
(fix logging bug) and add test todo
Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com >
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-07-06 14:51:58 +02:00
Himanshu Mishra
5f7e7db19d
fetch:template - binary files should be copied to output path as-is
...
Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com >
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-07-06 14:47:53 +02:00
Himanshu Mishra
a8c83700eb
fetch:template - skip running templater on binary files
...
Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com >
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-07-06 13:51:59 +02:00
Mike Lewis
ef07bce298
scaffolder: improve logging in fetch:template
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:16:59 +02:00
Mike Lewis
b3583b4108
scaffolder: move @types/nunjucks to devDeps
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:16:59 +02:00
Mike Lewis
b4680036b6
scaffolder: adjust case of cookieCutterCompat flag in fetch:template
...
Realized that `cookiecutter` is more idiomatic than `cookieCutter`,
so renamed the `cookieCutterCompat` flag on the new `fetch:template`
action to `cookiecutterCompat`.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:16:59 +02:00
Mike Lewis
ab61778b87
scaffolder: remove fetch:template extensions todo
...
cf. https://github.com/backstage/backstage/pull/6322/commits/944fda210ea807f52ece3272736b090ecd1a3a57#r663007257
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:16:59 +02:00
Mike Lewis
a26bc32032
scaffolder: update api-report.md
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:16:54 +02:00
Mike Lewis
a8ded61923
scaffolder: add cookiecutter compat mode to fetch:template
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:12:58 +02:00
Mike Lewis
9fba3e22b1
scaffolder: add test suite for fetch:template
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:12:58 +02:00
Mike Lewis
5144e7617d
scaffolder: input type from fetch:template action factory
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:12:58 +02:00
Mike Lewis
1caf2a24f4
scaffolder: add compat TODO
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:12:58 +02:00
Mike Lewis
161e9e659b
scaffolder: create empty directories in fetch:template action
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:12:58 +02:00
Mike Lewis
cc8cf9e89c
scaffolder: add support for copyWithoutRender to fetch:template
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:12:58 +02:00
Mike Lewis
cc43a3135e
scaffolder: stop ignoring dotfiles in template directories
...
globby ignores files/directories starting with a dot by default, which
we don't want.
cf. https://github.com/mrmlnc/fast-glob#dot
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:12:58 +02:00
Himanshu Mishra
3fc8f9ff5b
scaffolder: add some explanations and todos on nunjucks action
...
Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com >
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-07-06 11:12:57 +02:00
Himanshu Mishra
333db5f4dd
scaffolder: fix templating all files in sub directories for nunjucks action
...
Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com >
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-07-06 11:12:57 +02:00
Mike Lewis
01e13e173d
Scaffolder: add some todos and comments to fetch:template action
...
Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net >
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-07-06 11:12:57 +02:00
blam
9b3c9c16d5
chore: updating stuff
...
Signed-off-by: blam <ben@blam.sh >
2021-07-06 11:12:57 +02:00
blam
156fefcd82
sample templater
...
Signed-off-by: blam <ben@blam.sh >
2021-07-06 11:12:57 +02:00
Ben Lambert
8fb349968a
Merge pull request #6340 from andreafalzetti/scaffolder-fs-steps
...
Scaffolder - Filesystem built-in actions
2021-07-05 20:32:20 +02:00
Ben Lambert
2666fe56da
Merge pull request #6336 from shoukoo/add-default-branch
...
feat: add default branch property for publish GitLab, Bitbucket and Azure actions
2021-07-05 18:09:01 +02:00
Andrea Falzetti
c93fb2c93d
docs(scaffolder): update docs
...
Signed-off-by: Andrea Falzetti <afalzetti@gmail.com >
2021-07-05 16:03:45 +01:00
Andrea Falzetti
00f590ad53
feat(scaffolder): add description and tests for directories
...
Signed-off-by: Andrea Falzetti <afalzetti@gmail.com >
2021-07-05 14:13:24 +01:00
Andrea Falzetti
62c2f10f7d
feat(scaffolder): add fs:delete custom step
...
Signed-off-by: Andrea Falzetti <afalzetti@gmail.com >
2021-07-05 13:27:19 +01:00
shoukoo
73195b6e65
feat:add default branch prop for publish:azure action
...
Signed-off-by: shoukoo <shoukoo.koike@gmail.com >
2021-07-04 08:59:14 +10:00
shoukoo
330f2ac32d
feat:add default branch prop for publish:bitbucket action
...
Signed-off-by: shoukoo <shoukoo.koike@gmail.com >
2021-07-04 08:52:48 +10:00
shoukoo
76fc5e29c9
feat:add default branch prop for publish:gitlab action
...
Signed-off-by: shoukoo <shoukoo.koike@gmail.com >
2021-07-04 08:36:51 +10:00
Eugene Sh
253136fba7
Make branch protection attempt less restrictive
...
In case if something wrong happens along the way when trying to apply protection of a newly created branch - log error, instead of throwing an it, making scaffolder exit with non-zero exit code.
This one addresses the issue #6330
Signed-off-by: Eugene S <jh.sh@me.com >
2021-07-02 22:17:32 +03:00
Ben Lambert
f8a93ec1ae
Merge pull request #6290 from backstage/dependabot/npm_and_yarn/fs-extra-10.0.0
...
chore(deps): bump fs-extra from 9.1.0 to 10.0.0
2021-07-02 10:33:59 +02:00
Ben Lambert
b919556807
Merge pull request #6195 from shoukoo/shoukoo.add-default-branch
...
feat: add default branch prop for publish:github action
2021-07-02 10:33:24 +02:00
dependabot[bot]
613e46d234
chore(deps): bump fs-extra from 9.1.0 to 10.0.0
...
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra ) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases )
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/9.1.0...10.0.0 )
---
updated-dependencies:
- dependency-name: fs-extra
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-01 11:29:50 +00:00
github-actions[bot]
6e937b9fa6
Version Packages
2021-07-01 09:06:13 +00:00
Hammar Johan
13bf0f3867
Remove autofocus for the description field
...
Signed-off-by: Hammar Johan <johan.hammar@volvofinans.se >
2021-06-30 11:56:39 +02:00
shoukoo
c2db794f5a
feat: add default branch prop for publish:github
...
Signed-off-by: shoukoo <shoukoo.koike@gmail.com >
2021-06-30 19:39:05 +10:00
Patrik Oldsberg
ab5cc376fa
backend-common,cli-common: new utilites for safely resolving child paths
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-06-28 22:35:21 +02:00
Fredrik Adelöw
1627daac2b
Fix catalog:write on windows systems
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-06-24 12:52:46 +02:00
github-actions[bot]
5a64fe7ea5
Version Packages
2021-06-24 09:58:38 +00:00
Fredrik Adelöw
8f40136c17
Merge pull request #6068 from angeliski/add-action-write-catalog
...
feat:created a action to write a catalog-info.yml file
2021-06-24 11:52:00 +02:00
dependabot[bot]
d3b6c6c12a
chore(deps): bump msw from 0.21.2 to 0.29.0
...
Bumps [msw](https://github.com/mswjs/msw ) from 0.21.2 to 0.29.0.
- [Release notes](https://github.com/mswjs/msw/releases )
- [Changelog](https://github.com/mswjs/msw/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mswjs/msw/compare/v0.21.2...v0.29.0 )
---
updated-dependencies:
- dependency-name: msw
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-06-23 04:45:44 +00:00
Fredrik Adelöw
a88073c29a
Update copyright headers
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-06-18 20:26:42 +02:00
Rogerio Angeliski
b844817bc9
docs: added generated files
...
Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com >
2021-06-18 10:56:24 -03:00
Dominik Henneke
c18a3c2ae0
Correctly recognize whether the cookiecutter command exists
...
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com >
2021-06-18 15:43:19 +02:00