GitHub Copilot: Generate Pull Request Titles on github.com

GitHub Copilot

GitHub has made Copilot-generated pull request titles generally available on github.com, allowing developers to click a Copilot button in the PR title field to receive an AI-generated title based on the commits included in the pull request.


Copilot-Generated PR Titles Now Generally Available

GitHub has made Copilot-generated pull request titles generally available on github.com. Developers can now click a Copilot button directly in the PR title field to receive an AI-generated title based on the commits included in the pull request. The feature analyzes the commit messages, changed files, and diff content to produce a concise, descriptive title that summarizes the purpose of the pull request.

How It Works

When creating a new pull request on github.com, a Copilot icon appears in the title input field. Clicking the icon triggers Copilot to analyze the commits that will be included in the pull request β€” their messages, the files they touch, and the nature of the changes β€” and generates a suggested title. The developer can accept the suggestion as-is, edit it, or dismiss it and write their own title.

The generated titles follow common PR title conventions, using imperative mood and focusing on the primary change introduced by the pull request. For pull requests with multiple distinct changes, the title focuses on the most significant change while keeping the title concise.

Context-Aware Generation

The title generation is context-aware, taking into account not just the raw diff but also the commit messages and the repository's existing PR title patterns. This means that the generated titles tend to match the style and conventions already used in the repository, reducing the need for manual editing to conform to team standards.

For repositories with branch naming conventions that encode ticket numbers or feature identifiers (e.g., feature/JIRA-123-add-search), the generated title can incorporate these identifiers, maintaining traceability between branches, PRs, and issue trackers.

Availability

Copilot-generated PR titles are available on github.com for all Copilot subscribers β€” Pro, Pro+, Business, and Enterprise. The feature works in all repositories where the user has Copilot access and does not require any repository-level configuration. It is enabled by default and can be used by clicking the Copilot icon in the PR title field during pull request creation.


Mentioned onGitHubGitHubGitHub