bobbai00 commented on code in PR #4250: URL: https://github.com/apache/texera/pull/4250#discussion_r2907275033
########## .github/workflows/notify-on-ddl-change.yml: ########## @@ -0,0 +1,62 @@ +# 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: Notify on DDL Change + +on: + pull_request: + types: + - closed + +jobs: + notify: + if: >- + github.event.pull_request.merged == true && + contains(github.event.pull_request.labels.*.name, 'ddl-change') + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + sparse-checkout: sql/updates/ + + - name: Get added file in sql/updates/ + id: get_sql_file + run: | + FILE=$(git diff --name-only --diff-filter=A \ + ${{ github.event.pull_request.base.sha }} \ + ${{ github.event.pull_request.merge_commit_sha }} \ + -- 'sql/updates/') + echo "sql_file=$FILE" >> $GITHUB_OUTPUT + - name: Send email + uses: dawidd6/action-send-mail@v7 + with: + server_address: smtp.gmail.com + server_port: 465 + secure: true + username: ${{secrets.MAIL_USERNAME}} + password: ${{secrets.MAIL_PASSWORD}} + subject: Actions Required After Pulling Latest Update + to: [email protected] + from: ${{ github.event.pull_request.user.login }} + body: | + Hi all, + We have merged PR #${{ github.event.pull_request.number }} (${{ github.event.pull_request.html_url }}): ${{github.event.pull_request.title}}. To incorporate the change, please apply ${{ steps.get_sql_file.outputs.sql_file }} to your local Postgres instance and run common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala to generate jooq tables. Review Comment: JooqCodeGenerator has been removed in #3748 . Please change it to "To incorporate the change, please ..... and run sbt jooqGenerate to generate jooq classes" ########## .github/workflows/notify-on-ddl-change.yml: ########## @@ -0,0 +1,62 @@ +# 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: Notify on DDL Change + +on: + pull_request: + types: + - closed + +jobs: + notify: + if: >- + github.event.pull_request.merged == true && + contains(github.event.pull_request.labels.*.name, 'ddl-change') + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + sparse-checkout: sql/updates/ + + - name: Get added file in sql/updates/ + id: get_sql_file + run: | + FILE=$(git diff --name-only --diff-filter=A \ + ${{ github.event.pull_request.base.sha }} \ + ${{ github.event.pull_request.merge_commit_sha }} \ + -- 'sql/updates/') + echo "sql_file=$FILE" >> $GITHUB_OUTPUT + - name: Send email + uses: dawidd6/action-send-mail@v7 + with: + server_address: smtp.gmail.com + server_port: 465 + secure: true + username: ${{secrets.MAIL_USERNAME}} Review Comment: MAIL_USERNAME => NOREPLY_EMAIL_USERNAME ########## .github/workflows/notify-on-ddl-change.yml: ########## @@ -0,0 +1,62 @@ +# 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: Notify on DDL Change + +on: + pull_request: + types: + - closed + +jobs: + notify: + if: >- + github.event.pull_request.merged == true && + contains(github.event.pull_request.labels.*.name, 'ddl-change') + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + sparse-checkout: sql/updates/ + + - name: Get added file in sql/updates/ + id: get_sql_file + run: | + FILE=$(git diff --name-only --diff-filter=A \ + ${{ github.event.pull_request.base.sha }} \ + ${{ github.event.pull_request.merge_commit_sha }} \ + -- 'sql/updates/') + echo "sql_file=$FILE" >> $GITHUB_OUTPUT + - name: Send email + uses: dawidd6/action-send-mail@v7 + with: + server_address: smtp.gmail.com + server_port: 465 + secure: true + username: ${{secrets.MAIL_USERNAME}} + password: ${{secrets.MAIL_PASSWORD}} Review Comment: MAIL_PASSWORD => NOREPLY_EMAIL_PASSWORD ########## .github/workflows/notify-on-ddl-change.yml: ########## @@ -0,0 +1,62 @@ +# 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: Notify on DDL Change Review Comment: Rename the file and the action to : Automatic email notification on DDL change -- 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]
