@@ -43,33 +43,33 @@ def post_comment(self, comment: str) -> None:
4343 logger .debug ("No PR number available; skipping comment post" )
4444 return
4545
46- logger .debug ("Posting comment to PR #%s " , self .s .pr_num )
46+ logger .debug ("Posting comment to PR #{} " , self .s .pr_num )
4747 r = self .session .post (
4848 f"{ self .s .api_url } /repos/{ self .s .repository } /issues/{ self .s .pr_num } /comments" ,
4949 headers = {"Authorization" : f"token { self .s .token } " , "Accept" : "application/vnd.github+json" },
5050 json = {"body" : f"{ MAGIC_COMMENT_IDENTIFIER } { comment } " },
5151 timeout = 10 ,
5252 )
53- logger .debug ("Response status: %s " , r .status_code )
53+ logger .debug ("Response status: {} " , r .status_code )
5454 r .raise_for_status ()
5555
5656 def update_comment (self , comment_id : int , comment : str ) -> None :
57- logger .debug ("Updating comment %s " , comment_id )
57+ logger .debug ("Updating comment {} " , comment_id )
5858 r = self .session .patch (
5959 f"{ self .s .api_url } /repos/{ self .s .repository } /issues/comments/{ comment_id } " ,
6060 headers = {"Authorization" : f"token { self .s .token } " , "Accept" : "application/vnd.github+json" },
6161 json = {"body" : f"{ MAGIC_COMMENT_IDENTIFIER } { comment } " },
6262 timeout = 10 ,
6363 )
64- logger .debug ("Response status: %s " , r .status_code )
64+ logger .debug ("Response status: {} " , r .status_code )
6565 r .raise_for_status ()
6666
6767 def list_comments (self ) -> list [GithubComment ]:
6868 if not self .s .pr_num :
6969 logger .debug ("No PR number available; returning empty comment list" )
7070 return []
7171
72- logger .debug ("Fetching comments for PR #%s " , self .s .pr_num )
72+ logger .debug ("Fetching comments for PR #{} " , self .s .pr_num )
7373 all_comments , comments , page = [], None , 1
7474 while comments is None or len (comments ) == 100 :
7575 r = self .session .get (
@@ -86,7 +86,7 @@ def list_comments(self) -> list[GithubComment]:
8686 return [c for c in all_comments if c .is_bot_comment ()]
8787
8888 def get_file (self , ref : str ) -> Response :
89- logger .debug ("Fetching %s from ref %s " , self .s .lockfile_path , ref )
89+ logger .debug ("Fetching {} from ref {} " , self .s .lockfile_path , ref )
9090
9191 r = self .session .get (
9292 f"{ self .s .api_url } /repos/{ self .s .repository } /contents/{ self .s .lockfile_path } " ,
@@ -95,27 +95,27 @@ def get_file(self, ref: str) -> Response:
9595 timeout = 10 ,
9696 stream = True ,
9797 )
98- logger .debug ("Response status: %s " , r .status_code )
98+ logger .debug ("Response status: {} " , r .status_code )
9999
100100 if r .status_code == 404 :
101101 raise FileNotFoundError (self .s .lockfile_path ) from RepoFileRetrievalError (self .s .repository , ref )
102102 r .raise_for_status ()
103103 return r
104104
105105 def delete_comment (self , comment_id : int ) -> None :
106- logger .debug ("Deleting comment %s " , comment_id )
106+ logger .debug ("Deleting comment {} " , comment_id )
107107 r = self .session .delete (
108108 f"{ self .s .api_url } /repos/{ self .s .repository } /issues/comments/{ comment_id } " ,
109109 headers = {"Authorization" : f"token { self .s .token } " , "Accept" : "application/vnd.github+json" },
110110 )
111- logger .debug ("Response status: %s " , r .status_code )
111+ logger .debug ("Response status: {} " , r .status_code )
112112 r .raise_for_status ()
113113
114114 def find_pr_for_branch (self , branch_ref : str ) -> str :
115115 """Find open PR number for a given branch ref (e.g., 'refs/heads/deps-update').
116116 Returns PR number as string, or empty string if not found."""
117117 branch = branch_ref .replace ("refs/heads/" , "" )
118- logger .debug ("Looking for open PR for branch %s " , branch )
118+ logger .debug ("Looking for open PR for branch {} " , branch )
119119
120120 org = self .s .repository .split ("/" )[0 ]
121121 head = f"{ org } :{ branch } "
@@ -126,16 +126,16 @@ def find_pr_for_branch(self, branch_ref: str) -> str:
126126 headers = {"Authorization" : f"token { self .s .token } " , "Accept" : "application/vnd.github+json" },
127127 timeout = 10 ,
128128 )
129- logger .debug ("Response status: %s " , r .status_code )
129+ logger .debug ("Response status: {} " , r .status_code )
130130 r .raise_for_status ()
131131
132132 pulls = r .json ()
133133 if pulls and len (pulls ) > 0 :
134134 pr_num = str (pulls [0 ]["number" ])
135- logger .debug ("Found open PR #%s " , pr_num )
135+ logger .debug ("Found open PR #{} " , pr_num )
136136 return pr_num
137137
138- logger .debug ("No open PR found for branch %s " , branch )
138+ logger .debug ("No open PR found for branch {} " , branch )
139139 return ""
140140
141141 def upsert_comment (self , existing_comment : GithubComment | None , comment : str | None ) -> None :
0 commit comments