Copilot commented on code in PR #3291:
URL: https://github.com/apache/apisix-dashboard/pull/3291#discussion_r2872345271


##########
.github/workflows/lint.yml:
##########
@@ -0,0 +1,45 @@
+name: Lint
+
+on:
+  push:
+    branches:
+      - "**"

Review Comment:
   The workflow is configured to run on both `push` and `pull_request` for all 
branches. For branches that have an open PR, each commit will trigger two runs 
(one for `push` and one for `pull_request`), doubling CI load and making checks 
noisier. Consider removing the `push` trigger, restricting `push` to the 
default branch, or adding an `if:` guard so only one event runs for PR branches.
   ```suggestion
         - main
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to