Current Plan:
Look in table female_first_pulls of Sandbox - match the pull_request_id with pull_request_id from table pull_request_history
Save the pull_request_id and created_at of instances where action "closed" exists
Match the pull_request_id from pull_request_history with pull_request_id from pull_requests
Save the base_repo_id or head_repo_id for each of these _pull_request_id_s from pull_requests
Look in pull_request_history for instances where actor_id equals user_id from female_first_pulls after the created_at date saved from pull_request_id
For the above instances, save the pull_request_id
Go to pull_requests and see if this pull_request_id has the same head/base repo id. If yes, count the instances of this match
Current Plan:
Look in table female_first_pulls of Sandbox - match the pull_request_id with pull_request_id from table pull_request_history
Save the pull_request_id and created_at of instances where action "closed" exists
Match the pull_request_id from pull_request_history with pull_request_id from pull_requests
Save the base_repo_id or head_repo_id for each of these _pull_request_id_s from pull_requests
Look in pull_request_history for instances where actor_id equals user_id from female_first_pulls after the created_at date saved from pull_request_id
For the above instances, save the pull_request_id
Go to pull_requests and see if this pull_request_id has the same head/base repo id. If yes, count the instances of this match