# Feature OP-16317 - Github Integration: Update work package status on merge

Project: OpenProject
Status: specified
URL: https://community.openproject.org/work_packages/OP-16317

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 2 |
| 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 | Yes |
| 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** an OpenProject developer  
**I want** the GitHub integration to update the work package status when a PR is merged  
**so that** I can see immediately in OpenProject if a feature / bug has been merged.

**Acceptance criteria**

  - when the pull request (in OpenProject) is set to merged, the work package status is set to merged too

  - since not all work package types have a 'merged' status, it must be possible to configure for each work package type which status should be assumed once a PR is merged

  - (bonus) with the deploy status feature flag a PR can also be *deployed*, not just *merged*
    
      - update the work package status accordingly as well

**Assessment**

  - the actual implementation would be trivial in principle, but how do we handle cases where the status cannot be updated due to some validation error (work package is in a state where no transition is defined (anymore))

  - still the UI is probably the bulk of the work here
