Skip to content

Latest commit

 

History

History
85 lines (68 loc) · 4.54 KB

stale.md

File metadata and controls

85 lines (68 loc) · 4.54 KB

GitHub Reusable Workflow: Stale

Reusable workflow to manage stale issues and pull requests. Mainly using Stale Action, with some opinionated defaults.

name: Mark stale issues and pull requests

on:
  schedule:
    - cron: "30 1 * * *"

permissions:
  issues: write
  pull-requests: write

jobs:
  main:
    uses: hoverkraft-tech/ci-github-common/.github/workflows/[email protected]

    # Optional customizations.
    with:
      # Comment on the staled issues.
      # See https://github.com/actions/stale#stale-issue-message
      # Default: "This issue is stale"
      stale-issue-message: ""

      # Comment on the staled PRs.
      # See https://github.com/actions/stale#stale-pr-message
      # Default: "This PR is stale"
      stale-pr-message: ""

      # Label to apply on staled issues.
      # See https://github.com/actions/stale#stale-issue-label
      # Default: "no-issue-activity"
      stale-issue-label: ""

      # Labels on issues exempted from stale.
      # See https://github.com/actions/stale#exempt-issue-labels
      # Default: "awaiting-approval,work-in-progress"
      exempt-issue-labels: ""

      # Label to apply on staled PRs.
      # See https://github.com/actions/stale#stale-pr-label
      # Default: "no-pr-activity"
      stale-pr-label: ""

      # Labels on PRs exempted from stale.
      # See https://github.com/actions/stale#exempt-pr-labels
      # Default: "awaiting-approval,work-in-progress"
      exempt-pr-labels: ""
Input Description Default Required
runs-on Json array of runner(s) to use. See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job ["ubuntu-latest"] false
stale-issue-message Comment on the staled issues. See https://github.com/actions/stale#stale-issue-message This issue is stale false
stale-pr-message Comment on the staled PRs. See https://github.com/actions/stale#stale-pr-message This PR is stale false
stale-issue-label Label to apply on staled issues. See https://github.com/actions/stale#stale-issue-label no-issue-activity false
exempt-issue-labels Labels on issues exempted from stale. See https://github.com/actions/stale#exempt-issue-labels awaiting-approval,work-in-progress false
stale-pr-label Label to apply on staled PRs. See https://github.com/actions/stale#stale-pr-label no-pr-activity false
exempt-pr-labels Labels on PRs exempted from stale. See https://github.com/actions/stale#exempt-pr-labels awaiting-approval,work-in-progress false