Unfurl links on Issues and Pull Request discussions.
Create .github/workflows/unfurl-links.yml
in the default branch:
name: Unfurl Links
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
pull_request:
types: [opened, edited]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/unfurl-links@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Your GitHub token for authentication.
Specify if only render the raw links. Default true
.
Set raw
to false
to render all links.
name: Unfurl Links
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
pull_request:
types: [opened, edited]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/unfurl-links@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
raw: false
Cutsom header of the unfurled card. header
can be a Handlebars template and rendered with parsed metadata.
name: Unfurl Links
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
pull_request:
types: [opened, edited]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/unfurl-links@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
header: '<i><a href="{{ url }}">{{ url }}</a></i>'
Handlebars template to render the unfurled card. The template will be rendered with parsed metadata from url.
interface Metadata {
url: string
header?: string
title?: string
titleLink?: string
authorName?: string
authorIcon?: string
authorLink?: string
thumb?: string
content?: string
image?: string
footer?: string
footerLink?: string
footerIcon?: string
}
And the default template is:
The scripts and documentation in this project are released under the MIT License