Copilot commented on code in PR #901: URL: https://github.com/apache/iceberg-cpp/pull/901#discussion_r3861406927
########## .github/workflows/stale-prs.yml: ########## @@ -0,0 +1,58 @@ +# 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. + +# Borrowed the file from Apache Parquet-Java: +# https://github.com/apache/parquet-java/blob/master/.github/workflows/stale-prs.yml + +name: Stale pull requests + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +permissions: + pull-requests: write + issues: write + +jobs: + stale: + runs-on: ubuntu-slim Review Comment: `runs-on: ubuntu-slim` is not a standard GitHub-hosted runner label, so this workflow is likely to fail to start. Use a supported runner label such as `ubuntu-latest` (or a pinned version like `ubuntu-24.04`) unless you have a self-hosted runner explicitly registered with the `ubuntu-slim` label. ########## .github/workflows/stale-prs.yml: ########## @@ -0,0 +1,58 @@ +# 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. + +# Borrowed the file from Apache Parquet-Java: +# https://github.com/apache/parquet-java/blob/master/.github/workflows/stale-prs.yml + +name: Stale pull requests + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +permissions: + pull-requests: write + issues: write + +jobs: + stale: + runs-on: ubuntu-slim + steps: + - name: Mark and close stale pull requests + uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + # Don't touch issues. + days-before-issue-stale: -1 + days-before-issue-close: -1 + # PRs stale after 1 month of inactivity and closed 1 week later. + days-before-pr-stale: 30 + days-before-pr-close: 7 + stale-pr-label: stale + stale-pr-message: > + This pull request has been automatically marked as stale because it has + had no activity for at least 1 month. If you are still working on this + change or plan to move it forward, please leave a comment or push a new + commit so we know to keep it open. Otherwise, this PR will be closed + automatically in about one week. Thank you for your contribution to + Apache Iceberg! + close-pr-message: > + Closing this pull request due to at least 1 month of inactivity. If you + would like to continue the work, please feel free to reopen this pull + request or open a new one. Thank you for your contribution to + Apache Iceberg! Review Comment: Both messages hardcode `Apache Iceberg!`, which looks like a copy/paste artifact from another repository and may be incorrect for this repo. Make the messages repo-agnostic (e.g., remove the project name) or interpolate the current repository (e.g., `${{ github.repository }}`) so the workflow doesn’t need future edits when reused. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
