code: def can_pull(self, initial, scheduled):
          
          if not initial and self.config.is_valid_schedule():
              # if the config has a valid schedule, return True if this is a scheduled run
              return scheduled
          return True
docs: Determines if pull requests should be created
          :return: bool