Skip to content

Commit

Permalink
Add action for locking issues as a reusable helper (#104)
Browse files Browse the repository at this point in the history
Instead of copying the same workflow between multiple repositories,
create a common configurable action that currently works as a simple
proxy to dessant/lock-threads.
  • Loading branch information
sairon authored Mar 4, 2024
1 parent 49f78a6 commit 1ddf21b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions helpers/lock-issues/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Home Assitant helper: Lock old issues/PRs"
description: "Github action helper: Lock old issues/PRs"

inputs:
issue-inactive-days:
description: "Number of days before locking inactive issues."
default: "30"
required: false
pr-inactive-days:
description: "Number of days before locking inactive PRs."
default: "1"
required: false
exclude-issue-created-before:
description: "Date to ignore issues older than (ISO 8601 format)."
required: false
default: ""
exclude-pr-created-before:
description: "Date to ignore PRs older than (ISO 8601 format)."
required: false
default: ""

runs:
using: "composite"
steps:
- uses: dessant/[email protected]
with:
issue-inactive-days: ${{ inputs.issue-inactive-days }}
exclude-issue-created-before: ${{ inputs.exclude-issue-created-before }}
issue-lock-reason: ""
pr-inactive-days: ${{ inputs.pr-inactive-days }}
exclude-pr-created-before: ${{ inputs.exclude-pr-created-before }}
pr-lock-reason: ""

0 comments on commit 1ddf21b

Please sign in to comment.