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

label-actions

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

label-actions

A GitHub App built with Probot that performs actions when issues or pull requests are labeled or unlabeled.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Label Actions

Version

This project is no longer maintained, please migrate to Label Actions.

Label Actions is a GitHub App built with Probot that performs actions when issues or pull requests are labeled or unlabeled.

How It Works

The app performs certain actions when an issue or pull request is labeled or unlabeled. No action is taken by default and the app must be configured. The following actions are supported:

  • Post a comment (comment option)
  • Close (close option)
  • Reopen (open option)
  • Lock with an optional lock reason (lock and lockReason options)
  • Unlock (unlock option)

Usage

  • Install the GitHub App for the intended repositories
  • Create .github/label-actions.yml based on the template below
  • Start labeling issues and pull requests

If possible, install the app only for select repositories. Do not leave the All repositories option selected, unless you intend to use the app for all current and future repositories.

Configuration

Create .github/label-actions.yml in the default branch to enable the app, or add it at the same file path to a repository named .github. Configure the app by editing the following template:

# Configuration for Label Actions - https://github.com/dessant/label-actions-app

# Specify actions for issues and pull requests
actions:
  # Actions taken when the `heated` label is added
  heated:
    # Post a comment
    comment: >
      The thread has been temporarily locked.
      Please follow our community guidelines.
    # Lock the thread
    lock: true
    # Set a lock reason, such as `off-topic`, `too heated`, `resolved` or `spam`
    lockReason: "too heated"
  # Actions taken when the `heated` label is removed
  -heated:
    # Unlock the thread
    unlock: true

# Optionally, specify configuration settings just for issues
issues:
  actions:
    feature:
      # Post a comment, `{issue-author}` is an optional placeholder
      comment: >
        :wave: @{issue-author}, please use our idea board to request new features.
      # Close the issue
      close: true
    -wontfix:
      # Reopen the issue
      open: true

# Optionally, specify configuration settings just for pull requests
pulls:
  actions:
    pizzazz:
      comment: >
        ![](https://i.imgur.com/WuduJNk.jpg)

# Limit to only `issues` or `pulls`
# only: issues

# Repository to extend settings from
# _extends: repo

Deployment

See docs/deploy.md if you would like to run your own instance of this app.

License

Copyright (c) 2019-2021 Armin Sebastian

This software is released under the terms of the MIT License. See the LICENSE file for further information.

Keywords

github

FAQs

Package last updated on 03 Jul 2021

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