Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sugarshin/required-labels-action

A GitHub Actions that automated label checking for pull requests
https://github.com/sugarshin/required-labels-action

Last synced: 3 months ago
JSON representation

A GitHub Actions that automated label checking for pull requests

Awesome Lists containing this project

README

        

# required-labels-action

![GitHub release (latest by date)](https://img.shields.io/github/v/release/sugarshin/required-labels-action?include_prereleases)

A GitHub Actions that automated label checking for pull requests.

## Usage

### Inputs

|Parameter|Required|Description|
|:--:|:--:|:--|
|required_any|false|At least one of these comma separated labels should be present on all Pull requests|
|required_all|false|All of these comma separated labels must be present on all Pull requests|
|required_oneof|false|At only one of these comma separated labels should be present on all Pull requests|
|banned|false|None of these comma separated labels can be present on all Pull requests|

### Outputs

|Parameter|Value|
|:--:|:--|
|required_labels|ok|

## Example Workflow

```yaml
name: Check labels

on:
pull_request:
types: [opened, labeled, unlabeled, reopened]

jobs:
check-label:
runs-on: ubuntu-18.04
steps:
- uses: sugarshin/[email protected]
with:
required_all: 'approved'
required_oneof: 'patch,minor,major'
```