docs/contributing/PR-MERGE-POLICY.md
This document outlines the process for reviewing and merging pull requests (PRs) into the InvokeAI repository.
One of the repository maintainers will assign collaborators to review a pull request. The assigned reviewer(s) will be responsible for conducting the code review.
The assignee is responsible for:
Once the assignee is satisfied with the PR:
One of the maintainers is responsible for:
Important: Collaborators are strongly discouraged from merging PRs on their own, except in case of emergency (e.g., critical bug fix and no maintainer is available).
Once a feature release candidate is published, no feature PRs are to be merged into main. Only bugfixes are allowed until the final release.
To encourage a clean development log, PR authors are encouraged to use git rebase -i to suppress trivial commit messages (e.g., ruff and prettier formatting fixes) after the PR is accepted but before it is merged.
The maintainer will perform either a 3-way merge or squash merge when merging a PR into the main branch. This approach helps avoid rebase conflict hell and maintains a cleaner project history.
The PR author should reference any papers, source code or documentation that they used while creating the code both in the PR and as comments in the code itself. If there are any licensing restrictions, these should be linked to and/or reproduced in the repo root.
This policy ensures that: