Skip to content

Commit

Permalink
add flag link capability for github (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
jazanne authored Mar 1, 2024
1 parent e1e9cfb commit 1dc93eb
Showing 1 changed file with 77 additions and 2 deletions.
79 changes: 77 additions & 2 deletions integrations/github/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GitHub code references",
"version": "1.0.0",
"version": "1.1.0",
"overview": "Use our open-source utility to track references to flags in your code, using GitHub Actions.",
"description": "Use our open-source utility to track references to flags in your code, using GitHub Actions.",
"details": "GitHub is a service for software development and version control using Git. Use our open-source utility to track references to flags in your code to power in-app functionality. Search for feature flags that have no existing code references. Add additional safety checks when you're ready to archive a flag that it does not exist in any codebase running the utility.",
Expand All @@ -19,5 +19,80 @@
"legacy": {
"kind": "codeRefs"
},
"otherCapabilities": ["codeRefs"]
"otherCapabilities": ["codeRefs"],
"capabilities": {
"flagLink": {
"header": "GitHub pull request",
"emptyState": {
"title": "No GitHub pull requests link to this flag.",
"leadText": "To enable the GitHub integration, [read the documentation](https://docs.launchdarkly.com/integrations/github-actions/find-code-references)"
},
"metadata": {
"avatarUrl": {
"type": "uri"
},
"authorDisplayName": {
"type": "string"
},
"authorLogin": {
"type": "string"
},
"authorName": {
"type": "string"
},
"prNumber": {
"type": "string"
},
"prTitle": {
"type": "string"
},
"prBody": {
"type": "string"
},
"message": {
"type": "string"
},
"repoName": {
"type": "string"
},
"repoUrl": {
"type": "uri"
},
"state": {
"type": "string"
}
},
"uiBlocks": {
"image": {
"sourceUrl": "{{{metadata.avatarUrl}}}",
"isAvatar": true
},
"title": {
"linkToReference": true,
"elements": [
{ "text": "{{{metadata.prTitle}}} #{{{metadata.prNumber}}}" }
]
},
"description": "{{{metadata.prBody}}}",
"context": {
"elements": [
{
"text": "Opened by"
},
{
"text": "{{{metadata.authorDisplayName}}}",
"isBold": true
},
{
"text": "in repo"
},
{
"text": "{{{metadata.repoName}}}",
"url": "{{{metadata.repoUrl}}}"
}
]
}
}
}
}
}

0 comments on commit 1dc93eb

Please sign in to comment.