GithubHelp home page GithubHelp logo

sijad / flarum-ext-github-autolink Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 15 KB

depricated! use https://github.com/FriendsOfFlarum/github-autolink

License: MIT License

PHP 91.56% JavaScript 8.44%

flarum-ext-github-autolink's Introduction

Flarum Github Autolink

Convert references to Github issues and commits automatically into links.

github-autolink

it also convert both Username/Repository# and Username/Repository@SHA to Github link

Supported Links

Currently supported type of string that will be converted to links are:

  • https://github.com/{user or organisation name}/{repository}/issues/{issue number}
  • {user or organisation name}/{repository}#{issue number}
  • https://github.com/{user or organisation name}/{repository}/commit/{commit SHA1}
  • {user or organisation name}/{repository}@{commit SHA1}

How To Install

Run follow command via ssh while you're in Flarum root folder:

composer require sijad/flarum-ext-github-autolink

then enable the extension from Flarum admin Extension page.

TODO

  • Retrieve links details form Github (e.g. title).

flarum-ext-github-autolink's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flarum-ext-github-autolink's Issues

setSortPriority() is deprecated.

hi, i got an error when i post the article with github links.

here is the full debug log:

200
POST https://xxxx/api/posts/1

<br />
<b>Deprecated</b>:  setSortPriority() is deprecated. Set the priority when calling adding the tag instead. See http://s9etextformatter.readthedocs.io/Internals/API_changes/#070 in <b>/opt/flarum/vendor/s9e/text-formatter/src/Parser/Tag.php</b> on line <b>81</b><br />
<br />
<b>Deprecated</b>:  setSortPriority() is deprecated. Set the priority when calling adding the tag instead. See http://s9etextformatter.readthedocs.io/Internals/API_changes/#070 in <b>/opt/flarum/vendor/s9e/text-formatter/src/Parser/Tag.php</b> on line <b>81</b><br />
{"data":{"type":"posts","id":"1","attributes":{"id":1,"number":1,"time":"2017-08-24T03:51:10+00:00","contentType":"comment","contentHtml":"\u003Cp\u003E\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\uff0c\u6d4b\u8bd5\u4e00\u4e0b\u7e41\u4f53\u4e2d\u6587\u003C\/p\u003E\n\n\u003Cp\u003E\u003Cstrong\u003EMarkdown\u003C\/strong\u003E \u7684\u60c5\u51b5\u5462\uff1f\u003C\/p\u003E\n\n\u003Cp\u003E\u003Ca href=\u0022https:\/\/xxxx\u0022 target=\u0022_blank\u0022 rel=\u0022nofollow noreferrer\u0022\u003Elalal\u003C\/a\u003E\u003C\/p\u003E\n\n\u003Cp\u003E\u003Ca class=\u0022github-issue-link\u0022 href=\u0022https:\/\/github.com\/flagrow\/byobu\/issues\/46\u0022\u003Eflagrow\/byobu#46\u003C\/a\u003E\u003C\/p\u003E\n\n\u003Cp\u003E\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\uff0c\u6d4b\u8bd5\u4e00\u4e0b\u7e41\u4f53\u4e2d\u6587\u003C\/p\u003E\n\n\u003Cp\u003E\u003Cstrong\u003EMarkdown\u003C\/strong\u003E \u7684\u60c5\u51b5\u5462\uff1f\u003C\/p\u003E\n\n\u003Cp\u003E\u003Ca href=\u0022https:\/\/xxxx\u0022 target=\u0022_blank\u0022 rel=\u0022nofollow noreferrer\u0022\u003Elalal\u003C\/a\u003E\u003C\/p\u003E\n\n\u003Cp\u003E\u003Ca class=\u0022github-issue-link\u0022 href=\u0022https:\/\/github.com\/flagrow\/byobu\/issues\/46\u0022\u003Eflagrow\/byobu#46\u003C\/a\u003E\u003C\/p\u003E\n\n\u003Cp\u003E\u521a\u521a\u662f\u54ea\u91cc\u51fa\u73b0\u4e86\u95ee\u9898\u5462\uff1f\u003C\/p\u003E","content":"\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\uff0c\u6d4b\u8bd5\u4e00\u4e0b\u7e41\u4f53\u4e2d\u6587\n\n**Markdown** \u7684\u60c5\u51b5\u5462\uff1f\n\n[lalal](https:\/\/xxxx)\n\nhttps:\/\/github.com\/flagrow\/byobu\/issues\/46\n\n\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\uff0c\u6d4b\u8bd5\u4e00\u4e0b\u7e41\u4f53\u4e2d\u6587\n\n**Markdown** \u7684\u60c5\u51b5\u5462\uff1f\n\n[lalal](https:\/\/xxxx)\n\nhttps:\/\/github.com\/flagrow\/byobu\/issues\/46\n\n\u521a\u521a\u662f\u54ea\u91cc\u51fa\u73b0\u4e86\u95ee\u9898\u5462\uff1f","ipAddress":"xxxx","editTime":"2017-08-24T03:52:55+00:00","canEdit":true,"canDelete":true,"isApproved":true,"canApprove":true,"canFlag":true,"canLike":true,"vingle.share.social":null},"relationships":{"editUser":{"data":{"type":"users","id":"1"}},"discussion":{"data":{"type":"discussions","id":"1"}},"likes":{"data":[]}}},"included":[{"type":"users","id":"1","attributes":{"username":"fish","avatarUrl":null,"bio":null,"joinTime":"2017-08-24T03:47:57+00:00","discussionsCount":1,"commentsCount":1,"canEdit":true,"canDelete":true,"lastSeenTime":"2017-08-24T03:52:55+00:00","isActivated":true,"email":"[email protected]","signature":"","socialButtons":null,"canSuspend":false,"vingle.share.social":null}},{"type":"discussions","id":"1","attributes":{"title":"\u6e2c\u8a66\u4e00\u4e0b","slug":"-","commentsCount":1,"participantsCount":1,"startTime":"2017-08-24T03:51:10+00:00","lastTime":"2017-08-24T03:51:10+00:00","lastPostNumber":1,"canReply":true,"canRename":true,"canDelete":true,"canHide":true,"readTime":"2017-08-24T03:51:10+00:00","readNumber":1,"isApproved":true,"canSelectBestAnswer":true,"startUserId":1,"isLocked":false,"canLock":true,"canSplit":true,"isSticky":false,"canSticky":true,"subscription":false,"canTag":true,"vingle.share.social":null}}]}
Oops! Something went wrong. Please reload the page and try again.DEBUG
null

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.