Commit Graph

53 Commits

Author SHA1 Message Date
blam 40faae3903 chore(integration/gitlab): fixing tests again for integration config 2021-01-20 16:24:23 +01:00
blam a729aaa854 Merge branch 'master' of github.com:backstage/backstage into blam/move-scaffolder-to-integrations
* 'master' of github.com:backstage/backstage: (75 commits)
  backend-common: Move definition of etag property inside constructor
  docs: Fix url links in well known annotations
  bitbucket casing
  integration: take over the config
  More review comments
  Address some final review coments about cross-fetch and type-casting
  chore(deps): bump sucrase from 3.16.0 to 3.17.0
  chore(deps-dev): bump @types/webpack from 4.41.22 to 4.41.26
  core-api: remove deprecated registerRoute and deprecate addRoute
  Update README
  Support GHE
  app,create-app: switch to using FlatRoutes
  Make breaking 'minor' change'
  Add codefences to changeset
  Add changeset
  Remove InfoCard :height100" variant
  scripts/check-if-release: fix diff and tweak to handle new and removed packages
  Update with review comments
  docs: Run prettier on techdocs ci/cd tutorial
  remove adr status header
  ...
2021-01-20 16:22:58 +01:00
Himanshu Mishra e8e6bd92b6 Merge pull request #4120 from backstage/orkohunter/url-reader-readTree-with-sha 2021-01-20 14:49:47 +01:00
Fredrik Adelöw 751b700f8a bitbucket casing 2021-01-20 14:02:10 +01:00
Fredrik Adelöw c2450d458f integration: take over the config 2021-01-20 13:50:06 +01:00
blam 13231e101b chore: fixing some PR comments 2021-01-20 12:47:17 +01:00
Johan Haals b470208202 Fix config test
Co-authored-by: blam<ben@blam.sh>
2021-01-20 11:41:01 +01:00
Johan Haals 954a7eecab Don't set apiBaseUrl
This is already handled by the gitlab client and the default is wrong
2021-01-20 11:13:03 +01:00
Himanshu Mishra 380dd626fb Safe nullish check with git-url-parse library responses 2021-01-18 23:04:31 +01:00
Himanshu Mishra 79f9a97428 backend-common: UrlReader/Azure implement SHA based caching 2021-01-18 21:55:55 +01:00
Himanshu Mishra fa8ba330a8 integration: GitLab API should be added for default and should have a protocol 2021-01-18 21:53:51 +01:00
Johan Haals 5618ffa733 Merge pull request #4058 from backstage/mob/github-app-manager
Add GithubCredentialsProvider for start of GitHub Apps support
2021-01-18 08:10:26 +01:00
Johan Haals 48f3a5dcae Update docs 2021-01-15 16:13:19 +01:00
Johan Haals 6037fa75c5 Set accept header and api base url 2021-01-15 10:41:07 +01:00
Johan Haals 065498367d Find installation after try/catch 2021-01-14 16:37:31 +01:00
github-actions[bot] be332e13ea Version Packages 2021-01-14 13:05:31 +00:00
Johan Haals 58cb92f91e Improve installation error message 2021-01-14 13:53:50 +01:00
Johan Haals ca875e6658 Add docs for GithubAppConfig 2021-01-14 13:53:50 +01:00
Johan Haals 820430b220 Add docs for getCredentials 2021-01-14 13:53:49 +01:00
Johan Haals 779734303b Improve error for suspended app 2021-01-14 13:53:49 +01:00
Johan Haals e3ae3c29c5 Update packages/integration/src/github/config.ts
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2021-01-14 13:53:49 +01:00
Johan Haals d5189471b2 Update packages/integration/src/github/GithubCredentialsProvider.test.ts
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2021-01-14 13:53:49 +01:00
Johan Haals e64acdad76 Added tests and refactored provider
Co-authored-by: blam <ben@blam.sh>
2021-01-14 13:53:48 +01:00
Johan Haals 04ad29ca4e Make GithubUrlReader use GithubCredentialsProvider
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
2021-01-14 13:53:47 +01:00
Johan Haals 25a5d6bf2f Refactor GitHubAppManager, add deps & config 2021-01-14 13:53:29 +01:00
Johan Haals 5d20d4bad8 Store installations response 2021-01-14 13:50:13 +01:00
Johan Haals 6437f0adf8 wip 2021-01-14 13:50:13 +01:00
Johan Haals 8c6f35528c Remove installationHasRepo 2021-01-14 13:50:12 +01:00
Johan Haals 42a1591b65 WIP: Github App manager 2021-01-14 13:50:12 +01:00
Fredrik Adelöw 466354aaa7 integration: build out the integrations class hierarchy 2021-01-11 13:33:43 +01:00
github-actions[bot] 28d7f319f4 Version Packages 2021-01-07 10:31:20 +00:00
Omer Farooq 3f7bfe7b11 remove url check to support on-prem ADO 2020-12-30 13:11:35 +13:00
github-actions[bot] 6e9f4d4a15 Version Packages 2020-12-17 10:16:33 +00:00
mateiidavid 19f5c5e990 Change Gitlab config test to include apiBaseurl 2020-12-16 14:13:54 +00:00
mateiidavid 47930a36f7 Implement readTree for GitlabReader (#3547)
* This change adds an implementation for the readTree method in GitlabReader.
The implementation is similar to the readTree method in GithubReader
with the exception of the 'path' variable used for subpaths in the
archive. To facilitate this, GitlabIntegrationConfig now has an apiUrl
field which was missing for Gitlab but was present for Bitbucket & GH.

* As part of this change, there are also new tests added to GitlabReader
to mirror what has been done with the GH reader. For now the archive
format chosen is 'zip', follow-up action includes having a look at
whether tar.gz is preferable.

Signed-off-by: Matei David <madavid@expediagroup.com>
2020-12-16 14:13:54 +00:00
Patrik Oldsberg 1da7d2c657 plugins,packages: replace usages of ConfigReader.from 2020-12-15 19:04:50 +01:00
blam 3d493a4bce chore: updating the tests to be a little nicer 2020-12-15 15:59:56 +01:00
blam 3546862399 chore: update git-url-parse dependency 2020-12-15 13:22:17 +01:00
Kim S. Ly bbd0e354ff Implement readTree on BitBucketUrlReader - Add getBitbucketDefaultBranch 2020-12-15 01:04:16 -05:00
Kim S. Ly 58b3bbe4e8 Implement readTree on BitBucketUrlReader - Implement getBitbucketDownloadUrl and remove hash for Bitbucket Server 2020-12-15 01:01:56 -05:00
Patrik Oldsberg 178e09323e integration: check that host in config is a valid host 2020-12-11 16:36:25 +01:00
github-actions[bot] cf187484bf Version Packages 2020-12-10 11:25:39 +00:00
Frieder Bluemle cbd3a44c09 Fix typos (#3646) 2020-12-09 07:50:41 +01:00
Patrik Oldsberg f90d0c7474 Merge pull request #3585 from adamdmharvey/packagesjson-packages
chore: Align optional NPM fields for multiple packages
2020-12-08 19:19:26 +01:00
Fredrik Adelöw b2db892869 integration: addressed comments 2020-12-07 21:43:17 +01:00
Fredrik Adelöw 38e24db009 integration: move the core url and auth logic to integration for the four major providers 2020-12-07 16:55:30 +01:00
Fredrik Adelöw b8ecf6f482 integration: add the basics of cross-integration concerns 2020-12-07 16:46:52 +01:00
Adam Harvey 1e097d11ca Align optional NPM fields 2020-12-05 22:00:03 -05:00
github-actions[bot] 01aa774d9a Version Packages 2020-12-03 15:28:22 +00:00
github-actions[bot] 892645b815 Version Packages 2020-11-27 12:51:09 +00:00