Git Product home page Git Product logo

issue-pin-by-label's Introduction

Pin issue based on label

A GitHub Action that pins an issue using labels.

Usage

This GitHub Action pins an issue based on a specified label.

Setup

Create an environment vairable for storing the LABEL_NAME.

# .github/workflows/pin.yml 
on: 
  issues:
    types: [labeled]
name: pin issue based on label
jobs:
  pinAnIssue:
    name: pin an issue
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: pin an issue
      uses: bdougie/issue-pin-by-label@master

      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        LABEL_NAME: enhancement

issue-pin-by-label's People

Contributors

bdougie avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gnongs

issue-pin-by-label's Issues

LABEL_NAME is not read from the main.yml file

The pin action fails with this log statement.
You can pin based on bug by setting the LABEL_NAME environment variable in the main.workflow file
https://github.com/apisec-inc/Support/actions/runs/2099573644

Here is my yml file

.github/workflows/pin.yml

on:
issues:
types: [labeled]
name: pin issue based on label
jobs:
pinAnIssue:
name: pin an issue
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: pin an issue
uses: bdougie/[email protected]

  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    LABEL_NAME: blocker

How to add Mutiple Labels in pin issue yaml file based on Github Action

Hi All,

I'm having issue with Pin Issue based on Labels getting error when i create a new Issues in github repo after selecting labels into that i got github action job fail and error is below one

Please set up a LABEL_NAME environment variable in the main.workflow file

and Here is my pin.yaml file

# .github/workflows/pin.yml 
on: 
  issues:
    types: [labeled]
name: pin issue based on label
jobs:
  pinAnIssue:
    name: pin an issue
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: pin an issue
      uses: bdougie/[email protected]
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        LABEL_NAME: blocker 

I want to know how to add mutiple labels in my pin.yaml file please tell me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.