Skip to content

Instantly share code, notes, and snippets.

@SoYoung210
Created December 4, 2019 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SoYoung210/c4d097168b34ef39b96cd051d052a881 to your computer and use it in GitHub Desktop.
Save SoYoung210/c4d097168b34ef39b96cd051d052a881 to your computer and use it in GitHub Desktop.
Create Default Labels Action
name: Create Default Labels
on:
push:
paths:
- .github/labels.json
jobs:
labels:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: lannonbr/issue-label-manager-action@1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@SoYoung210
Copy link
Author

Sample labels.json (/.github/labels.json)

[
  {
    "name": "📄 Docs",
    "color": "#1568c1",
    "description": "Update Document"
  },
  {
    "name": "🌈 enhancement",
    "color": "#9cdeed",
    "description": "Enhancement"
  },
  {
    "name": "♻️ environment ",
    "color": "#fcbdd7",
    "description": "Development env"
  },
  {
    "name": "🕊Feat",
    "color": "#fbca04",
    "description": "New Feature"
  },
  {
    "name": "🐛 Fix",
    "color": "#d73a4a",
    "description": "Bug"
  },
  {
    "name": "🥺 WontFix",
    "color": "#0052cc",
    "description": ""
  },
  {
    "name": "👷‍♂️ Refactor",
    "color": "#c5def5",
    "description": ""
  },
  {
    "name": "🤕 help wanted",
    "color": "#3aabbc",
    "description": "Need Help.."
  },
  {
    "name": "🤖 question",
    "color": "#5ba011",
    "description": ""
  }
]

@SoYoung210
Copy link
Author

.github/labeler.yaml

actions:
  - .github/workflows/**/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment