Skip to content

LinkBot fails to recognize 'Closes' and 'Resolves' keywords #1465

@cheese-cakee

Description

@cheese-cakee

Beginner Friendly

This issue is intended for contributors who are new to the Hiero Python SDK.

Problem Description

The \�ot-pr-missing-linked-issue\ workflow currently uses a strict regex that only matches \Fixes. It fails to recognize standard GitHub closing keywords like \Closes\ and \Resolves.

  • File: .github/scripts/bot-pr-missing-linked-issue.js\
  • Current Regex: /\bFixes\s*:?\s*(#\d+)(\s*,\s*#\d+)*/i\

This causes the bot to complain even when a PR correctly uses \Closes #123.

Expected Solution

Update the regex to support all standard GitHub closing keywords: \Fixes, \Closes, and \Resolves\ (case-insensitive).

Implementation Steps

  1. Locate .github/scripts/bot-pr-missing-linked-issue.js.
  2. Find the line defining \const regex.
  3. Update the regex to: /\b(Fixes|Closes|Resolves)\s*:?\s*(#\d+)(\s*,\s*#\d+)*/i\

Acceptance Criteria

Additional Context

Metadata

Metadata

Labels

beginnerAchievable by a fairly new comer that has already completed a couple of good first issuesjavascriptUses Javascript programming language

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions