# Pull Request Event

## Description

The events that relate to a Pull Request, such as when a PR is Open, Closed or a review occurs.

## Measures

| Name                                  | Title                | Description                                                        |
| ------------------------------------- | -------------------- | ------------------------------------------------------------------ |
| `PullRequestEvent.totalEventDuration` | Total Event Duration | Total time across events.                                          |
| `PullRequestEvent.avgEventDuration`   | Avg Event Duration   | Average time across events.                                        |
| `PullRequestEvent.minEventDuration`   | Min Event Duration   | Shortest time recorded across events.                              |
| `PullRequestEvent.maxEventDuration`   | Max Event Duration   | Longest time recorded across events.                               |
| `PullRequestEvent.eventCount`         | Event Count          | Total number of pull request events.                               |
| `PullRequestEvent.accEventCount`      | Acc Event Count      | Running total of pull request events over time.                    |
| `PullRequestEvent.accOpening`         | Acc Opening          | Cumulative count of PRs that were opened (state = 'Open').         |
| `PullRequestEvent.accClosing`         | Acc Closing          | Cumulative count of PRs that were closed (state = 'Closed').       |
| `PullRequestEvent.active`             | Active               | Number of active PRs, based on difference in sum of open vs closed |

## Dimensions

| Name                             | Title          | Description                                                |
| -------------------------------- | -------------- | ---------------------------------------------------------- |
| `PullRequestEvent.timeInterval`  | Time of Event  | Timestamp indicating when the pull request event occurred. |
| `PullRequestEvent.id`            | Id             |                                                            |
| `PullRequestEvent.event`         | Event          | A label representing the pull request event type.          |
| `PullRequestEvent.eventDuration` | Event Duration | Duration between the last event and this event.            |

## Connected Cubes

All fields belonging to the following cubes are also reachable from PullRequestEvent:

* [Pull Request](https://docs.logilica.com/advanced/datastudio-data-model/models/pullrequestdetail)
* [Pull Request Jira Issue](https://docs.logilica.com/advanced/datastudio-data-model/models/pullrequestjiraissue)
* [Pull Request Event](https://docs.logilica.com/advanced/datastudio-data-model/models/pullrequestevent)
* [Contributor](https://docs.logilica.com/advanced/datastudio-data-model/models/contributor)
* [Team](https://docs.logilica.com/advanced/datastudio-data-model/models/team)
* [CI Build](https://docs.logilica.com/advanced/datastudio-data-model/models/cibuild)
* [CI Build Stage](https://docs.logilica.com/advanced/datastudio-data-model/models/cibuildstage)
* [Planning Ticket Component](https://docs.logilica.com/advanced/datastudio-data-model/models/jiracomponent)
* [Planning Ticket Custom Field](https://docs.logilica.com/advanced/datastudio-data-model/models/jiracustomfield)
* [Epic](https://docs.logilica.com/advanced/datastudio-data-model/models/jiraepic)
* [Planning Ticket Hierarchy Issues](https://docs.logilica.com/advanced/datastudio-data-model/models/jirahierarchyissues)
* [Planning Ticket Hierarchy Issue Link](https://docs.logilica.com/advanced/datastudio-data-model/models/jiraissuehierarchylink)
* [Planning Ticket](https://docs.logilica.com/advanced/datastudio-data-model/models/jiraissuedetail)
* [Planning Ticket Event](https://docs.logilica.com/advanced/datastudio-data-model/models/jiraissueevent)
* [Planning Ticket Label](https://docs.logilica.com/advanced/datastudio-data-model/models/jiralabel)
* [Planning Sprint](https://docs.logilica.com/advanced/datastudio-data-model/models/jirasprint)
* [Planning Ticket State Durations](https://docs.logilica.com/advanced/datastudio-data-model/models/jirastatedurations)
* [Repositories](https://docs.logilica.com/advanced/datastudio-data-model/models/project)
