Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apache/arrow-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 100783c0893901cb2a381d592b544f582da89e02
Choose a base ref
..
head repository: apache/arrow-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 37d8ebb9a42f3f580cbc1d1ec1ede0cfd0745f51
Choose a head ref
Showing with 6,510 additions and 263 deletions.
  1. +20 −0 .editorconfig
  2. +57 −0 .env
  3. +56 −0 .github/CODEOWNERS
  4. +29 −0 .github/ISSUE_TEMPLATE/bug_report.yaml
  5. +18 −0 .github/ISSUE_TEMPLATE/config.yml
  6. +32 −0 .github/ISSUE_TEMPLATE/feature_request.yaml
  7. +52 −0 .github/ISSUE_TEMPLATE/usage_question.yaml
  8. +1 −1 .github/dependabot.yml
  9. +42 −0 .github/workflows/comment_bot.yml
  10. +52 −0 .github/workflows/dev.yml
  11. +147 −0 .github/workflows/test.yml
  12. +267 −0 .github/workflows/test_jni.yml
  13. +6 −1 .gitignore
  14. +3 −0 .gitmodules
  15. +52 −0 .pre-commit-config.yaml
  16. +24 −0 CODE_OF_CONDUCT.md
  17. +58 −0 CONTRIBUTING.md
  18. +217 −0 LICENSE.txt
  19. +5 −0 NOTICE.txt
  20. +1 −1 adapter/jdbc/src/test/resources/h2/comment.sql
  21. +3 −3 adapter/jdbc/src/test/resources/h2/test1_all_datatypes_h2.yml
  22. +4 −4 adapter/jdbc/src/test/resources/h2/test1_all_datatypes_null_h2.yml
  23. +1 −1 adapter/jdbc/src/test/resources/h2/test1_charset_ch_h2.yml
  24. +1 −1 adapter/jdbc/src/test/resources/h2/test1_charset_h2.yml
  25. +1 −1 adapter/jdbc/src/test/resources/h2/test1_charset_jp_h2.yml
  26. +1 −1 adapter/jdbc/src/test/resources/h2/test1_charset_kr_h2.yml
  27. +0 −1 adapter/jdbc/src/test/resources/h2/test1_est_timestamp_h2.yml
  28. +1 −1 adapter/jdbc/src/test/resources/h2/test1_gmt_date_h2.yml
  29. +1 −1 adapter/jdbc/src/test/resources/h2/test1_gmt_time_h2.yml
  30. +1 −1 adapter/jdbc/src/test/resources/h2/test1_gmt_timestamp_h2.yml
  31. +8 −8 adapter/jdbc/src/test/resources/h2/test1_int_h2.yml
  32. +1 −1 adapter/jdbc/src/test/resources/h2/test1_map_h2.yml
  33. +1 −1 adapter/jdbc/src/test/resources/h2/test1_null_and_notnull.yml
  34. +1 −1 adapter/jdbc/src/test/resources/h2/test1_null_h2.yml
  35. +1 −1 adapter/jdbc/src/test/resources/h2/test1_pst_date_h2.yml
  36. +1 −1 adapter/jdbc/src/test/resources/h2/test1_pst_time_h2.yml
  37. +1 −1 adapter/jdbc/src/test/resources/h2/test1_pst_timestamp_h2.yml
  38. +4 −4 adapter/jdbc/src/test/resources/h2/test1_selected_datatypes_null_h2.yml
  39. +2 −0 adapter/orc/src/test/java/org/apache/arrow/adapter/orc/OrcReaderTest.java
  40. +52 −0 arrow-format/File.fbs
  41. +645 −0 arrow-format/Flight.proto
  42. +1,925 −0 arrow-format/FlightSql.proto
  43. +157 −0 arrow-format/Message.fbs
  44. +19 −0 arrow-format/README.rst
  45. +571 −0 arrow-format/Schema.fbs
  46. +228 −0 arrow-format/SparseTensor.fbs
  47. +54 −0 arrow-format/Tensor.fbs
  48. +169 −0 arrow-format/substrait/extension_types.yaml
  49. +2 −2 c/src/test/python/integration_tests.py
  50. +30 −0 ci/docker/conda-jni.dockerfile
  51. +46 −0 ci/docker/vcpkg-jni.dockerfile
  52. +86 −0 ci/scripts/java_build.sh
  53. +57 −0 ci/scripts/java_test.sh
  54. +81 −0 ci/scripts/jni_build.sh
  55. +74 −0 ci/scripts/jni_full_build.sh
  56. +146 −0 ci/scripts/jni_macos_build.sh
  57. +178 −0 ci/scripts/jni_manylinux_build.sh
  58. +1 −1 dataset/pom.xml
  59. +1 −2 dataset/src/test/java/org/apache/arrow/dataset/TestAllTypes.java
  60. +0 −2 dataset/src/test/java/org/apache/arrow/dataset/TestDataset.java
  61. +1 −1 dataset/src/test/resources/substrait/local_files_users.json
  62. +1 −1 dataset/src/test/resources/substrait/named_table_users.json
  63. +59 −0 dev/release/check_rat_report.py
  64. +19 −0 dev/release/rat_exclude_files.txt
  65. +54 −0 dev/release/run_rat.sh
  66. +109 −0 docker-compose.yml
  67. +2 −2 flight/flight-core/pom.xml
  68. +1 −0 flight/flight-core/src/main/java/module-info.java
  69. +3 −4 flight/flight-core/src/test/proto/perf.proto
  70. +1 −1 flight/flight-sql-jdbc-core/pom.xml
  71. +1 −1 flight/flight-sql-jdbc-core/src/main/resources/META-INF/services/java.sql.Driver
  72. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Binary.java
  73. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/BinaryView.java
  74. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Block.java
  75. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/BodyCompression.java
  76. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/BodyCompressionMethod.java
  77. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Bool.java
  78. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Buffer.java
  79. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/CompressionType.java
  80. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Date.java
  81. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/DateUnit.java
  82. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Decimal.java
  83. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/DictionaryBatch.java
  84. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/DictionaryEncoding.java
  85. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/DictionaryKind.java
  86. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Duration.java
  87. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Endianness.java
  88. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Feature.java
  89. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Field.java
  90. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/FieldNode.java
  91. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/FixedSizeBinary.java
  92. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/FixedSizeList.java
  93. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/FloatingPoint.java
  94. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Footer.java
  95. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Int.java
  96. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Interval.java
  97. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/IntervalUnit.java
  98. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/KeyValue.java
  99. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/LargeBinary.java
  100. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/LargeList.java
  101. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/LargeListView.java
  102. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/LargeUtf8.java
  103. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/List.java
  104. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/ListView.java
  105. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Map.java
  106. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Message.java
  107. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/MessageHeader.java
  108. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/MetadataVersion.java
  109. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Null.java
  110. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Precision.java
  111. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/RecordBatch.java
  112. +1 −2 format/src/main/java/org/apache/arrow/flatbuf/RunEndEncoded.java
  113. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Schema.java
  114. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/SparseMatrixCompressedAxis.java
  115. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/SparseMatrixIndexCSX.java
  116. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/SparseTensor.java
  117. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/SparseTensorIndex.java
  118. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/SparseTensorIndexCOO.java
  119. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/SparseTensorIndexCSF.java
  120. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Struct_.java
  121. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Tensor.java
  122. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/TensorDim.java
  123. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Time.java
  124. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/TimeUnit.java
  125. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Timestamp.java
  126. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Type.java
  127. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Union.java
  128. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/UnionMode.java
  129. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Utf8.java
  130. +0 −1 format/src/main/java/org/apache/arrow/flatbuf/Utf8View.java
  131. +0 −71 pom.xml
  132. +1 −0 testing
  133. +8 −12 tools/src/test/java/org/apache/arrow/tools/TestIntegration.java
  134. +98 −0 tools/src/test/resources/integration_json_simple.json
  135. +201 −0 tools/src/test/resources/integration_json_struct.json
  136. +1 −1 vector/src/main/codegen/includes/license.ftl
  137. +0 −2 vector/src/main/codegen/includes/vv_imports.ftl
  138. +0 −3 vector/src/main/codegen/templates/AbstractFieldReader.java
  139. +2 −2 vector/src/main/codegen/templates/AbstractFieldWriter.java
  140. +1 −3 vector/src/main/codegen/templates/ArrowType.java
  141. +8 −9 vector/src/main/codegen/templates/BaseReader.java
  142. +1 −1 vector/src/main/codegen/templates/ComplexCopier.java
  143. +10 −12 vector/src/main/codegen/templates/ComplexReaders.java
  144. +1 −1 vector/src/main/codegen/templates/ComplexWriters.java
  145. +17 −20 vector/src/main/codegen/templates/NullReader.java
  146. +2 −2 vector/src/main/codegen/templates/StructWriters.java
  147. +1 −1 vector/src/main/codegen/templates/UnionFixedSizeListWriter.java
  148. +1 −1 vector/src/main/codegen/templates/UnionReader.java
  149. +5 −5 vector/src/main/codegen/templates/ValueHolders.java
  150. +4 −4 vector/src/test/java/org/apache/arrow/vector/ipc/TestJSONFile.java
  151. +201 −0 vector/src/test/resources/integration_json_struct.json
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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.

[*.sh]
indent_style = space
indent_size = 2
57 changes: 57 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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.

# All of the following environment variables are required to set default values
# for the parameters in docker-compose.yml.

# empty prefix means that the docker-compose configuration will use named
# volumes which potentially improves the performance on docker for macos and
# docker for windows, it also prevents the contamination of the source
# directory
# a non-empty prefix means that directories from the host are bind-mounted
# into the container, it should be set to ".docker/" on github actions to keep
# the cache plugin functional
DOCKER_VOLUME_PREFIX=

# turn on inline build cache, this is a docker buildx feature documented
# at https://github.com/docker/buildx#--cache-tonametypetypekeyvalue
BUILDKIT_INLINE_CACHE=1
COMPOSE_DOCKER_CLI_BUILD=1
DOCKER_BUILDKIT=1

# different architecture notations
ARCH=amd64
ARCH_ALIAS=x86_64
ARCH_SHORT=amd64

# Default repository to pull and push images from
REPO=ghcr.io/apache/arrow-java-dev
ARROW_REPO=apache/arrow-dev

# The setup attempts to generate coredumps by default, in order to disable the
# coredump generation set it to 0
ULIMIT_CORE=-1

# Default versions for various dependencies
JDK=11
MAVEN=3.9.9

# Versions for various dependencies used to build artifacts
# Keep in sync with apache/arrow
ARROW_REPO_ROOT=./arrow
PYTHON=3.9
VCPKG="943c5ef1c8f6b5e6ced092b242c8299caae2ff01" # 2024.04.26 Release
56 changes: 56 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 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.
#
# Any committer can add themselves to any of the path patterns
# and will subsequently get requested as a reviewer for any PRs
# that change matching files.
#
# This file uses .gitignore syntax with a few exceptions see the
# documentation about the syntax: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

# modules
/adapter/ @lidavidm @laurentgo @wgtmac
/algorithm/ @lidavidm @laurentgo @wgtmac
/arrow-format/ @lidavidm @laurentgo @wgtmac
/c/ @lidavidm @laurentgo @wgtmac
/compression/ @lidavidm @laurentgo @wgtmac
/dataset/ @lidavidm @laurentgo @wgtmac
/flight/ @lidavidm @laurentgo @wgtmac
/format/ @lidavidm @laurentgo @wgtmac
/gandiva/ @lidavidm @laurentgo @wgtmac
/memory/ @lidavidm @laurentgo @wgtmac
/performance/ @lidavidm @laurentgo @wgtmac
/tools/ @lidavidm @laurentgo @wgtmac
/vector/ @lidavidm @laurentgo @wgtmac
CMakeLists.txt @lidavidm @laurentgo @wgtmac

# release scripts
/ci/ @lidavidm @laurentgo @wgtmac @kou
/dev/ @lidavidm @laurentgo @wgtmac @kou

# PR CI and repository files
/.github/ @lidavidm @laurentgo @wgtmac @kou
/.asf.yaml @lidavidm @laurentgo @wgtmac @kou
/.env @lidavidm @laurentgo @wgtmac
/.pre-commit-config.yaml @lidavidm @laurentgo @wgtmac
/Brewfile @lidavidm @laurentgo @wgtmac
/docker-compose.yaml @lidavidm @laurentgo @wgtmac

# Java specific
/.mvn/ @lidavidm @laurentgo @wgtmac
/bom/ @lidavidm @laurentgo @wgtmac
pom.xml @lidavidm @laurentgo @wgtmac
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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: Bug Report
description: File a bug report
labels: ["Type: bug"]
assignees: []
body:
- type: textarea
id: description
attributes:
label: Describe the bug, including details regarding any error messages, version, and platform.
description: Please include what you expected.
validations:
required: true
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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.

blank_issues_enabled: false
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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: Enhancement Request
description: Request an enhancement to the project
labels: ["Type: enhancement"]
assignees: []
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to share your feedback on ways Apache Arrow can be improved!
- type: textarea
id: description
attributes:
label: Describe the enhancement requested
validations:
required: true
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/usage_question.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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: Usage Question
description: Ask a question
labels: ["Type: usage"]
assignees: []
body:
- type: markdown
attributes:
value: >
While we enable issues as a mechanism for new contributors and passers-by who
are unfamiliar with Apache Software Foundation projects to ask questions and
interact with the project, we encourage users to ask such questions on public
mailing lists:
* Development discussions: dev@arrow.apache.org (first subscribe by sending an
e-mail to dev-subscribe@arrow.apache.org).
* User discussions: user@arrow.apache.org (first subscribe by sending an e-mail
to user-subscribe@arrow.apache.org).
* Mailing list archives: https://arrow.apache.org/community/
Do not be surprised by responses to issues raised here directing you to those
mailing lists, or to report a bug or feature request here.
Thank you!
- type: textarea
id: description
attributes:
label: >
Describe the usage question you have. Please include as many useful details as
possible.
validations:
required: true
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -29,5 +29,5 @@ updates:
schedule:
interval: "weekly"
commit-message:
prefix: "MINOR: [Java] "
prefix: "MINOR: "
open-pull-requests-limit: 10
42 changes: 42 additions & 0 deletions .github/workflows/comment_bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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: Comment Bot
on:
issue_comment:
types:
- created
- edited
jobs:
issue_assign:
name: "Assign issue"
permissions:
contents: read
issues: write
if: github.event.comment.body == 'take'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |-
github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.issue.number,
assignees: context.payload.comment.user.login
});
52 changes: 52 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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

on:
pull_request: {}
push: {}

concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions:
contents: read

jobs:
pre-commit:
name: "pre-commit"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: pre-commit (cache)
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: pre-commit (--all-files)
run: |
python -m pip install pre-commit
pre-commit run --show-diff-on-failure --color=always --all-files
Loading