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
{{ message }}
Repository navigation
Commit b988c4e
Browse filesBrowse the repository at this point in the historyBrowse files
- Add BuildPRCommentCondition helper in expressions.go
- Move PR-related functions to new pr.go file
- Use helper function to generate conditional expressions
- Simplify code organization and improve maintainability
Co-authored-by: pelikhan <[email protected]>
yaml.WriteString(" **IMPORTANT**: This workflow was triggered by a comment on a pull request. The repository has been automatically checked out to the PR's branch, not the default branch.\n")
2121
-
yaml.WriteString(" \n")
2122
-
yaml.WriteString(" ### What This Means\n")
2123
-
yaml.WriteString(" \n")
2124
-
yaml.WriteString(" - The current working directory contains the code from the pull request branch\n")
2125
-
yaml.WriteString(" - Any file operations you perform will be on the PR branch code\n")
2126
-
yaml.WriteString(" - You can inspect, analyze, and work with the PR changes directly\n")
2127
-
yaml.WriteString(" - The PR branch has been checked out using `gh pr checkout`\n")
2128
-
yaml.WriteString(" \n")
2129
-
yaml.WriteString(" ### Available Actions\n")
2130
-
yaml.WriteString(" \n")
2131
-
yaml.WriteString(" You can:\n")
2132
-
yaml.WriteString(" - Review the changes in the PR by examining files\n")
2133
-
yaml.WriteString(" - Run tests or linters on the PR code\n")
2134
-
yaml.WriteString(" - Make additional changes to the PR branch if needed\n")
2135
-
yaml.WriteString(" - Create commits on the PR branch (they will appear in the PR)\n")
2136
-
yaml.WriteString(" - Switch to other branches using `git checkout` if needed\n")
2137
-
yaml.WriteString(" \n")
2138
-
yaml.WriteString(" ### Current Branch Information\n")
2139
-
yaml.WriteString(" \n")
2140
-
yaml.WriteString(" To see which branch you're currently on, you can run:\n")
2141
-
yaml.WriteString(" ```bash\n")
2142
-
yaml.WriteString(" git branch --show-current\n")
2143
-
yaml.WriteString(" git log -1 --oneline\n")
2144
-
yaml.WriteString(" ```\n")
2145
-
yaml.WriteString(" \n")
2146
-
yaml.WriteString(" EOF\n")
2147
-
}
2148
-
2149
2086
// generatePostSteps generates the post-steps section that runs after AI execution
yaml.WriteString(" **IMPORTANT**: This workflow was triggered by a comment on a pull request. The repository has been automatically checked out to the PR's branch, not the default branch.\n")
94
+
yaml.WriteString(" \n")
95
+
yaml.WriteString(" ### What This Means\n")
96
+
yaml.WriteString(" \n")
97
+
yaml.WriteString(" - The current working directory contains the code from the pull request branch\n")
98
+
yaml.WriteString(" - Any file operations you perform will be on the PR branch code\n")
99
+
yaml.WriteString(" - You can inspect, analyze, and work with the PR changes directly\n")
100
+
yaml.WriteString(" - The PR branch has been checked out using `gh pr checkout`\n")
101
+
yaml.WriteString(" \n")
102
+
yaml.WriteString(" ### Available Actions\n")
103
+
yaml.WriteString(" \n")
104
+
yaml.WriteString(" You can:\n")
105
+
yaml.WriteString(" - Review the changes in the PR by examining files\n")
106
+
yaml.WriteString(" - Run tests or linters on the PR code\n")
107
+
yaml.WriteString(" - Make additional changes to the PR branch if needed\n")
108
+
yaml.WriteString(" - Create commits on the PR branch (they will appear in the PR)\n")
109
+
yaml.WriteString(" - Switch to other branches using `git checkout` if needed\n")
110
+
yaml.WriteString(" \n")
111
+
yaml.WriteString(" ### Current Branch Information\n")
112
+
yaml.WriteString(" \n")
113
+
yaml.WriteString(" To see which branch you're currently on, you can run:\n")
114
+
yaml.WriteString(" ```bash\n")
115
+
yaml.WriteString(" git branch --show-current\n")
116
+
yaml.WriteString(" git log -1 --oneline\n")
117
+
yaml.WriteString(" ```\n")
118
+
yaml.WriteString(" \n")
119
+
yaml.WriteString(" EOF\n")
120
+
}
121
+
122
+
// hasCommentRelatedTriggers checks if the workflow has any comment-related event triggers
0 commit comments