Skip to content

feat: support for manual workflow dispatch #16

Open

Description

@ShubhamTiwary914

bot works in context of PR opens & changes, but on workflow dispath such as:

on:
  pull_request:
    types: [opened, reopened, synchronize]
  workflow_dispatch:
    inputs:
      pr_number:
        description: "Pull request number to review"
        required: true
        type: number

can't refer to the pr_number provided

Error: No pull request context found. This action must be run on pull_request events
    at getInputs (file:///home/runner/work/_actions/Souvikns/kitsu/main/dist/index.js:214004:11)
    at main (file:///home/runner/work/_actions/Souvikns/kitsu/main/dist/index.js:214051:1[8](https://github.com/ShubhamTiwary914/kitsutest/actions/runs/23131762534/job/67186483009#step:3:9))
    at file:///home/runner/work/_actions/Souvikns/kitsu/main/dist/index.js:214068:1
    at ModuleJob.run (node:internal/modules/esm/module_job:325:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:606:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:[11](https://github.com/ShubhamTiwary914/kitsutest/actions/runs/23131762534/job/67186483009#step:3:12)7:5)

hence some field like pr_id which can allow for manual trigger on that PR if needed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions