We are currently checking data from a specific issue or pr, this is done in the github api wraper with the get_data function.
However depending on the type of the rule the data to check might be different from just an issue or a pr. For example the rule to check for merge conflict on a pr (see #64) needs to get the list of all the open PRs.
So instead of creating another case for the get_data function we need to link the type of data we need to get to the error itself. This will allow us to create more complex rule in the future too.
We are currently checking data from a specific issue or pr, this is done in the github api wraper with the get_data function. However depending on the type of the rule the data to check might be different from just an issue or a pr. For example the rule to check for merge conflict on a pr (see #64) needs to get the list of all the open PRs. So instead of creating another case for the get_data function we need to link the type of data we need to get to the error itself. This will allow us to create more complex rule in the future too.