def create_heart(self, git_repo_url, max_commits=10, weeks_from_now=1):
        """
            Creates heart on the Summary.
            Args:
                git_repo_url: The url (ssh or https) of the Repository, used for cloning
                max_commits: Maximum number of commits in a day
                weeks_from_now: The number of week from this week the Heart's Right center boundary will be. 
        """
        self.weeks_from_now = weeks_from_now
        self.end_date = self.get_end_date()
        try:
            self.repository_name = git_repo_url.split('/')[-1][:-4]
            self.git_repo_url = git_repo_url
            self.max_commits = max_commits
            self.do_commits()
            self.do_commit_amends()
        except IndexError as ie:
            raise ErrorMessage(
                "Please provide the correct URL for the Repository")
        except Exception as e:
            raise ErrorMessage(str(e))
def create_heart ( self , git_repo_url , max_commits = 10 , weeks_from_now = 1 ) : self . weeks_from_now = weeks_from_now self . end_date = self . get_end_date ( ) try : self . repository_name = git_repo_url . split ( '/' ) [ - 1 ] [ : - 4 ] self . git_repo_url = git_repo_url self . max_commits = max_commits self . do_commits ( ) self . do_commit_amends ( ) except IndexError as ie : raise ErrorMessage ( "Please provide the correct URL for the Repository" ) except Exception as e : raise ErrorMessage ( str ( e ) )
Creates heart on the Summary.
            Args:
                git_repo_url: The url (ssh or https) of the Repository, used for cloning
                max_commits: Maximum number of commits in a day
                weeks_from_now: The number of week from this week the Heart's Right center boundary will be.