Skip to content

Commit 4b860cf

Browse files
authored
tooling: tracking open issues (envoyproxy#32281)
Signed-off-by: Alyssa Wilk <[email protected]>
1 parent 17b1db5 commit 4b860cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/repo/notify.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,11 @@ async def post_to_oncall(self):
261261
await self.send_message(
262262
channel='#envoy-maintainer-oncall',
263263
text=(f"*Stalled PRs* (PRs with review out-SLO, please address)\n{stalled}"))
264+
num_issues = await self.track_open_issues()
264265
await self.send_message(
265266
channel='#envoy-maintainer-oncall',
266267
text=(
267-
f"*Untriaged Issues* (please tag and cc area experts)\n<{ISSUE_LINK}|{ISSUE_LINK}>"
268+
f"*{num_issues} Untriaged Issues* (please tag and cc area experts)\n<{ISSUE_LINK}|{ISSUE_LINK}>"
268269
))
269270
except SlackApiError as e:
270271
self.log.error(f"Unexpected error {e.response['error']}")
@@ -278,6 +279,11 @@ def pr_message(self, age, pull):
278279
f"<{pull['html_url']}|{html.escape(pull['title'])}> has been waiting "
279280
f"{markup}{days} days {hours} hours{markup}")
280281

282+
async def track_open_issues(self):
283+
response = await self.session.get(
284+
"https://api.github.com/repos/envoyproxy/envoy/issues?labels=triage")
285+
return len(await response.json())
286+
281287
async def run(self):
282288
if not self.github_token:
283289
self.log.error("Missing GITHUB_TOKEN: please check github workflow configuration")

0 commit comments

Comments
 (0)