Skip to content

jpazureid/hexo-helper-github-issues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-helper-github-issues

npm i -S jpazureid/hexo-helper-github-issues

Usage

  1. create github.issue-template.md in hexo project root.
  2. add github project url to _config.yml
github:
  url: https://github.com/jpazureid/blog/
  # if you change posts directory
  posts_dir: articles
  # the default branch name
  default_branch: main

Parameters

{
    postId: 'uuidv5 of post.href',
    sourceUrl: 'link to source file in github project',
    issueUrl: 'link to new issue',
}

var github = githubData(config, post);

console.log(github.postId)
//b8187f87-437b-565e-bf39-41e9e177f692

console.log(github.sourcecUrl)
//https://jpazureid.github.io/blog/articles/azure-active-directory/qanda-conditional-access/

console.log(github.issueUrl)
//https://github.com/jpazureid/blog/issues/new?title=&body=%0A%0D%0A---%0D%0A%0D%0A%23%23%23%23+Document+Details%0D%0A%0D%0A%E2%9A%A0+*Do+not+edit+this+section.+It+is+required+for+docs.microsoft.com+%E2%9E%9F+GitHub+issue+linking.*%0D%0A%0D%0A*+ID%3A+b8187f87-437b-565e-bf39-41e9e177f692%0D%0A*+%E5%AF%BE%E8%B1%A1%E8%A8%98%E4%BA%8B%3A+%5BAzure+AD+%E3%81%AE%E6%9D%A1%E4%BB%B6%E4%BB%98%E3%81%8D%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%AB%E9%96%A2%E3%81%99%E3%82%8B+Q%26A%5D%28https%3A%2F%2Fjpazureid.github.io%2Fblog%2Farticles%2Fazure-active-directory%2Fqanda-conditional-access%2F%29%0D%0A*+Content+Source%3A+%5Barticles%2Fazure-active-directory%2Fqanda-conditional-access.md%5D%28articles%2Fazure-active-directory%2Fqanda-conditional-access.md%29%0D%0A*+Author%3A+

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published