Skip to content
play

GitHub Action

Issue to Hexo

v1.0.0 Latest version

Issue to Hexo

play

Issue to Hexo

GitHub Action which converts GitHub Issue to Hexo post

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Issue to Hexo

uses: somidad/action-issue-to-hexo@v1.0.0

Learn more about this action in somidad/action-issue-to-hexo

Choose a version

Issue to Hexo

This action converts a GitHub Issue to a Hexo post.

Template

In converting, this action takes information of an issue and set it to information of a post as follows:

GitHub Issue Hexo post Action
Title Title
Last updated date/time Date
Labels Tags
Body Content
Milestone Issue is converted only if milestone is set to publish

Usage

name: Issue to Hexo
on:
  issues:
    # Sufficient to trigger this workflow when an issue is milestoned
    types: [ milestoned ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: gsongsong/issue-to-hexo
        with:
          issue_url: ${{ github.event.issue.url }}
          # Personal access token used to get information of Issue
          token: ${{ secrets.token }}
      # At this point, a markdown file is generated and untracked
      # Take further action, e.g. generate (`hexo generate`), commit and push

Sponsor

If you feel this is useful, please consider to support me:

Buy Me A Coffee