damccorm commented on code in PR #27758:
URL: https://github.com/apache/beam/pull/27758#discussion_r1283215089


##########
.github/actions/setup-action/action.yml:
##########
@@ -0,0 +1,69 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you 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: 'Setup action'
+description: 'Setup repository and configure the required steps'
+inputs:
+  comment_phrase:
+    description: "The comment phrase in the PR"
+    required: true
+  github_token:
+    description: "The GitHub token"
+    required: true
+  pull_request_url:
+    description: "The URL of the PR"
+    required: false
+    default: ''
+  github_repository:
+    description: "The GitHub repository"
+    required: false
+    default: ''
+  github_job:
+    description: "The GitHub job"
+    required: false
+    default: ''
+  github_current_run_id:
+    description: "The GitHub current run id. Not the same that is fetched in 
this action"
+    required: false
+    default: ''
+
+runs:
+  using: composite
+  steps:
+    - name: Check out repository code
+      uses: actions/checkout@v3

Review Comment:
   Does having 2 checkout actions actually work? Does it check out 2 copies of 
the repo or does it actually overwrite the existing one?
   
   I was anticipating this being a bash step like
   
   `git fetch origin ${{ github.event.pull_request.head.sha }} && git checkout 
${{ github.event.pull_request.head.sha }}`



##########
.github/actions/setup-action/action.yml:
##########
@@ -0,0 +1,69 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you 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: 'Setup action'
+description: 'Setup repository and configure the required steps'
+inputs:
+  comment_phrase:
+    description: "The comment phrase in the PR"
+    required: true
+  github_token:
+    description: "The GitHub token"
+    required: true
+  pull_request_url:
+    description: "The URL of the PR"
+    required: false
+    default: ''
+  github_repository:
+    description: "The GitHub repository"
+    required: false
+    default: ''
+  github_job:
+    description: "The GitHub job"
+    required: false
+    default: ''
+  github_current_run_id:

Review Comment:
   Question: I know this was partially pulled from the rerun action bit, but 
can't we just get a lot of these from the github context object? Do we actually 
need to have them all passed in as params?



##########
.github/actions/setup-action/action.yml:
##########
@@ -0,0 +1,69 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you 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: 'Setup action'
+description: 'Setup repository and configure the required steps'
+inputs:
+  comment_phrase:
+    description: "The comment phrase in the PR"
+    required: true
+  github_token:
+    description: "The GitHub token"
+    required: true
+  pull_request_url:
+    description: "The URL of the PR"
+    required: false
+    default: ''
+  github_repository:
+    description: "The GitHub repository"
+    required: false
+    default: ''
+  github_job:
+    description: "The GitHub job"
+    required: false
+    default: ''
+  github_current_run_id:
+    description: "The GitHub current run id. Not the same that is fetched in 
this action"
+    required: false
+    default: ''
+
+runs:
+  using: composite
+  steps:
+    - name: Check out repository code
+      uses: actions/checkout@v3

Review Comment:
   If it works, that's great, I'm just surprised



-- 
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