Once FeatureMap has been integrated into an application, the knowledge of which files are assigned to a given feature may be used during the pull request review process. The specific implementation depends largely on the structure of a given application, but broadly you may consider the following steps:
- Inspect the files that have been modified as part of a pull request
- Use FeatureMap’s
for_file
public interface to retrieve feature assignment data for each of those files - Collect and group changes to each associated feature
- This process can be aided by the
group_commits
method exposed by FeatureMap
- This process can be aided by the
- Publish the changes back to GitHub via a label or comment on the PR