The pull request view in GitHub is probably the most important place for developers. Tentacle makes sure that the links defined in the catalog-info.yaml
file are also visible in the pull request view. For this to work, you need to add the pullRequestLinks
attribute to the catalog-info.yaml
file.
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: artist-service
links:
- url: https://admin.example.com
title: Admin Dashboard
+ tentacle:
+ pullRequestLinks:
+ - url: https://dev.example.com
+ title: Dev instance
spec:
type: service
lifecycle: production
owner: team-awesome
But that’s not all! Tentacle also provides a way to define dynamic links that will take your developers to the right place in the right context. For example, you can define a link that will take your developers to the pull request view of the current repository.
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: artist-service
links:
- url: https://admin.example.com
title: Admin Dashboard
tentacle:
pullRequestLinks:
- url: https://dev.example.com
title: Dev instance
+ - title: Preview
+ url: https://preview-{% $pullrequest.number %}.dev.example.com
+ - title: JIRA {% $pullrequest.jira_prefix %}
+ url: https://jira.company.com/{% $pullrequest.jira_prefix %}
spec:
type: service
lifecycle: production
owner: team-awesome