# Project Task Pull Request State

This module extends functionality of the project_task_pull_request module. It adds a “State” field to Task alongside with PR URI field.

Following pre-defined states are available: “Draft”, “Open”, “Merged”, “Closed”. You can add or modify this list easily by overriding the “selection_pr_state” function in the “project.task” model

Table of contents

- Use Cases / Context
- Configuration
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Maintainers

# Use Cases / Context

This module is designed as a basis for further automation based on the pull request state of the task. For example one can use webhooks to set PR state in the task when it is updated in the GitHub. And use automated actions afterwards to update task status, assign and activity or do any other related actions.

# Configuration

1. In General Settings -> Project -> Project Task Pull Request section select default PR State for all tasks

To define custom default PR state for particular project:

1. Select project -> Open “Settings” -> Set “Default PR State”

# Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

# Credits

## Authors

- Cetmix

## Contributors

- Cetmix
  - Ivan Sokolov
  - Vladimir Kalmykov

## Maintainers

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/project project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.