Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ If they don't match, it describes how to make the updates to include the changes
- basic
- integration

### close-prs Workflow
[This](./workflows/close-pending.yaml) workflow is scheduled each night at midnight; it closes PR's that have not been updated in the last 21 days, while letting the author know they are free to reopen.
### close-stale-prs Workflow
[This](./workflows/close-stale-prs.yml) workflow is scheduled each night at midnight and uses the [actions/stale](https://github.com/actions/stale) to automatically manage inactive PRs. It marks PRs as stale after 21 days of inactivity and closes them 7 days later. If a stale PR receives any updates or comments, the stale label is automatically removed.

### comment-commands Workflow
[This](./workflows/comments.yaml) workflow is triggered each time a comment is added/edited to a PR. It checks to see if the body of the comment begins with one of the following strings and, if so, invokes the corresponding command.
Expand Down
41 changes: 0 additions & 41 deletions .github/close-pending.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .github/closing-message.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,27 @@
# 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: close-prs
name: close-stale-prs

on:
schedule:
- cron: '0 0 * * *'
- cron: '0 0 * * *'

jobs:
close-pending:
name: close-pending
runs-on: ubuntu-24.04
close-stale-prs:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Execute close-pending script
if: github.repository == 'apache/ozone'
run: ./.github/close-pending.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Close Stale PRs
uses: actions/stale@v10
with:
stale-pr-label: 'stale'
exempt-draft-pr: false
days-before-issue-stale: -1
days-before-pr-stale: 21
days-before-pr-close: 7
remove-pr-stale-when-updated: true
operations-per-run: 150
stale-pr-message: 'This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.'
close-pr-message: 'Thank you for your contribution. This PR is being closed due to inactivity. If needed, feel free to reopen it.'