From ef8b6968975ff16ea145f65ffb9126464eb217af Mon Sep 17 00:00:00 2001 From: Andrew Ghostuhin Date: Mon, 8 Jun 2026 22:25:28 +0300 Subject: [PATCH] chore(github): allow project workflow dispatch --- .github/workflows/project.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/project.yaml b/.github/workflows/project.yaml index 25bd43fc..14f38000 100644 --- a/.github/workflows/project.yaml +++ b/.github/workflows/project.yaml @@ -5,6 +5,12 @@ on: types: - opened - transferred + workflow_dispatch: + inputs: + issue_url: + description: 'Issue URL to add to the project' + required: true + type: string jobs: add-to-project: @@ -23,5 +29,8 @@ jobs: - name: Add issue to project env: GH_TOKEN: ${{ steps.app-token.outputs.token }} - ISSUE_URL: ${{ github.event.issue.html_url }} - run: gh project item-add 39 --owner atls --url "$ISSUE_URL" + EVENT_ISSUE_URL: ${{ github.event.issue.html_url }} + DISPATCH_ISSUE_URL: ${{ inputs.issue_url }} + run: | + issue_url="${EVENT_ISSUE_URL:-$DISPATCH_ISSUE_URL}" + gh project item-add 39 --owner atls --url "$issue_url"