Commit Graph

4087 Commits

Author SHA1 Message Date
Johan Haals e39a1d5d37 Add fetch helper tests
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:01 +01:00
Johan Haals ab6d9de923 Add action tests
Co-authored-by: Ben Lambert <ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:01 +01:00
Fredrik Adelöw edcbcff106 make the template card grid even and nice
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:00 +01:00
blam ed4941accb test: added the tests for bitbucket publisher
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:00 +01:00
blam e787b088b8 tests: added test suite for gitlab publisher action
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:00 +01:00
blam c630401572 tests: added some more tests for the github publish action
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:00 +01:00
blam ebab16aa30 chore: added some tests for publish:azure action
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:00 +01:00
Johan Haals db471b6182 chore: lowercase 'integration'
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:00 +01:00
Johan Haals b92e43c3bb chore: use path.resolve instead of resolve
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:00 +01:00
Johan Haals e8867ba6aa chore: fix input errors
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:59 +01:00
Johan Haals 3efba84528 Add support for passing actions into router
Co-authored-by: blam<ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:59 +01:00
Johan Haals 807cf164af Wrap actions in createTemplateAction
Rename paramers to input

Co-authored-by: Ben Lambert <ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:59 +01:00
Johan Haals 3a54420fa1 chore: remove output object
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:59 +01:00
Johan Haals ec5c3b82bf Convert repoVisibility into template parameter
Co-authored-by: Ben Lambert <ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:59 +01:00
Johan Haals 664f336c42 Update TemplateAction schema to include input and output
Co-authored-by: Ben Lambert <ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:59 +01:00
Johan Haals b335415fa4 Rename urlReader to reader
Co-authored-by: Ben Lambert <ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:58 +01:00
Johan Haals b853e084dc scaffolder: Fix providers
Co-authored-by: Ben Lambert <ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:58 +01:00
blam c19f41494d chore: add to the default router
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:58 +01:00
blam 8c1e321684 feat: porting over the other existing publishers to the new action format
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:58 +01:00
Patrik Oldsberg 20ba3205f0 scaffolder-backend: add action parameter type and schema with validation
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:58 +01:00
Patrik Oldsberg 7e8f2552f6 scaffolder-backend: split builtin actions into multiple modules
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:58 +01:00
Patrik Oldsberg e0c8c6c164 scaffolder-backend: move actions to separate actions dir
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:57 +01:00
Patrik Oldsberg 8b003875a8 scaffolder,scaffolder-backend: fix tests, lint and type issues
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:57 +01:00
blam 6fa98f941b feat: new actions work nicely and publish to github as expected
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:57 +01:00
Patrik Oldsberg a6591ef03f scaffolder-backend: move catalog:register action from legacy to builtin
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:57 +01:00
blam 0d1468a095 chore: remove the storepath picker as it has gone bye-bye
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:57 +01:00
Patrik Oldsberg 6706b360aa scaffolder-backend: added built-in fetch:plain action + separate out fetch logic
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:57 +01:00
blam 12771f5c34 feat: added some nice validation and functionality to the repo picker
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:57 +01:00
Patrik Oldsberg 2f404bd69d scaffolder-backend: added built-in fetch:cookiecutter action
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:56 +01:00
Patrik Oldsberg c50b732b70 scaffolder-backend: add template source baseUrl to action context
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:56 +01:00
Patrik Oldsberg 86fc6a0360 scaffolder-backend: move v1 templater value injection into template converter
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:56 +01:00
Patrik Oldsberg b90767926f scaffolder-backend: remove workspace after task execution is complete
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:56 +01:00
Patrik Oldsberg 0f64c73474 scaffolder-backend: added createTemporaryDirectory to action context
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:56 +01:00
Patrik Oldsberg 459307b81d scaffolder-backend: separate out TemplateActionRegistry and types
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:56 +01:00
blam b2ce7f18c0 feat: added recursive validation for the repository url picker component
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:55 +01:00
blam 59769bad27 feat: starting to add the RepoUrlPicker with integrations config
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:55 +01:00
blam 0d44305a4e chore: commit some more mock sample data
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:55 +01:00
Patrik Oldsberg c4d1cf345d scaffolder-backend: added test template for beta1
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-01 11:53:41 +01:00
Fredrik Adelöw 201d9d5fb0 Merge pull request #4737 from nirga/optional-repo
Made all locations outputted by GithubDiscoveryProcessor optional
2021-03-01 09:31:06 +01:00
Nir Gazit 80475c9af2 Fixed typo 2021-03-01 10:14:52 +02:00
Nir Gazit 2eab0de645 Added comment explaining why emitting optional locations 2021-03-01 09:27:01 +02:00
Nir Gazit ecdd407b1f Made all locations outputted by GithubDiscoveryProcessor optional 2021-03-01 09:19:31 +02:00
Patrik Oldsberg 96ccc8f694 scaffolder-backend: remove support for deprecated publisher configuration 2021-02-27 15:21:49 +01:00
Patrik Oldsberg 35d407f486 Merge pull request #4712 from backstage/dependabot/npm_and_yarn/types/d3-force-2.1.1
chore(deps-dev): bump @types/d3-force from 1.2.1 to 2.1.1
2021-02-27 13:16:07 +01:00
Fredrik Adelöw 98e2b4e20e make the example templates use relative paths 2021-02-26 13:53:03 +01:00
Patrik Oldsberg 5ffb6c57f6 Merge pull request #4700 from backstage/rugvip/opternal
core: implement optional external routes and use to toggle "Create Component" button
2021-02-26 10:41:27 +01:00
dependabot[bot] e16f145dc8 chore(deps-dev): bump @types/d3-force from 1.2.1 to 2.1.1
Bumps [@types/d3-force](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/d3-force) from 1.2.1 to 2.1.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/d3-force)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-26 04:09:36 +00:00
Woody Rousseau d21058c343 Change terminology for builds on cloudbuild 2021-02-25 20:57:46 +01:00
Woody Rousseau b2a5320a4b Use Breadcrumbs from @backstage/core 2021-02-25 20:19:04 +01:00
Patrik Oldsberg 264e204f02 catalog: make the external createComponent route optional, hiding the button if it is not set 2021-02-25 17:39:20 +01:00