liuguo09 commented on a change in pull request #261: Initial checkin nuttx 
github action CI workflow
URL: https://github.com/apache/incubator-nuttx/pull/261#discussion_r388692212
 
 

 ##########
 File path: .github/workflows/main.yml
 ##########
 @@ -0,0 +1,85 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+name: PR Check CI
+
+on:
+  pull_request:
 
 Review comment:
   > I see that it by default includes synchronize so probably fine to leave 
it, but I would drop the branch. Maybe we still want to keep the push but 
limited to branch master so there is always a build on master
   > something like this:
   > 
   > ```
   > on:
   >   pull_request
   >   push:
   >     branches: [master]
   > ```
   
   Yes, besides master branch, pull request check for feature branch would also 
be useful. 
   Now I use the pull request git log "Merge new-commit-id into old-commit-id" 
to filter commits in the PR and then do checkpatch.sh. But for master push, it 
should not work and skip. Just see the github action _job steps.if_ could be 
used to judge it. I'll update it later.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to