{"id":31243651,"url":"https://github.com/mcanouil/quarto-gitlink","last_synced_at":"2025-09-23T01:50:02.267Z","repository":{"id":311256122,"uuid":"1043150221","full_name":"mcanouil/quarto-gitlink","owner":"mcanouil","description":"Use Git hosting platforms references (commits, issues, discussions, and pull requests) directly into your Quarto documents.","archived":false,"fork":false,"pushed_at":"2025-08-23T18:18:55.000Z","size":27,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-24T06:48:55.106Z","etag":null,"topics":["auto-link","codeberg","gitea","github","gitlab","quarto","quarto-extension","quarto-pub","short-link"],"latest_commit_sha":null,"homepage":"https://m.canouil.dev/quarto-gitlink/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcanouil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"mcanouil","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-08-23T08:42:39.000Z","updated_at":"2025-08-23T18:18:01.000Z","dependencies_parsed_at":"2025-08-24T07:47:06.526Z","dependency_job_id":null,"html_url":"https://github.com/mcanouil/quarto-gitlink","commit_stats":null,"previous_names":["mcanouil/quarto-githost","mcanouil/quarto-gitlink"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mcanouil/quarto-gitlink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-gitlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-gitlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-gitlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-gitlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcanouil","download_url":"https://codeload.github.com/mcanouil/quarto-gitlink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcanouil%2Fquarto-gitlink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276502703,"owners_count":25653732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-link","codeberg","gitea","github","gitlab","quarto","quarto-extension","quarto-pub","short-link"],"created_at":"2025-09-23T01:50:01.261Z","updated_at":"2025-09-23T01:50:02.256Z","avatar_url":"https://github.com/mcanouil.png","language":"Lua","readme":"# Gitlink Extension For Quarto\n\nA Quarto extension that automatically converts Git hosting platform references (issues, pull requests, commits, users) into clickable links. Supports **GitHub**, **GitLab**, **Codeberg**, **Gitea**, and **Bitbucket**.\n\n## Installation\n\n```bash\nquarto add mcanouil/quarto-gitlink\n```\n\nThis will install the extension under the `_extensions` subdirectory.\nIf you're using version control, you will want to check in this directory.\n\n## Usage\n\n### Basic Configuration\n\nAdd the extension to your document's YAML front matter:\n\n```yaml\n---\ntitle: \"My Document\"\nfilters:\n  - gitlink\nextensions:\n  gitlink:\n    platform: github              # Platform: github, gitlab, codeberg, gitea, bitbucket\n    base-url: https://github.com   # Base URL (optional, auto-detected from platform)\n    repository-name: owner/repo    # Repository name for relative references\n---\n```\n\n### Supported Platforms \u0026 Reference Formats\n\n#### GitHub\n\n```yaml\nextensions:\n  gitlink:\n    platform: github\n    base-url: https://github.com\n    repository-name: owner/repo\n```\n\n**References:**\n\n- Issues/PRs: `#123`, `owner/repo#123`\n- Commits: `a5c3785`, `owner/repo@a5c3785`\n- Users: `@username`\n\n#### GitLab\n\n```yaml\nextensions:\n  gitlink:\n    platform: gitlab\n    base-url: https://gitlab.com\n    repository-name: group/project\n```\n\n**References:**\n\n- Issues: `#123`, `group/project#123`\n- Merge Requests: `!456`, `group/project!456`\n- Commits: `9ba12248`, `group/project@9ba12248`\n- Users: `@username`\n\n#### Codeberg\n\n```yaml\nextensions:\n  gitlink:\n    platform: codeberg\n    base-url: https://codeberg.org\n    repository-name: user/repo\n```\n\n**References:**\n\n- Issues/PRs: `#123`, `user/repo#123` (same format for both)\n- Commits: `e59ff077`, `user/repo@e59ff077`\n- Users: `@username`\n\n#### Gitea\n\n```yaml\nextensions:\n  gitlink:\n    platform: gitea\n    base-url: https://gitea.com\n    repository-name: user/repo\n```\n\n**References:**\n\n- Issues: `#123`, `user/repo#123`\n- Pull Requests: `!123`, `user/repo!123`\n- Commits: `e59ff077`, `user/repo@e59ff077`\n- Users: `@username`\n\n#### Bitbucket\n\n```yaml\nextensions:\n  gitlink:\n    platform: bitbucket\n    base-url: https://bitbucket.org\n    repository-name: workspace/repo\n```\n\n**References:**\n\n- Issues/PRs: `#123`, `workspace/repo#123` (same format for both)\n- Commits: `9cc27f2`, `workspace/repo@9cc27f2`\n- Users: `@accountname`\n\n### URL Processing\n\nThe extension automatically processes full URLs and converts them to short references:\n\n**Input:** `https://github.com/owner/repo/issues/123`\n\n**Output:** `owner/repo#123` (or `#123` if it's the current repository)\n\n### Repository Detection\n\nIf `repository-name` is not specified, the extension attempts to detect it from the Git remote:\n\n```bash\ngit remote get-url origin\n```\n\nThis works for most Git hosting platforms and extracts the `owner/repo` format from URLs like:\n\n- `https://github.com/owner/repo.git`\n- `git@gitlab.com:group/project.git`\n- `ssh://git@codeberg.org/user/repo.git`\n\n### Platform-Specific Features\n\n#### GitHub Features\n\n- Supports `GH-123` format for issues\n- Pull requests use same format as issues (`#123`)\n- Automatic 7-character SHA shortening for commits\n\n#### GitLab Features\n\n- Merge requests use `!123` format (distinct from issues)\n- Issues use `#123` format\n- URLs include `/-/` in the path structure\n- Full SHA support with automatic shortening\n\n#### Codeberg Features (Forgejo)\n\n- Issues and pull requests both use `#123` format\n- Follows Forgejo/Gitea conventions\n- Automatic reference linking in comments\n\n#### Gitea Features\n\n- Issues use `#123` format\n- Pull requests use `!123` format (GitLab-style)\n- Supports both internal and external issue trackers\n- Actionable references (closes, fixes, etc.)\n\n#### Bitbucket Features\n\n- Issues and pull requests both use `#123` format\n- Pull request URLs use `/pull-requests/` path\n- Workspace-based repository structure\n\n## Examples\n\n### Basic Usage\n\n```markdown\nSee issue #123 for details.\nCommit a5c3785 fixes the bug.\nThanks @contributor for the review!\n```\n\n### Cross-Repository References\n\n```markdown\nRelated to mcanouil/quarto-github#45\nImplemented in microsoft/vscode@9ba12248\n```\n\n### Full URL Processing\n\n```markdown\nCheck this issue: https://github.com/owner/repo/issues/123\nThe fix is in: https://gitlab.com/group/project/-/commit/abc1234\n```\n\n## Example Document\n\nHere is the source code for a comprehensive example: [example.qmd](example.qmd)\n","funding_links":["https://github.com/sponsors/mcanouil"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcanouil%2Fquarto-gitlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcanouil%2Fquarto-gitlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcanouil%2Fquarto-gitlink/lists"}