Adding codeowners #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "PR: Add default 'version:no release' label" | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- labelled | |
jobs: | |
label: | |
runs-on: ubuntu-latest | |
# Run if there is no version related label on the PR | |
if: >- | |
!( | |
contains(github.event.pull_request.labels.*.name, 'version:major') || | |
contains(github.event.pull_request.labels.*.name, 'version:minor') || | |
contains(github.event.pull_request.labels.*.name, 'version:patch') || | |
contains(github.event.pull_request.labels.*.name, 'version:no release') | |
) | |
steps: | |
- uses: actions-ecosystem/action-add-labels@v1 | |
with: | |
github_token: ${{ secrets.github_token }} | |
labels: 'version:no release' |