mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 07:16:36 +01:00
23249b68b7
* feat(action): github action to create bug report issue at RC cut * feat(action): github action to close bug report issue once release is ready * fix(action): replace main by master * fix(action): create event does not support branch filter * fix(action): indentation * fix(action): actionlint erors * fix(action): actionlint erors 2 * fix(action): actionlint erors 3 * fix(action): replace npm by yarn for consistency
39 lines
850 B
YAML
39 lines
850 B
YAML
name: "Check PR has required labels"
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- labeled
|
|
- unlabeled
|
|
|
|
jobs:
|
|
check-pr-labels:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: read
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # This is needed to checkout all branches
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: yarn
|
|
|
|
- name: Install dependencies
|
|
run: yarn --immutable
|
|
|
|
- name: Check PR has required labels
|
|
id: check-pr-has-required-labels
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: yarn run check-pr-has-required-labels
|