{JSON.stringify(job, null, 2)}
diff --git a/public/app/features/provisioning/Repository/PullRequestButtons.tsx b/public/app/features/provisioning/Repository/PullRequestButtons.tsx
new file mode 100644
index 00000000000..c7c3101161e
--- /dev/null
+++ b/public/app/features/provisioning/Repository/PullRequestButtons.tsx
@@ -0,0 +1,31 @@
+import { Trans } from '@grafana/i18n';
+import { LinkButton } from '@grafana/ui';
+import { RepositoryUrLs } from 'app/api/clients/provisioning/v0alpha1';
+
+interface Props {
+ jobType?: 'sync' | 'delete' | 'move';
+ urls?: RepositoryUrLs;
+}
+export function PullRequestButtons({ urls, jobType }: Props) {
+ const pullRequestURL = urls?.newPullRequestURL;
+ const compareURL = urls?.compareURL;
+ const branchURL = urls?.sourceURL;
+
+ if (jobType === 'sync') {
+ return null;
+ }
+
+ return (
+ <>
+
+ View branch
+
+
+ Compare branch
+
+
+ Open pull request
+
+ >
+ );
+}
diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json
index 4a294622625..2cf0531c0d8 100644
--- a/public/locales/en-US/grafana.json
+++ b/public/locales/en-US/grafana.json
@@ -11470,6 +11470,9 @@
},
"repository-link": {
"delete-or-move-job": {
+ "compare-branch": "Compare branch",
+ "open-pull-request": "Open pull request",
+ "view-branch": "View branch",
"view-repository": "View repository"
},
"grafana-repository-synced": "Your resources are now in your external storage and provisioned into your instance. From now on, your instance and the external storage will be synchronized.",