orcaslicer/.github/workflows/orca_bot.yml

72 lines
2.7 KiB
YAML
Raw Normal View History

2023-11-05 13:42:50 +00:00
name: Orca bot
on:
schedule:
2023-11-06 06:20:04 +00:00
- cron: "0 0 * * *"
2024-07-01 13:32:02 +00:00
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
2023-11-05 13:42:50 +00:00
jobs:
stale:
2023-11-05 13:42:50 +00:00
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write # only for delete-branch option
2023-11-05 13:42:50 +00:00
steps:
- uses: actions/stale@v9
2023-11-05 13:42:50 +00:00
with:
# PAT for GitHub API authentication
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Max number of operations per run
operations-per-run: 1000
# Order to get issues/PRs
ascending: true
# ISSUES
# Do not auto-close an issue if it is assigned to a milestone
exempt-all-issue-milestones: true
# Exempt all issues with assignees from stale
exempt-all-issue-assignees: true
# Idle number of days before marking issues stale
2023-11-05 13:42:50 +00:00
days-before-issue-stale: 90
# Idle number of days before marking issues close
days-before-issue-close: 7
# Label to apply on staled issues
2023-11-05 13:42:50 +00:00
stale-issue-label: "stale"
# Issue close reason
close-issue-reason: not_planned
# Remove stale label from issues on updates
remove-issue-stale-when-updated: true
# Issue stale message
stale-issue-message: "Orca bot: this issue is stale because it has been open for 90 days with no activity."
# Issue closure message
close-issue-message: "Orca bot: This issue was closed because it has been inactive for 7 days since being marked as stale."
# PRs
# Do not auto-close a PR if it is assigned to a milestone
exempt-all-pr-milestones: true
# Exempt all PRs with assignees from stale
exempt-all-pr-assignees: true
# Skip the stale action for draft PRs
exempt-draft-pr: true
# Idle number of days before marking PRs stale
2023-11-05 13:42:50 +00:00
days-before-pr-stale: -1
# Idle number of days before marking PRs close
2023-11-05 13:42:50 +00:00
days-before-pr-close: -1
# Label to apply on staled PRs
stale-pr-label: "stale"
# Label to apply on closed PRs
close-pr-label: not_planned
# Remove stale label from PRs on updates
remove-pr-stale-when-updated: true
# PR stale message
stale-pr-message: "Orca bot: this PR is stale because it has been open for XX days with no activity."
# PR closure message
close-pr-message: "Orca bot: This PR was closed because it has been inactive for X days since being marked as stale."
# Delete branch after closing a stale PR
delete-branch: true