Skip to content

Linked issue enforcer workflow closes PRs earlier than documented grace period #2243

Description

@ZainabTravadi

Description

The linked-issue enforcer workflow currently states that pull requests without linked issues are automatically closed after 3 days, but the workflow configuration passes HOURS_BEFORE_CLOSE: "12" to the enforcement script.

As a result, PRs may be closed after 12 hours instead of the documented 72-hour grace period, creating a contributor-facing inconsistency between the workflow policy and runtime behavior.

Expected behavior:
PRs without linked issues should remain open for the documented 3-day grace period before automatic closure.

Steps to reproduce

  1. Open a PR without linking an issue.
  2. Inspect .github/workflows/cron-enforcer-pr-linked-issue.yml.
  3. Observe:
  • workflow/header messaging mentions a 3-day grace period,
  • runtime configuration sets HOURS_BEFORE_CLOSE: "12".

Additional context

The enforcement script already supports configurable grace periods via the HOURS_BEFORE_CLOSE environment variable, so this appears to be a workflow configuration mismatch rather than a script logic issue.

Hedera network

No response

Version

v0.2.6

Operating system

None

Metadata

Metadata

Assignees

Labels

Good First IssueIssues which are ideal for a first time or new project contributor.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions