Skip to content

Commit e1e3af9

Browse files
DedacCopilot
andcommitted
Add workflow_dispatch trigger and bot support to fix-top-improvement
Enables manual triggering and allows github-actions[bot] to trigger the workflow when the weekly improvements issue is created via safe-outputs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c74b7a0 commit e1e3af9

2 files changed

Lines changed: 29 additions & 18 deletions

File tree

‎.github/workflows/fix-top-improvement.lock.yml‎

Lines changed: 23 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/fix-top-improvement.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ description: Automatically implements the highest priority improvement from the
33
on:
44
issues:
55
types: [opened]
6-
if: startsWith(github.event.issue.title, 'Weekly Improvements:')
6+
workflow_dispatch:
7+
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.issue.title, 'Weekly Improvements:')
8+
bots: ["github-actions[bot]"]
79
permissions:
810
contents: read
911
issues: read
@@ -35,9 +37,10 @@ You are a senior .NET/Blazor developer working on the **Beam** application — a
3537

3638
## Context
3739

38-
This workflow is triggered when the weekly improvements report issue is created. Your job is to read the issue, extract the **#1 highest priority improvement**, and implement it as a pull request.
40+
This workflow is triggered when the weekly improvements report issue is created, or manually via workflow_dispatch. Your job is to find the latest weekly improvements issue, extract the **#1 highest priority improvement**, and implement it as a pull request.
3941

40-
The triggering issue number is: #${{ github.event.issue.number }}
42+
If triggered by an issue event, the triggering issue number is: #${{ github.event.issue.number }}
43+
If triggered manually, use the GitHub tools to search for the most recent open issue with the title prefix "Weekly Improvements:" and the label "improvements".
4144

4245
## Your Task
4346

0 commit comments

Comments
 (0)