|
| 1 | +[id="rhdh-extensions-plugins-creating_{context}"] |
| 2 | += Adding your own plugin metadata to Extensions |
| 3 | +You can add your own plugin metadata to Extensions. |
| 4 | + |
| 5 | +.Prequisites |
| 6 | + |
| 7 | +.Procedure |
| 8 | +. Update plugin metadata file, as follows: |
| 9 | ++ |
| 10 | +[source,yaml] |
| 11 | +---- |
| 12 | +# yaml-language-server: $schema=https://raw.githubusercontent.com/redhat-developer/rhdh-plugins/refs/heads/main/workspaces/marketplace/json-schema/plugins.json |
| 13 | +apiVersion: extensions.backstage.io/v1alpha1 |
| 14 | +kind: Plugin |
| 15 | +metadata: |
| 16 | + name: github-issues |
| 17 | + namespace: rhdh |
| 18 | + title: GitHub Issues |
| 19 | + description: 'Based on the well-known GitHub slug annotation associated with the Entity, it renders the list of Open issues in GitHub' |
| 20 | + annotations: |
| 21 | + extensions.backstage.io/pre-installed: 'true' |
| 22 | + tags: |
| 23 | + - issue-tracker |
| 24 | + links: |
| 25 | + - title: Homepage |
| 26 | + url: https://red.ht/rhdh |
| 27 | + - title: Bugs |
| 28 | + url: https://issues.redhat.com/browse/RHIDP |
| 29 | + - title: Documentation for Red Hat Developer Hub |
| 30 | + url: https://docs.redhat.com/en/documentation/red_hat_developer_hub |
| 31 | + - title: Source Code |
| 32 | + url: https://github.com/backstage/community-plugins/tree/main/workspaces/github-issues/plugins/github-issues |
| 33 | +spec: |
| 34 | + categories: |
| 35 | + - Issue tracker |
| 36 | +
|
| 37 | + icon: data:image/svg+xml;base64, |
| 38 | + PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjgg |
| 39 | + MTI4Ij48ZyBmaWxsPSIjMTgxNjE2Ij48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVs |
| 40 | + ZT0iZXZlbm9kZCIgZD0iTTY0IDUuMTAzYy0zMy4zNDcgMC02MC4zODggMjcuMDM1LTYwLjM4OCA2 |
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c1Ni45ODgg |
| 66 | + MS4yMzd6bTQuOTQzLjM2MWMuMDE3LjQ5OC0uNTYzLjkxLTEuMjguOTItLjcyMy4wMTctMS4zMDgt |
| 67 | + LjM4Ny0xLjMxNS0uODc3IDAtLjUwMy41NjgtLjkxIDEuMjktLjkyNC43MTctLjAxMyAxLjMwNi4z |
| 68 | + ODcgMS4zMDYuODh6bTQuNTk4LS43ODJjLjA4Ni40ODUtLjQxMy45ODQtMS4xMjYgMS4xMTctLjcu |
| 69 | + MTMtMS4zNS0uMTcyLTEuNDQtLjY1My0uMDg2LS40OTguNDIyLS45OTcgMS4xMjItMS4xMjYuNzE0 |
| 70 | + LS4xMjMgMS4zNTQuMTcgMS40NDQuNjYzem0wIDAiLz48L2c+PC9zdmc+ |
| 71 | +
|
| 72 | +
|
| 73 | + author: Backstage Community |
| 74 | + support: tech-preview # production, tech-preview, dev-preveiw |
| 75 | + lifecycle: active |
| 76 | + publisher: Red Hat |
| 77 | + highlights: |
| 78 | + - Show GitHub issues for your entities |
| 79 | +
|
| 80 | + description: | |
| 81 | +
|
| 82 | + Based on the [well-known GitHub slug annotation](https://backstage.io/docs/features/software-catalog/well-known-annotations#githubcomproject-slug) associated with the Entity, it renders the list of Open issues in GitHub. |
| 83 | + The plugin will attempt to determine the source code location using the [well-known Source location slug annotation](https://backstage.io/docs/features/software-catalog/well-known-annotations/#backstageiosource-location) or [Managed by location slug annotation](https://backstage.io/docs/features/software-catalog/well-known-annotations/#backstageiomanaged-by-location) associated with the Entity. |
| 84 | + If no configured Github provider will match, the first one will be used. |
| 85 | +
|
| 86 | + The plugin is designed to work with four Entity kinds, and it behaves a bit differently depending on that kind: |
| 87 | +
|
| 88 | + - Kind: Group/User: plugin renders issues from all repositories for which the Entity is the owner. |
| 89 | + - Kind: API/Component: plugin renders issues from only one repository assigned to the Entity |
| 90 | +
|
| 91 | + **Issues are sorted from the recently updated DESC order (the plugin might not render all issues from a single repo next to each other).** |
| 92 | +
|
| 93 | + ## Adding The Plugin To Red Hat Developer Hub |
| 94 | +
|
| 95 | + See the [Red Hat Developer Hub documentation](https://docs.redhat.com/en/documentation/red_hat_developer_hub) |
| 96 | + for further instructions on how to add, enable, configure, and remove plugins in your instance. |
| 97 | +
|
| 98 | + ## Configuring The Plugin ## |
| 99 | +
|
| 100 | + Plugins often need additional configuration to work correctly - particularly those that integrate with other |
| 101 | + systems. See the original source code repository, the software vendor, or the [Red Hat Developer Hub documentation](https://docs.redhat.com/en/documentation/red_hat_developer_hub) |
| 102 | + for further details regarding the configuration required. |
| 103 | +
|
| 104 | + packages: |
| 105 | + - backstage-community-plugin-github-issues |
| 106 | +---- |
| 107 | + |
| 108 | +.User facing attributes |
| 109 | +[%header,cols=3*] |
| 110 | +|=== |
| 111 | +|*Attribute* |*Type* |*Description* |
| 112 | +// |3scale |`https://npmjs.com/package/@backstage-community/plugin-3scale-backend/v/3.0.3[@backstage-community/plugin-3scale-backend]` |3.0.3 |
| 113 | +// |`./dynamic-plugins/dist/backstage-community-plugin-3scale-backend-dynamic` |
| 114 | + |
| 115 | +// `THREESCALE_BASE_URL` |
| 116 | + |
| 117 | +// `THREESCALE_ACCESS_TOKEN` |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | +| `metadata.description` | `string` | Short description that is shown on the cards (text). |
| 122 | +| `spec.author` | `string` | A single author name, this attribute is automatically converted to authors if specified. |
| 123 | +| `spec.authors` | `{ name: string, url?: string }[]` | Authors array if a plugin is developed by multiple authors. |
| 124 | +| `spec.categories` | `string[]` | Categories are displayed directly as filter and labels. |
| 125 | +| `spec.highlights` | `string[]` | Highlights for the details page. |
| 126 | +| `spec.description` | `string` | Full description that is shown on the details page (markdown). |
| 127 | +| `spec.installation` | `string` | Full installation description that is shown later on the install page (markdown). |
| 128 | +| `spec.icon` | `string` | Icon URL |
0 commit comments