mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-01 18:41:36 +02:00
36 lines
863 B
YAML
36 lines
863 B
YAML
name: Contribution Policy
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
dry_run:
|
|
description: Preview labels and comments without changing PRs
|
|
required: true
|
|
default: true
|
|
type: boolean
|
|
pull_request_target:
|
|
types: [labeled, unlabeled]
|
|
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
check:
|
|
name: Check contribution policy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout policy script
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.base.sha || github.ref }}
|
|
fetch-depth: 1
|
|
|
|
- name: Check contribution policy
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const { run } = require("./.github/scripts/check-contribution-policy.js");
|
|
await run({ github, context, core });
|