Commit Graph

186 Commits

Author SHA1 Message Date
Fredrik Adelöw e97cc0b0a3 updated the knip rules a bit
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-02-08 09:53:18 +01:00
Heikki Hellgren c9d39120b2 chore: update knip reports
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-02-08 09:08:32 +02:00
Heikki Hellgren 23a29697aa ci: introduce knip for checking unused packages
fixes #21948

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-02-08 08:38:05 +02:00
Heikki Hellgren 55963c4714 feat: move knip reports under own command
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-02-08 08:29:50 +02:00
Fredrik Adelöw b38d6b1e66 parallelize
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-02-08 08:29:50 +02:00
Heikki Hellgren 60a68f10e9 ci: introduce knip for checking unused packages
fixes #21948

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-02-08 08:29:48 +02:00
github-actions[bot] b17a6cccce Version Packages (next) 2024-02-06 14:58:46 +00:00
Patrik Oldsberg c6e749b216 Merge pull request #22350 from backstage/openapi-tooling/fix-generate-client
feat(repo-tools): Rework command structure and standardize `openapi generate-client`
2024-02-06 13:41:16 +01:00
Fredrik Adelöw 6557b10431 Merge pull request #22592 from hudsonb/safe-entity-name-fix
Fix safeEntityName
2024-02-06 11:23:43 +01:00
github-actions[bot] c70c3dc393 Version Packages (next) 2024-01-30 13:38:11 +00:00
Brian Hudson a245fad6c7 Add util function and related tests
Signed-off-by: Brian Hudson <brian.r.hudson@gmail.com>
2024-01-30 07:34:38 -05:00
Brian Hudson aa91cd69ac Fix safeEntityName
createOrMergeEntity was replacing capital letters with -. For example "@internal/pluginApi" would result in "internal-plugin-pi".

Updated to correctly handle capital letters, prefixing them with - unless they are the first character. For example "@internal/pluginApi" would result in "internal-plugin-api".

Signed-off-by: Brian Hudson <brian.r.hudson@gmail.com>
m>
2024-01-29 16:59:23 -05:00
Aramis fed57c3b1e update the autogenerated file comment
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-25 18:04:39 -05:00
Aramis c04c42b61a feat(openapi-tooling): Fix oneOf client duplications.
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-25 18:00:28 -05:00
Aramis b107fdf609 rework generate to take flags instead of subcommands
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-24 10:40:04 -05:00
Aramis 2a42f97175 make init for a single package
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-23 13:25:42 -05:00
Aramis 9c1c15fe1b work to update init to be package focused
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-23 10:09:09 -05:00
github-actions[bot] 185d5ea0b0 Version Packages (next) 2024-01-23 13:57:50 +00:00
Aramis e16864039b fix more documentation and workflows
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-22 13:42:48 -05:00
Aramis ff3a604dae feat(repo-tools): Update OpenAPI command naming.
fixes: https://github.com/backstage/backstage/issues/21790

Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-22 13:42:48 -05:00
Patrik Oldsberg d5daf7032f Merge pull request #22298 from sennyeya/openapi-one-of-support-template
feat(openapi-tooling): Add support for `oneOf` in generated clients
2024-01-22 01:18:22 +01:00
Aramis 5ed7314300 add attribution for each file
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-21 10:50:44 -05:00
Aramis 1f5de82fc7 updating templates to be more in line with expected backstage types.
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-21 10:50:44 -05:00
Aramis 88581bd8c8 update to use the shared additional properties template
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-21 10:50:44 -05:00
Aramis cb60e97bd8 feat(openapi-tooling): Add support for oneOf.
Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-21 10:50:44 -05:00
Aramis 324b970209 feat(openapi-tooling): use info.title as the pluginId
the current approach to pass pluginId to the client is opaque and using package name as a title isn't super descriptive.

Signed-off-by: Aramis <sennyeyaramis@gmail.com>
2024-01-18 16:21:39 -05:00
github-actions[bot] 8070f67dc4 Version Packages 2024-01-16 11:44:56 +00:00
github-actions[bot] ac277f3c91 Version Packages (next) 2024-01-09 12:44:34 +00:00
github-actions[bot] a3ccddeba5 Version Packages (next) 2024-01-02 10:42:54 +00:00
Patrik Oldsberg e02efdf8e6 repo-tools: refactor to remove mock-fs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-12-28 15:22:58 +01:00
github-actions[bot] c9f71fba8d Version Packages (next) 2023-12-25 23:42:26 +00:00
Fredrik Adelöw 883782e8a7 Fix a bug in getLocationByRef that led to invalid backend calls
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-12-21 13:10:08 +01:00
github-actions[bot] a9801a3ec9 Version Packages 2023-12-19 13:39:54 +00:00
github-actions[bot] 3f1192f32f Version Packages (next) 2023-12-12 15:45:17 +00:00
github-actions[bot] a7f57602d1 Version Packages (next) 2023-12-05 13:55:44 +00:00
Fredrik Adelöw 05929420a3 Merge pull request #21733 from taras/tm/do-not-change-cwd
Use openapitools.json from @backstage/repo-tools package
2023-12-05 12:02:27 +01:00
Fredrik Adelöw 87b6c2fe52 Merge pull request #21700 from sennyeya/export-types-from-client
feat: add types to the generated exports
2023-12-05 12:02:08 +01:00
Fredrik Adelöw 60c63d477d Merge pull request #21650 from backstage/freben/no-alpha
repo-tools: detect and delete unnecessary api reports
2023-12-05 11:56:06 +01:00
Fredrik Adelöw 4a77267dac address comments
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-12-05 11:38:04 +01:00
Taras Mankovski d2ce05b772 Execute openapi-generator-cli from @backstage/repo-tools directory
Signed-off-by: Taras Mankovski <taras@frontside.com>
2023-12-04 19:55:02 -05:00
Taras Mankovski 91e231d340 Do not use yarn to execute openapi-generator-cli binary
Signed-off-by: Taras Mankovski <taras@frontside.com>
2023-12-04 18:10:07 -05:00
Taras Mankovski 7115a27f70 Remove templateDir to prevent openapitools from attempting to read it
Signed-off-by: Taras Mankovski <taras@frontside.com>
2023-12-04 18:08:01 -05:00
Fredrik Adelöw 1d26067dd3 Merge pull request #21694 from backstage/fix-bugs-in-init
fix: don't use commas for jest test files
2023-12-02 07:08:17 +01:00
Aramis Sennyey bff06a38fd feat: add types to the generated exports
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
2023-12-01 17:22:42 -05:00
Taras Mankovski f909e9de40 Includes templates in @backstage/repo-tools package and use them in the CLI
Signed-off-by: Taras Mankovski <taras@frontside.com>
2023-12-01 14:38:57 -05:00
Aramis Sennyey f49e2372d0 fix: don't use commas for jest test files
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
2023-12-01 14:01:52 -05:00
Fredrik Adelöw 9be0f8bb40 Merge pull request #21589 from backstage/renovate/stoplight-types-14.x
fix(deps): update dependency @stoplight/types to v14
2023-11-30 21:46:24 +01:00
Fredrik Adelöw 7959f2377a implement detection and deletion of deprecated api reports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-11-30 15:34:45 +01:00
github-actions[bot] 356906bab8 Version Packages (next) 2023-11-28 13:37:18 +00:00
Aramis ce3f7d4f28 Merge pull request #17470 from sennyeya/generator 2023-11-28 08:18:23 -05:00