Skip to content

fix(issues): restore 1778 spec to open/ (issue was accidentally closed)#1782

Merged
josecelano merged 2 commits into
torrust:developfrom
josecelano:fix/restore-1778-issue-spec-to-open
May 13, 2026
Merged

fix(issues): restore 1778 spec to open/ (issue was accidentally closed)#1782
josecelano merged 2 commits into
torrust:developfrom
josecelano:fix/restore-1778-issue-spec-to-open

Conversation

@josecelano

@josecelano josecelano commented May 13, 2026

Copy link
Copy Markdown
Member

Summary

Two fixes triggered by issue #1778 being accidentally closed when a spec-only PR was merged.

Changes

1. Restore 1778 spec to open/

docs/issues/open/1778-migrate-to-rust-edition-2024.md was moved to closed/ in PR #1781
because issue #1778 appeared closed on GitHub. It was closed automatically when a PR containing
the issue spec used Closes #1778 in the body. The implementation has not been done yet.

Issue #1778 has been reopened on GitHub.

2. Add PR-to-issue linking rules to skills

Update open-pull-request and create-issue skills to prevent the same mistake in the future:

  • open-pull-request/SKILL.md: replace the single Closes #N rule with an
    "Issue Linking Rules" section containing a decision table (Related to vs Closes)
    and a diff-based check to identify the PR type. Update the post-creation checklist.
  • create-issue/SKILL.md: add the Related to #N warning in the spec-first workflow
    overview and in Step 6 (spec-only PR), with a cross-reference to the open-pull-request skill.

Rule added:

PR type Keyword
Spec-only (no implementation) Related to #N
Implementation (with or without spec) Closes #N

Validation

  • linter markdown passes
  • linter cspell passes

Issue torrust#1778 was closed by the PR that merged the issue spec into the repo.
The implementation has not been done yet, so the issue and its spec
should remain open.

Issue torrust#1778 has been reopened on GitHub.
…create-issue

Clarify when to use 'Closes #N' vs 'Related to #N' in PR bodies:

- Spec-only PRs must use 'Related to #N' to avoid auto-closing the issue
  on merge. The issue should remain open until the implementation lands.
- Implementation PRs (spec+impl combined, or impl-only) use 'Closes #N'.

Changes:
- open-pull-request/SKILL.md: replace single 'Closes #N' rule with an
  'Issue Linking Rules' section containing a decision table and a diff-
  based check to identify the PR type; update post-creation checklist.
- create-issue/SKILL.md: add 'Related to' warning in the workflow overview
  and in the spec-only PR step (Step 6), with a cross-reference to the
  open-pull-request skill.
@josecelano josecelano requested a review from a team as a code owner May 13, 2026 17:47
@josecelano josecelano self-assigned this May 13, 2026
@josecelano josecelano requested a review from Copilot May 13, 2026 17:47
@josecelano

Copy link
Copy Markdown
Member Author

ACK f75f2c6

@josecelano josecelano merged commit 19131d7 into torrust:develop May 13, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores the Rust 2024 migration issue spec to docs/issues/open/ and updates agent skills to prevent spec-only PRs from accidentally closing implementation issues.

Changes:

  • Restores issue #1778 migration spec under open issue docs.
  • Adds spec-only vs implementation issue-linking guidance.
  • Updates create-issue workflow warnings for spec-only PRs.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
docs/issues/open/1778-migrate-to-rust-edition-2024.md Restores the open issue specification for Rust edition 2024 migration.
.github/skills/dev/planning/create-issue/SKILL.md Adds warnings to use non-closing issue references for spec-only PRs.
.github/skills/dev/git-workflow/open-pull-request/SKILL.md Adds issue-linking rules and post-creation checklist updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +79 to +81
- Diff touches only `docs/issues/` → spec-only → use `Related to #N`
- Diff touches source code, tests, or other non-spec files → implementation → use `Closes #N`
- Diff touches both spec and implementation → combined → use `Closes #N`

## Issue Linking Rules

GitHub auto-closes an issue when a merged PR body contains `Closes #N`, `Fixes #N`, or `Resolves #N`.
Comment on lines +150 to +151
> Use `Related to #<number>` in the PR body, never `Closes #<number>` / `Fixes #<number>` /
> `Resolves #<number>`. Those keywords trigger GitHub auto-close on merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants