You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/devin_validate_chain_request.yml
+41-12Lines changed: 41 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,44 @@ name: Trigger Devin for New Chain Request Validation
3
3
on:
4
4
issues:
5
5
types: [labeled]
6
+
workflow_dispatch:
7
+
inputs:
8
+
issue_number:
9
+
description: "Issue number for debugging"
10
+
required: true
11
+
type: string
12
+
issue_title:
13
+
description: "Issue title for debugging"
14
+
required: true
15
+
type: string
16
+
issue_url:
17
+
description: "Issue URL for debugging"
18
+
required: true
19
+
type: string
20
+
issue_author:
21
+
description: "Issue author username for debugging"
22
+
required: true
23
+
type: string
24
+
issue_body:
25
+
description: "Issue body content for debugging"
26
+
required: true
27
+
type: string
28
+
label_name:
29
+
description: 'Label name for debugging (should be "type: new chain request")'
30
+
required: true
31
+
type: string
32
+
default: "type: new chain request"
6
33
7
34
permissions:
8
35
contents: read # Required to read issue content
9
36
issues: read # Required to read issue details
10
37
11
38
jobs:
12
39
trigger-devin-chain-validation:
13
-
# This job runs only if the issue was labeled with 'type: new chain request'
40
+
# This job runs only if the issue was labeled with 'type: new chain request' OR if manually triggered
14
41
if: |
15
-
github.event.label.name == 'type: new chain request'
42
+
github.event.label.name == 'type: new chain request' ||
43
+
(github.event_name == 'workflow_dispatch' && inputs.label_name == 'type: new chain request')
16
44
runs-on: ubuntu-latest
17
45
steps:
18
46
- name: Send Slack Notification for Chain Request Validation
@@ -22,15 +50,15 @@ jobs:
22
50
PROMPT_TEXT: |
23
51
## Context
24
52
25
-
A new issue (#${{ github.event.issue.number }}) has been labeled with "type: new chain request" in the ${{ github.repository }} repository. Your task is to validate this chain request for completeness and take appropriate action.
53
+
A new issue (#${{ github.event_name == 'workflow_dispatch' && inputs.issue_number || github.event.issue.number }}) has been labeled with "type: new chain request" in the ${{ github.repository }} repository. Your task is to validate this chain request for completeness and take appropriate action.
* ${{ github.repository }} (for commenting on the issue if needed)
68
96
* reown-com/web-monorepo (for creating the PR if request is valid)
69
97
70
-
Please proceed with validating issue #${{ github.event.issue.number }} and take the appropriate action based on your assessment.
98
+
Please proceed with validating issue #${{ github.event_name == 'workflow_dispatch' && inputs.issue_number || github.event.issue.number }} and take the appropriate action based on your assessment.
71
99
run: |
72
100
# Exit on error
73
101
set -e
@@ -100,10 +128,11 @@ jobs:
100
128
echo "Sending Slack notification for Chain Request Validation."
101
129
# Echo context information using direct GitHub context expressions for clarity and consistency.
0 commit comments