New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sync-labels

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-labels

Github action to automatically sync labels in the given repo based on a rule set.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Sync Labels

Github action to automatically sync labels in the given repo based on a rule set.

Quick Start

name: Sync Labels

on:
  schedule:
    # run at 02:00 every day
    - cron: "0 2 * * *"

jobs:
  lint-commits:
    steps:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Test the action locally
        uses: matmar10/sync-labels
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          repository: your-org/your-repository

Labels

See the github-label-sync options

By default, it uses @commitlint/config-conventional rules.

Add a JSON file under .github/prcolinterrc.json to define your customer rules:

- name: "type: bug"
  color: "e11d21"
  aliases:
    - bug
    - fix
  description: Something is not working as expected
- name: "type: feature"
  color: "1d7a4a"
  aliases:
    - enhancement
    - feature

Debug

You can see verbose log output by adding a Github secret on ACTIONS_STEP_DEBUG to true

Keywords

Github

FAQs

Package last updated on 17 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts