Apache DataFusion SQL Query Engine
ARROW-11159: [Developer] Consolidate pull request related jobs
Sutou Kouhei9bfa28c12e3c
diff --git a/.github/workflows/dev_jira.yml b/.github/workflows/dev_jira.ymldeleted file mode 100644index 6c301a0ce0..0000000000--- a/.github/workflows/dev_jira.yml+++ /dev/null@@ -1,52 +0,0 @@-# 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: PR JIRA integration--on:- pull_request_target:- types:- - opened- - edited--jobs:-- link:- name: Link- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v2- - name: Comment- uses: actions/github-script@v3- with:- github-token: ${{ secrets.GITHUB_TOKEN }}- script: |- const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/dev_jira/link.js`);- script({github, context});-- title-check:- name: Title check- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v2- - name: Check- uses: actions/github-script@v3- with:- github-token: ${{ secrets.GITHUB_TOKEN }}- script: |- const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/dev_jira/title_check.js`);- script({github, context});diff --git a/.github/workflows/dev_labeler.yml b/.github/workflows/dev_labeler.ymldeleted file mode 100644index bb4a8dbe2d..0000000000--- a/.github/workflows/dev_labeler.yml+++ /dev/null@@ -1,33 +0,0 @@-# 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: PR labeler-on:- pull_request_target:- types: [opened, reopened]--jobs:- label:- name: Label- runs-on: ubuntu-latest- steps:- - name: Assign Github labels- uses: actions/[email protected]- with:- repo-token: ${{ secrets.GITHUB_TOKEN }}- configuration-path: .github/workflows/dev_labeler/labeler.yml- sync-labels: truediff --git a/.github/workflows/dev_labeler_pr_rebase.yml b/.github/workflows/dev_labeler_pr_rebase.ymldeleted file mode 100644index a94603386c..0000000000--- a/.github/workflows/dev_labeler_pr_rebase.yml+++ /dev/null@@ -1,33 +0,0 @@-# 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: PR rebase needed labeler-on:- push:- pull_request_target:- types: [synchronize]--jobs:- label:- name: Label- runs-on: ubuntu-latest- steps:- - name: Checks if PR needs rebase- uses: eps1lon/actions-label-merge-conflict@releases/2.x- with:- dirtyLabel: "needs-rebase"- repoToken: "${{ secrets.GITHUB_TOKEN }}"diff --git a/.github/workflows/dev_pr.yml b/.github/workflows/dev_pr.ymlnew file mode 100644index 0000000000..7b92b89705--- /dev/null+++ b/.github/workflows/dev_pr.yml@@ -0,0 +1,83 @@+# 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: Dev PR++on:+ # TODO: Enable this when eps1lon/actions-label-merge-conflict is available.+ # push:+ # branches:+ # - master+ pull_request_target:+ types:+ - opened+ - edited+ - synchronize++jobs:+ process:+ name: Process+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v2++ - name: Comment JIRA link+ if: |+ github.event_name == 'pull_request_target' &&+ (github.event.action == 'opened' ||+ github.event.action == 'edited')+ uses: actions/github-script@v3+ with:+ github-token: ${{ secrets.GITHUB_TOKEN }}+ script: |+ const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/dev_pr/link.js`);+ script({github, context});++ - name: Check title+ if: |+ github.event_name == 'pull_request_target' &&+ (github.event.action == 'opened' ||+ github.event.action == 'edited')+ uses: actions/github-script@v3+ with:+ github-token: ${{ secrets.GITHUB_TOKEN }}+ script: |+ const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/dev_pr/title_check.js`);+ script({github, context});++ - name: Assign GitHub labels+ if: |+ github.event_name == 'pull_request_target' &&+ (github.event.action == 'opened' ||+ github.event.action == 'synchronize')+ uses: actions/[email protected]+ with:+ repo-token: ${{ secrets.GITHUB_TOKEN }}+ configuration-path: .github/workflows/dev_pr/labeler.yml+ sync-labels: true++ # TODO: Enable this when eps1lon/actions-label-merge-conflict is available.+ # - name: Checks if PR needs rebase+ # if: |+ # github.event_name == 'push' ||+ # (github.event_name == 'pull_request_target' &&+ # (github.event.action == 'opened' ||+ # github.event.action == 'synchronize'))+ # uses: eps1lon/actions-label-merge-conflict@releases/2.x+ # with:+ # dirtyLabel: "needs-rebase"+ # repoToken: "${{ secrets.GITHUB_TOKEN }}"diff --git a/.github/workflows/dev_labeler/labeler.yml b/.github/workflows/dev_pr/labeler.ymlsimilarity index 100%rename from .github/workflows/dev_labeler/labeler.ymlrename to .github/workflows/dev_pr/labeler.ymldiff --git a/.github/workflows/dev_jira/link.js b/.github/workflows/dev_pr/link.jssimilarity index 100%rename from .github/workflows/dev_jira/link.jsrename to .github/workflows/dev_pr/link.jsdiff --git a/.github/workflows/dev_jira/title_check.js b/.github/workflows/dev_pr/title_check.jssimilarity index 96%rename from .github/workflows/dev_jira/title_check.jsrename to .github/workflows/dev_pr/title_check.jsindex a6ce92cc75..2a8d654567 100644--- a/.github/workflows/dev_jira/title_check.js+++ b/.github/workflows/dev_pr/title_check.js@@ -34,7 +34,7 @@ async function commentOpenJIRAIssue(github, context, pullRequestNumber) {if (comments.length > 0) {return;}- const commentPath = ".github/workflows/dev_jira/title_check.md";+ const commentPath = ".github/workflows/dev_pr/title_check.md";const comment = fs.readFileSync(commentPath).toString();await github.issues.createComment({owner: context.repo.owner,diff --git a/.github/workflows/dev_jira/title_check.md b/.github/workflows/dev_pr/title_check.mdsimilarity index 100%rename from .github/workflows/dev_jira/title_check.mdrename to .github/workflows/dev_pr/title_check.md