devicons / devicons/devicon

Add a `do not merge` label that prevents merging

Open
#1,684 3 comments 1 reaction 0 assignees View on GitHub
devops good first issue
Dominant language
CSS
Stars
11.8k
Forks
2.4k
Avg merge
5d 9h
Merged PRs (30d)
4

Description

### Discussed in https://github.com/devicons/devicon/discussions/1429

Originally posted by **Snailedlt** October 4, 2022
Would it be useful to have a `do not merge` label?
Maybe the PR could have a job that fails if the label is applied too.

Example implementation from here:
```yaml
name: Do Not Merge

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

jobs:
do-not-merge:
if: ${{ contains(github.event.*.labels.*.name, 'do not merge') }}
name: Prevent Merging
runs-on: ubuntu-latest
steps:
- name: Check for label
run: |
echo "Pull request is labeled as 'do not merge'"
echo "This workflow fails so that the pull request cannot be merged"
exit 1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.