chore: simpler rss proposal
This commit is contained in:
@@ -3,6 +3,12 @@ name: Comment on Issue
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited, reopened]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
issue_number:
|
||||
description: 'Issue number to run the check issue job against'
|
||||
required: true
|
||||
type: number
|
||||
|
||||
jobs:
|
||||
testRoute:
|
||||
@@ -11,7 +17,7 @@ jobs:
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
issues: write
|
||||
if: github.event.sender.login != 'issuehunt-oss[bot]'
|
||||
if: github.event_name == 'issues' && github.event.sender.login != 'issuehunt-oss[bot]'
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
|
||||
@@ -28,3 +34,31 @@ jobs:
|
||||
script: |
|
||||
const { default: callMaintainer } = await import('${{ github.workspace }}/scripts/workflow/test-issue/call-maintainer.mjs')
|
||||
await callMaintainer({ github, context, core })
|
||||
|
||||
checkIssue:
|
||||
name: Check issue
|
||||
runs-on: ubuntu-slim
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
issues: write
|
||||
if: |
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'issues' && contains(fromJSON('["opened", "edited"]'), github.event.action) && github.event.sender.login != 'issuehunt-oss[bot]' && !contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association))
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'pnpm'
|
||||
- name: Install dependencies (pnpm) # import remark-parse and unified
|
||||
run: pnpm i
|
||||
- name: Check issue format
|
||||
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
||||
env:
|
||||
ISSUE_NUMBER: ${{ inputs.issue_number }}
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
const { default: checkIssue } = await import('${{ github.workspace }}/scripts/workflow/test-issue/check-issue.mjs')
|
||||
await checkIssue({ github, context, core })
|
||||
|
||||
Reference in New Issue
Block a user