Commit Graph

264 Commits

Author SHA1 Message Date
Iain Billett a8c5f1a08f Add an optional external Id field
Signed-off-by: Iain Billett <iain@roadie.io>
2022-03-10 14:41:07 +00:00
github-actions[bot] 1693f2dc74 Version Packages (next) 2022-03-09 16:09:04 +00:00
Patrik Oldsberg 09b37063f2 packages,plugins: migrate to new lint config
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-03-07 14:53:43 +01:00
github-actions[bot] 3c8bb2854d Version Packages 2022-03-03 15:23:53 +00:00
Patrik Oldsberg 6ed03eeacb Merge pull request #9782 from Bonial-International-GmbH/PJ_bitbucket_default-apiBaseUrl
feat(bitbucket): ensure apiBaseUrl, replace hardcoded cases
2022-03-02 17:35:12 +01:00
Patrick Jungermann 34af86517c feat(bitbucket): ensure apiBaseUrl, replace hardcoded cases
Ensure presence of apiBaseUrl for bitbucket
integrations for both cases Bitbucket Cloud and
Bitbucket Server by setting the default for
Bitbucket Server at the integration config, too.

Replace hardcoded uses of the default apiBaseUrl
with the use of the integration config's value.

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-02-25 15:18:17 +01:00
Fredrik Adelöw c2deefa463 Merge pull request #9797 from Bonial-International-GmbH/PJ_bitbucket_lineNumber-ref
fix(bitbucket): fix line number references
2022-02-25 10:28:48 +01:00
Patrick Jungermann 33d5e79822 fix(bitbucket): fix line number references
Use the actual line number syntax for Bitbucket Cloud
and Bitbucket Server.

Closes: #9764

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-02-25 00:59:31 +01:00
github-actions[bot] c9da151d84 Version Packages 2022-02-24 13:54:37 +00:00
Ben Lambert 02821e4bef Merge pull request #9584 from ItzEdgar/gitlab-selfhosted-fix
Updated gitlab integration to include port
2022-02-18 11:35:58 +01:00
Patrik Oldsberg ba68ea4450 apply 0.68.1 fixes to master
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-18 11:30:15 +01:00
Patrik Oldsberg 630340287f integration,catalog-backend: tweak changesets to make vale happy
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-17 18:27:48 +01:00
Edgar Silva 1bc8c55822 Changed repoIDLookup to url.origin
Changed the repoIDLookup concatenation from 'url.protocol + url.host' to
'url.origin', which does essentially the same but is simpler.

Signed-off-by: Edgar Silva <edgar.silva@cross-join.com>
2022-02-17 12:50:23 +00:00
github-actions[bot] 408b0300cb Version Packages 2022-02-17 10:38:59 +00:00
Edgar Silva 2f1050ec10 Updated gitlab integration to include port
Updated integration module to allow for the use of a custom port, which
is often the case in self hosted gitlab instances

Removed host.includes(':') check in config.ts to allow for users to
include the port in the host
Changed url.hostname to url.host in core.ts to include the port in the
api call (otherwise it'll result in an error when trying to import a new
component)

Signed-off-by: Edgar Silva <edgar.silva@cross-join.com>
2022-02-16 19:18:38 +00:00
Patrik Oldsberg 9892d74326 cli: renamed script commands to package
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-15 21:27:12 +01:00
Patrik Oldsberg 8f82d80adf migrate all package scripts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-14 21:50:07 +01:00
Patrik Oldsberg b521c1b83b detect all package roles
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-14 21:50:03 +01:00
Fredrik Adelöw 1ed305728b bump node-fetch and cross-fetch
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-10 15:51:50 +01:00
github-actions[bot] e74f416a00 Version Packages (next) 2022-02-08 19:38:17 +00:00
github-actions[bot] 51eecb3f03 Version Packages (next) 2022-02-02 14:28:47 +00:00
github-actions[bot] e1580cf73a Version Packages (next) 2022-02-01 08:53:29 +00:00
github-actions[bot] 406848efee Version Packages 2022-01-27 11:07:27 +00:00
github-actions[bot] 8b18d054f3 Version Packages 2022-01-20 10:33:31 +00:00
Iain Billett 0e76e264e9 Return undefined rather than an empty string
Signed-off-by: Iain Billett <iain@roadie.io>
2022-01-18 18:32:19 +00:00
Iain Billett 2030b5e80d Return an empty token where an installation owner is not allowed
While this is less obvious to the user this facilitates anonymous access
to (public) files where the app is installed but the owner is not in the
allowed list.

Signed-off-by: Iain Billett <iain@roadie.io>
2022-01-18 18:02:47 +00:00
github-actions[bot] a94a2b8b3f Version Packages (next) 2022-01-18 13:49:07 +00:00
github-actions[bot] b04011602b Version Packages 2022-01-13 14:23:13 +00:00
Brian Fletcher bc5f67627c Merge branch 'master' of github.com:backstage/backstage into readersprocessorstasks 2022-01-10 14:40:04 +00:00
Fredrik Adelöw 5333451def Got rid of the last brace-typed and hyphen-less params etc
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-01-10 09:48:12 +01:00
Brian Fletcher ce82656901 removes some breaking compatability changes
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-07 14:13:54 +00:00
Brian Fletcher db49de335f adds api-reports
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-06 16:31:36 +00:00
Brian Fletcher 95b369d808 use scm integrations interface rather than implementation
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-06 14:21:56 +00:00
Brian Fletcher ffda3d4490 tweaks to remove uneeded differences
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-06 12:11:05 +00:00
Brian Fletcher be15350198 change single instance provider back to the way it was
there was no changes to it, so there was no need for it.

Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-06 11:57:04 +00:00
Brian Fletcher 0a21e4bcc4 Make the credentials provider optional..
..and other review comments improvements.

Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-06 11:46:39 +00:00
Brian Fletcher fb8ca7c1bf remove code accidently added in
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-06 11:46:23 +00:00
Brian Fletcher 2f1d27133b use single instance provider in default one
Also changes how the GitHub url is parsed.

Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-05 13:53:14 +00:00
Brian Fletcher 41ced545f3 api-reports
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-05 08:30:25 +00:00
Brian Fletcher 595dab2935 Creates new provider for compatability
There is now two credentials providers:
 - SingleInstanceGithubCredentialsProvider can be created with a single
   GitHubIntegrationConfig.
 - DefaultGithubCredentialsProvider is created from the full integrations
   config.

Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-05 08:25:52 +00:00
Brian Fletcher bb8ce88f2e api reports
Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-04 15:57:07 +00:00
Brian Fletcher 7af4986af8 remove factory signature from gh creds provider
This change required the SingleInstanceGithubCredentialsProvider to be
changed to allow it to look up the credentials from the whole list of
integrations.

As such all places where it was used I have updated.

Signed-off-by: Brian Fletcher <brian@roadie.io>
2022-01-04 15:30:07 +00:00
github-actions[bot] 7d27a11079 Version Packages 2021-12-30 11:06:46 +00:00
Leon Stein ca52cf8b28 add aws s3 custom endpoint config test
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-29 08:42:06 -05:00
Leon Stein 0dd1971d4a fix tests
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-29 08:36:25 -05:00
Leon Stein 7615549bf5 update api-reports
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-28 17:35:14 -05:00
Leon Stein c2d09d8c17 cleanup
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-28 11:49:10 -05:00
Leon Stein e662ee528b remove AMAZON_AWS_HOST export, fix regex per review feedback
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-28 11:42:23 -05:00
Leon Stein 60dee60d9b update config schema
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-28 10:29:53 -05:00
Leon Stein bc78cc3dca use endpoint/s3ForcePathStyle instead of validateHost/ssl per PR feedback
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-28 10:24:12 -05:00