Skip to content

CHORE: Update PR Template to auto-close tasks#275

Draft
bewithgaurav wants to merge 7 commits into
mainfrom
bewithgaurav/update_pr_template
Draft

CHORE: Update PR Template to auto-close tasks#275
bewithgaurav wants to merge 7 commits into
mainfrom
bewithgaurav/update_pr_template

Conversation

@bewithgaurav
Copy link
Copy Markdown
Collaborator

@bewithgaurav bewithgaurav commented Oct 3, 2025

Work Item / Issue Reference

ADO Work Item: Closed AB#39110

GitHub Issue: #276


Summary

This pull request updates the pull request template to clarify how references to work items and issues should be formatted. The changes help ensure that references are properly closed when the pull request is merged.

Improvements to reference formatting:

  • Changed the ADO Work Item reference to use Closed AB#<WORK_ITEM_ID> instead of AB#<WORK_ITEM_ID>.
  • Changed the GitHub Issue reference to use Closes GitHub Issue: #<ISSUE_NUMBER> instead of GitHub Issue: #<ISSUE_NUMBER>.

Copilot AI review requested due to automatic review settings October 3, 2025 07:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the PR template to include auto-closing keywords for both ADO work items and GitHub issues, enabling automatic closure when PRs are merged.

Key Changes

  • Added "Closed" keyword before ADO work item references
  • Added "Closes" keyword before GitHub issue references

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions Bot added the pr-size: small Minimal code update label Oct 3, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 3, 2025

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

25%


📈 Total Lines Covered: 7018 out of 27134
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.build._deps.simdutf-src.src.haswell.implementation.cpp: 0.4%
mssql_python.pybind.build._deps.simdutf-src.src.implementation.cpp: 6.7%
mssql_python.pybind.build._deps.simdutf-src.include.simdutf.implementation.h: 10.4%
mssql_python.pybind.build._deps.simdutf-src.include.simdutf.scalar.utf16_to_utf8.utf16_to_utf8.h: 25.3%
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.pybind.ddbc_bindings.h: 59.7%
mssql_python.pybind.build._deps.simdutf-src.include.simdutf.internal.isadetection.h: 65.3%
mssql_python.row.py: 70.5%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python.pybind.ddbc_bindings.cpp: 74.2%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

Comment thread .github/PULL_REQUEST_TEMPLATE.MD Outdated
jahnvi480
jahnvi480 previously approved these changes Oct 6, 2025
@bewithgaurav
Copy link
Copy Markdown
Collaborator Author

bewithgaurav commented Oct 8, 2025

Instead of closing, we should target updating the Issue with a comment saying the PR fix has been merged and this will be released in the next release cycle. And then close the issue.

Copilot AI added 2 commits May 15, 2026 14:54
When a PR closes one or more GitHub issues and is merged into main, post a release-cycle heads-up comment on each linked issue. Closing remains driven by GitHub's native auto-close keywords in the PR template; this workflow only comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Per the design discussion on PR #275: GitHub issues should NOT auto-close on PR merge. Maintainers close them manually after the fix actually ships in a release. ADO work items, in contrast, still auto-close immediately via the native 'Fixed AB#<id>' keyword in the PR template.

- Template: drop 'Closes' from the GitHub Issue line so GitHub no longer auto-closes the issue at merge time. ADO line keeps 'Fixed AB#<id>' unchanged.

- Workflow: switch from GraphQL closingIssuesReferences (which goes empty without the Closes keyword) to a body-parser that extracts issue numbers from the template's 'GitHub Issue: #<N>' line. Tolerates legacy 'Closes/Fixes/Resolves' wording and comma-separated lists. Comments  never closes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added pr-size: medium Moderate update size and removed pr-size: small Minimal code update labels May 15, 2026
@bewithgaurav bewithgaurav force-pushed the bewithgaurav/update_pr_template branch from 6b5843f to 799d99d Compare May 15, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: medium Moderate update size

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants