Commit Graph

217 Commits

Author SHA1 Message Date
Raghunandan 72235dd51e v0.1.1-alpha.22 2020-09-18 15:14:38 +02:00
Raghunandan Balachandran 0e3218b454 Merge pull request #2470 from RoadieHQ/dtuite/send-description-to-git-hub
Send template description to GitHub
2020-09-17 15:17:49 +02:00
David Tuite 2e35f300d0 Mark docs template description as required
In my testing, attempts to create a docs site with no description would
fail with the error:

```
Unable to create file 'component-info.yaml'
Error message: 'collections.OrderedDict object' has no attribute 'description'
```

Better to mark it required than let the user hit the error.
2020-09-17 13:14:15 +01:00
David Tuite 1cb1919f0c Send component description to GitHub
We might as well set the description on the GitHub repo while we're
creating it.
2020-09-17 13:14:12 +01:00
Björn Marschollek 55542797a9 Add GitLab integration for scaffolder
This adds a GitLab integration for the scaffolder backend.

We're introduceing a preparer and a publisher for GitLab so that we can
read templates from GitLab and publish them to a configured GitLab
instance. The two instances don't need to be the same. For instance,
templates could be public on gitlab.com, but the created repos will live
in a hosted GitLab somewhere else.

The publisher gets its own config object in `app-config.yaml` where the
target instance and token can be specified.

The service catalogue defines both `gitlab` and `gitlab/api` as
processors. They are both handled by the same preparer.

Closes #2372
2020-09-17 12:39:05 +02:00
Tim Jacomb 1b45fbc442 Simplify code 2020-09-17 07:25:27 +01:00
Tim Jacomb fcdae603ba Merge branch 'master' into add-access-support 2020-09-17 07:17:12 +01:00
dependabot[bot] e5b79755c0 chore(deps): bump nodegit from 0.26.5 to 0.27.0 (#2454)
Bumps [nodegit](https://github.com/nodegit/nodegit) from 0.26.5 to 0.27.0.
- [Release notes](https://github.com/nodegit/nodegit/releases)
- [Changelog](https://github.com/nodegit/nodegit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodegit/nodegit/compare/v0.26.5...v0.27.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 21:50:53 +02:00
Tim Jacomb fd7809ea34 Merge branch 'master' into add-access-support 2020-09-16 16:02:01 +01:00
Patrik Oldsberg 85a1574e9f Merge pull request #2429 from taras/tm/scaffold-repo-visibility
Add the ability to configure repository visibility via config
2020-09-16 16:52:22 +02:00
Tim Jacomb f93d7a15fc Condense if to else if 2020-09-16 14:36:52 +01:00
Tim Jacomb 7806decbc4 Make access optional 2020-09-16 14:09:54 +01:00
Taras Mankovski f5702ddc8e Add ability to flag user repositories as private 2020-09-16 08:53:18 -04:00
Iain Billett f0143360b7 Fix test schema 2020-09-16 09:02:42 +01:00
Iain Billett cf96d90e62 Fix formatting 2020-09-16 08:44:38 +01:00
Iain Billett ef9117f50a Validate template values on calls to the scaffolder API
Calls to the scaffolder API should use the schema from the template
entity to validate input values.
2020-09-16 08:44:38 +01:00
Taras Mankovski 449b5c3f15 Fix prettier errors 2020-09-15 16:38:38 -04:00
Taras Mankovski 6d3ce75100 Apply requested chanegs 2020-09-15 16:32:17 -04:00
Taras Mankovski 4c0c0bfd50 Add the ability to configure repository visibility via config 2020-09-15 16:29:43 -04:00
Tim Jacomb fdef955570 scaffolder: Add support for granting access on create 2020-09-15 08:38:46 +01:00
Ben Lambert 0597211af1 Merge pull request #2433 from timja/support-user-or-org
scaffolder: Allow user or org, remove hard coded isOrg
2020-09-15 09:17:25 +02:00
David Tuite d36f3bc5d8 Assorted scaffolder form help text improvements (#2467)
* Prompt the user for a description in templates

The text "Description of the component" was a little redundant since the
label already says "Description". This description text hints to the
user why they should bother adding an informative description.

* Inform user about lowercase, url-safe constraint

Create React App scaffolding fails when a name with spaces or other
non-url-safe chars are provided. Instead of making the user wait for a
failure, Backstage should tell them about this constraint up front.
2020-09-15 06:42:13 +02:00
Patrik Oldsberg 3cf20cbad7 remove mock-data scripts 2020-09-12 15:27:27 +02:00
Patrik Oldsberg 75c7a055c1 app-config: use catalog.locations + aggregating location entities 2020-09-12 15:27:26 +02:00
Tim Jacomb c95fd141ae Remove hardcoded isOrg 2020-09-11 22:17:58 +01:00
Fredrik Adelöw bf1f645dd6 Merge pull request #2358 from spotify/dependabot/npm_and_yarn/octokit/rest-18.0.5
chore(deps): bump @octokit/rest from 18.0.0 to 18.0.5
2020-09-09 15:16:36 +02:00
Emma Indal dda2c3bcb6 change label of docs template (#2368) 2020-09-09 15:03:49 +02:00
Fredrik Adelöw f6d5b7e1a4 bump the types too 2020-09-09 14:36:35 +02:00
Stefan Ålund b6fcf99853 Fix typo in gRPC template (#2315) 2020-09-07 15:35:39 +02:00
Patrik Oldsberg 2723fb78d2 scaffolder-backend: fix or skip tests on windows 2020-09-06 14:38:24 +02:00
Patrik Oldsberg 2a68fb8e79 Merge pull request #2295 from spotify/rugvip/pretty
run prettier and add CI check
2020-09-05 21:22:07 +02:00
Emma Indal d1fc52d740 TechDocs: add docs by default to springboot grpc template (#2288)
* add docs by default to springboot grpc template

* delete line from rebase
2020-09-05 20:10:23 +02:00
Patrik Oldsberg b045b166b6 run prettier 2020-09-05 16:37:30 +02:00
Ivan Shmidt b180748b96 fix(github-actions): use only github.com/project-slug annotation 2020-09-04 16:22:51 +02:00
dependabot-preview[bot] 1a6b1d8597 chore(deps-dev): bump @types/nodegit from 0.26.7 to 0.26.8 (#2274)
Bumps [@types/nodegit](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/nodegit) from 0.26.7 to 0.26.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/nodegit)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-04 09:35:01 +02:00
Emma Indal b77a1d6bcb TechDocs: Add docs by default to react ssr template (#2261)
* Add docs by default to react ssr template

* Update plugins/scaffolder-backend/sample-templates/react-ssr-template/{{cookiecutter.component_id}}/docs/index.md

* Update plugins/scaffolder-backend/sample-templates/react-ssr-template/{{cookiecutter.component_id}}/docs/index.md

Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>

Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
2020-09-03 11:20:58 +02:00
Patrik Oldsberg 875f254827 Merge branch 'master' into new-release-31-aug-20 2020-09-02 16:17:40 +02:00
Emma Indal 3b545791ce new release 31 aug 20 2020-09-01 14:10:22 +02:00
Fredrik Adelöw 568f398aa9 BREAKING CHANGE: no longer add express.json() by default to backend 2020-09-01 11:59:31 +02:00
Rod Machen 57c3e2ad5b update software template docs 2020-08-28 14:07:25 -05:00
Fredrik Adelöw d1bad7f73a Merge pull request #2115 from hmcts/use-cookiecutter-installed-on-host
Use cookie cutter installed on host if available
2020-08-28 15:39:21 +02:00
Raghunandan 734dcca107 Release v0.1.1-alpha.20 2020-08-26 11:33:14 +02:00
Tim Jacomb 118e4861be Use cookie cutter installed on host 2020-08-25 14:27:52 +01:00
Emma Indal e323e1691b update tags to be lowercased in docs template (#2104)
* update tags to be lowercased in docs template

* Update template.yaml
2020-08-25 12:07:12 +02:00
Emma Indal edab8b2ad8 fix(template tags): fixes issues with tags specified with uppercase (#2049)
* fix(template tags): fixes issues with tags specified with uppercase

* adds new validator for metadata tags

* fix(template tags): change tags to be lowercase

* fix(template tags docs): update docs to include lowercased tags

* fix(validator): change back to using isValidDnsLabel for tags

* fix(software catalog docs): use lowercase tags in docs
2020-08-24 17:01:27 +02:00
Emma Indal f6f56aa748 TechDocs: documentation template (#1954)
* feat(docs-template): Add docs template to create a standalone docs project

* fix(docs-template): add docs template to mock data

* fix(docs-template): owner of template

* add techdocs-ref to cookiecutter docs project

* delete unused cookiecutter json file

* update docs in default index.md file

* rename from .yaml to .yml to be consistent to docs

* update techdocs-ref to use github protocol
2020-08-21 14:56:46 +02:00
Stefan Ålund c6c3c94c18 Camelcase GitHub and GitLab (#2034)
* Camelcase GitHub and GitLab

* GitLab

* Code GitLab

* GitHub in code

* Fix auth naming

* Update docs/features/software-templates/adding-templates.md

Co-authored-by: Raghunandan Balachandran <soapraj@gmail.com>

* Update docs/features/software-templates/extending/create-your-own-preparer.md

Co-authored-by: Raghunandan Balachandran <soapraj@gmail.com>

Co-authored-by: Raghunandan Balachandran <soapraj@gmail.com>
2020-08-21 14:48:16 +02:00
Raghunandan 15e334a584 Release v0.1.1-alpha.19 2020-08-21 11:40:04 +02:00
blam 56db3293d8 test(scaffolder/docker): added some tests to check the home cariable 2020-08-10 21:27:35 +02:00
blam ae56770cf2 chore(scaffolder): fixing some of the docs and making things a little cleanern 2020-08-10 21:23:54 +02:00