# Feature OP-13065 - Recognize Github PR automatically when branch is created with snippet from OpenProject

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-13065

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a *developer*  
**I want to** *create a pull request in Github without entering \#OPxxx*   
**so that** the pull request is added to the task automatically when the branch was created using the snippet text

**Acceptance criteria**

  - *\[enter acceptance criteria\]*
  - when branch is created using the snippet text and a pull request is created in this branch, the pull request should be visible in the task automatically

**Background**

I noticed that the pull request was not connected to my task when I forget to enter the \#OPxxx code in the PR description.   
But the branch was created using the snippet from the OpenProject task. The branch name is available in the Github webhook data (head.ref) 

This can be used to match the correct task on new PR without the need to enter the \#OP info manually. This can be easily forgotten.
