url shortening, use GitHub octokit.js to show issue/pull status. #1895
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind: enhancement
New feature or request
needs: discussion
Needs discussion before an implementation can be made
tag: CSS
CSS and SCSS related issues
tag: javascript
Pull requests that update Javascript code
tag: UX
Issues or improvements related to user experience
currently we are shortening github/gitlab url at build time,
It should be possible to use ocktokit js to run all all link on a page matching a specific pattern and mark the issue/PRs as closed/opened/merged,
for example, the following fetch a open|close issue of IPython and a closed|opened|merged PR.
mixed with something like :
We should be able to find all links to Pulls/issues, and then I suggest adding a given class to the a (
pst-github-[issue|pr|unknown]-[open|close|merged|unknonw]
) that can be later targeted by css to either add a :before icon or change the styling.The text was updated successfully, but these errors were encountered: