diff --git a/index.py b/index.py
index 8523d62..ecb60ee 100755
--- a/index.py
+++ b/index.py
@@ -211,6 +211,16 @@ def listify(l):
newissues = list(filter(isNew, list(filter(isIssue, filtered_events))))
closedissues = list(filter(isClosed, list(filter(isIssue, filtered_events))))
newpr = list(filter(isNew, list(filter(isPR, filtered_events))))
+ # as of October 2025, the GitHub Events API doesn't include
+ # title and html_url in PullRequestEvents
+ # as fallback, calculate html_url manually
+ for pr in newpr:
+ html_url = pr["payload"]["pull_request"].get("html_url", None)
+ if not html_url:
+ import sys
+ html_url = pr["payload"]["pull_request"]["url"].replace("/api.", "/").replace("/repos/", "/").replace("/pulls/","/pull/")
+ pr["payload"]["pull_request"]["html_url"] = html_url
+
mergedpr = list(
filter(isMerged, list(filter(isClosed, list(filter(isPR, filtered_events)))))
)
diff --git a/templates/generic/digest b/templates/generic/digest
index 8598f63..5562b59 100644
--- a/templates/generic/digest
+++ b/templates/generic/digest
@@ -45,7 +45,7 @@
* {{name}} (+{{newpr.count}}/-{{mergedpr.count}}/💬{{prcommentscount}})
{{#newpr.count}} {{.}} pull requests submitted:
{{#newpr.list}}
- - {{{payload.pull_request.title}}} (by {{actor.display_login}})
+ - {{{payload.pull_request.number}}} {{{payload.pull_request.title}}} (by {{actor.display_login}})
{{{payload.pull_request.html_url}}} {{#payload.pull_request.labels}}[{{name}}] {{/payload.pull_request.labels}}
{{/newpr.list}}
diff --git a/templates/generic/digest.html b/templates/generic/digest.html
index f2cce80..3c4beb1 100644
--- a/templates/generic/digest.html
+++ b/templates/generic/digest.html
@@ -80,7 +80,7 @@
{{name}} (+{{newissues.count}}/-{{closedissues.count}}/💬{{issuecommentsco
{{name}} (+{{newpr.count}}/-{{mergedpr.count}}/💬{{prcommentscount}})
{{#newpr.count}}
{{.}} pull requests submitted:
{{/newpr.count}}
diff --git a/tests/digest-weekly-repofiltered.msg b/tests/digest-weekly-repofiltered.msg
index 4e0316a..0ecc73a 100644
--- a/tests/digest-weekly-repofiltered.msg
+++ b/tests/digest-weekly-repofiltered.msg
@@ -53,21 +53,21 @@ Pull requests
-------------
* w3c/webrtc-pc (+8/-1/💬10)
8 pull requests submitted:
- - Revert "Respec now uses yarn instead of npm" (by vivienlacourba)
+ - 948 Revert "Respec now uses yarn instead of npm" (by vivienlacourba)
https://github.com/w3c/webrtc-pc/pull/948
- - Splitting transceiver direction into "direction" and "currentDirection". (by taylor-b)
+ - 946 Splitting transceiver direction into "direction" and "currentDirection". (by taylor-b)
https://github.com/w3c/webrtc-pc/pull/946
- - Effect of setting sender.track to null (by aboba)
+ - 944 Effect of setting sender.track to null (by aboba)
https://github.com/w3c/webrtc-pc/pull/944
- - Use of "stopped" in insertDTMF and replaceTrack (by aboba)
+ - 940 (by aboba)
https://github.com/w3c/webrtc-pc/pull/940
- - Removed "stopped" from removeTrack (by aboba)
+ - 939 Removed "stopped" from removeTrack (by aboba)
https://github.com/w3c/webrtc-pc/pull/939
- - What happens when setDirection() is called (by aboba)
+ - 938 What happens when setDirection() is called (by aboba)
https://github.com/w3c/webrtc-pc/pull/938
- - What happens when transceiver.stop() is called (by aboba)
+ - 937 What happens when transceiver.stop() is called (by aboba)
https://github.com/w3c/webrtc-pc/pull/937
- - Remove Issue 1: Current and Pending SDP (by aboba)
+ - 936 Remove Issue 1: Current and Pending SDP (by aboba)
https://github.com/w3c/webrtc-pc/pull/936
diff --git a/tests/digest-weekly.msg b/tests/digest-weekly.msg
index ec37aac..3463cc0 100644
--- a/tests/digest-weekly.msg
+++ b/tests/digest-weekly.msg
@@ -50,21 +50,21 @@ Pull requests
-------------
* w3c/webrtc-pc (+8/-1/💬10)
8 pull requests submitted:
- - Revert "Respec now uses yarn instead of npm" (by vivienlacourba)
+ - 948 Revert "Respec now uses yarn instead of npm" (by vivienlacourba)
https://github.com/w3c/webrtc-pc/pull/948
- - Splitting transceiver direction into "direction" and "currentDirection". (by taylor-b)
+ - 946 Splitting transceiver direction into "direction" and "currentDirection". (by taylor-b)
https://github.com/w3c/webrtc-pc/pull/946
- - Effect of setting sender.track to null (by aboba)
+ - 944 Effect of setting sender.track to null (by aboba)
https://github.com/w3c/webrtc-pc/pull/944
- - Use of "stopped" in insertDTMF and replaceTrack (by aboba)
+ - 940 (by aboba)
https://github.com/w3c/webrtc-pc/pull/940
- - Removed "stopped" from removeTrack (by aboba)
+ - 939 Removed "stopped" from removeTrack (by aboba)
https://github.com/w3c/webrtc-pc/pull/939
- - What happens when setDirection() is called (by aboba)
+ - 938 What happens when setDirection() is called (by aboba)
https://github.com/w3c/webrtc-pc/pull/938
- - What happens when transceiver.stop() is called (by aboba)
+ - 937 What happens when transceiver.stop() is called (by aboba)
https://github.com/w3c/webrtc-pc/pull/937
- - Remove Issue 1: Current and Pending SDP (by aboba)
+ - 936 Remove Issue 1: Current and Pending SDP (by aboba)
https://github.com/w3c/webrtc-pc/pull/936
diff --git a/tests/repo1-events-2.json b/tests/repo1-events-2.json
index 198b0a0..277a16e 100644
--- a/tests/repo1-events-2.json
+++ b/tests/repo1-events-2.json
@@ -1410,320 +1410,29 @@
"pull_request": {
"url": "https://api.github.com/repos/w3c/webrtc-pc/pulls/940",
"id": 93263190,
- "html_url": "https://github.com/w3c/webrtc-pc/pull/940",
- "diff_url": "https://github.com/w3c/webrtc-pc/pull/940.diff",
- "patch_url": "https://github.com/w3c/webrtc-pc/pull/940.patch",
- "issue_url": "https://api.github.com/repos/w3c/webrtc-pc/issues/940",
"number": 940,
- "state": "open",
- "locked": false,
- "title": "Use of \"stopped\" in insertDTMF and replaceTrack",
- "user": {
- "login": "aboba",
- "id": 808811,
- "avatar_url": "https://avatars.githubusercontent.com/u/808811?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/aboba",
- "html_url": "https://github.com/aboba",
- "followers_url": "https://api.github.com/users/aboba/followers",
- "following_url": "https://api.github.com/users/aboba/following{/other_user}",
- "gists_url": "https://api.github.com/users/aboba/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/aboba/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/aboba/subscriptions",
- "organizations_url": "https://api.github.com/users/aboba/orgs",
- "repos_url": "https://api.github.com/users/aboba/repos",
- "events_url": "https://api.github.com/users/aboba/events{/privacy}",
- "received_events_url": "https://api.github.com/users/aboba/received_events",
- "type": "User",
- "site_admin": false
- },
- "body": "Fix for Issue https://github.com/w3c/webrtc-pc/issues/917",
- "created_at": "2016-11-11T01:14:26Z",
- "updated_at": "2016-11-11T01:14:26Z",
- "closed_at": null,
- "merged_at": null,
- "merge_commit_sha": null,
- "assignee": null,
- "assignees": [
-
- ],
- "milestone": null,
- "commits_url": "https://api.github.com/repos/w3c/webrtc-pc/pulls/940/commits",
- "review_comments_url": "https://api.github.com/repos/w3c/webrtc-pc/pulls/940/comments",
- "review_comment_url": "https://api.github.com/repos/w3c/webrtc-pc/pulls/comments{/number}",
- "comments_url": "https://api.github.com/repos/w3c/webrtc-pc/issues/940/comments",
- "statuses_url": "https://api.github.com/repos/w3c/webrtc-pc/statuses/a05dff5e1cdd821211c881f8c540b77cfca67203",
"head": {
- "label": "w3c:issue-917-patchv3",
"ref": "issue-917-patchv3",
"sha": "a05dff5e1cdd821211c881f8c540b77cfca67203",
- "user": {
- "login": "w3c",
- "id": 379216,
- "avatar_url": "https://avatars.githubusercontent.com/u/379216?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/w3c",
- "html_url": "https://github.com/w3c",
- "followers_url": "https://api.github.com/users/w3c/followers",
- "following_url": "https://api.github.com/users/w3c/following{/other_user}",
- "gists_url": "https://api.github.com/users/w3c/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/w3c/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/w3c/subscriptions",
- "organizations_url": "https://api.github.com/users/w3c/orgs",
- "repos_url": "https://api.github.com/users/w3c/repos",
- "events_url": "https://api.github.com/users/w3c/events{/privacy}",
- "received_events_url": "https://api.github.com/users/w3c/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "repo": {
- "id": 23384500,
- "name": "webrtc-pc",
- "full_name": "w3c/webrtc-pc",
- "owner": {
- "login": "w3c",
- "id": 379216,
- "avatar_url": "https://avatars.githubusercontent.com/u/379216?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/w3c",
- "html_url": "https://github.com/w3c",
- "followers_url": "https://api.github.com/users/w3c/followers",
- "following_url": "https://api.github.com/users/w3c/following{/other_user}",
- "gists_url": "https://api.github.com/users/w3c/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/w3c/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/w3c/subscriptions",
- "organizations_url": "https://api.github.com/users/w3c/orgs",
- "repos_url": "https://api.github.com/users/w3c/repos",
- "events_url": "https://api.github.com/users/w3c/events{/privacy}",
- "received_events_url": "https://api.github.com/users/w3c/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/w3c/webrtc-pc",
- "description": "WebRTC 1.0 API",
- "fork": false,
- "url": "https://api.github.com/repos/w3c/webrtc-pc",
- "forks_url": "https://api.github.com/repos/w3c/webrtc-pc/forks",
- "keys_url": "https://api.github.com/repos/w3c/webrtc-pc/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/w3c/webrtc-pc/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/w3c/webrtc-pc/teams",
- "hooks_url": "https://api.github.com/repos/w3c/webrtc-pc/hooks",
- "issue_events_url": "https://api.github.com/repos/w3c/webrtc-pc/issues/events{/number}",
- "events_url": "https://api.github.com/repos/w3c/webrtc-pc/events",
- "assignees_url": "https://api.github.com/repos/w3c/webrtc-pc/assignees{/user}",
- "branches_url": "https://api.github.com/repos/w3c/webrtc-pc/branches{/branch}",
- "tags_url": "https://api.github.com/repos/w3c/webrtc-pc/tags",
- "blobs_url": "https://api.github.com/repos/w3c/webrtc-pc/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/w3c/webrtc-pc/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/w3c/webrtc-pc/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/w3c/webrtc-pc/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/w3c/webrtc-pc/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/w3c/webrtc-pc/languages",
- "stargazers_url": "https://api.github.com/repos/w3c/webrtc-pc/stargazers",
- "contributors_url": "https://api.github.com/repos/w3c/webrtc-pc/contributors",
- "subscribers_url": "https://api.github.com/repos/w3c/webrtc-pc/subscribers",
- "subscription_url": "https://api.github.com/repos/w3c/webrtc-pc/subscription",
- "commits_url": "https://api.github.com/repos/w3c/webrtc-pc/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/w3c/webrtc-pc/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/w3c/webrtc-pc/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/w3c/webrtc-pc/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/w3c/webrtc-pc/contents/{+path}",
- "compare_url": "https://api.github.com/repos/w3c/webrtc-pc/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/w3c/webrtc-pc/merges",
- "archive_url": "https://api.github.com/repos/w3c/webrtc-pc/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/w3c/webrtc-pc/downloads",
- "issues_url": "https://api.github.com/repos/w3c/webrtc-pc/issues{/number}",
- "pulls_url": "https://api.github.com/repos/w3c/webrtc-pc/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/w3c/webrtc-pc/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/w3c/webrtc-pc/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/w3c/webrtc-pc/labels{/name}",
- "releases_url": "https://api.github.com/repos/w3c/webrtc-pc/releases{/id}",
- "deployments_url": "https://api.github.com/repos/w3c/webrtc-pc/deployments",
- "created_at": "2014-08-27T09:39:00Z",
- "updated_at": "2016-11-03T07:37:56Z",
- "pushed_at": "2016-11-11T01:14:26Z",
- "git_url": "git://github.com/w3c/webrtc-pc.git",
- "ssh_url": "git@github.com:w3c/webrtc-pc.git",
- "clone_url": "https://github.com/w3c/webrtc-pc.git",
- "svn_url": "https://github.com/w3c/webrtc-pc",
- "homepage": "https://w3c.github.io/webrtc-pc/",
- "size": 19133,
- "stargazers_count": 99,
- "watchers_count": 99,
- "language": "HTML",
- "has_issues": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": true,
- "forks_count": 51,
- "mirror_url": null,
- "open_issues_count": 73,
- "forks": 51,
- "open_issues": 73,
- "watchers": 99,
- "default_branch": "master"
- }
- },
- "base": {
- "label": "w3c:master",
- "ref": "master",
- "sha": "ffbec2ff994a54c93b97f7d5c55d183dab07b2a8",
- "user": {
- "login": "w3c",
- "id": 379216,
- "avatar_url": "https://avatars.githubusercontent.com/u/379216?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/w3c",
- "html_url": "https://github.com/w3c",
- "followers_url": "https://api.github.com/users/w3c/followers",
- "following_url": "https://api.github.com/users/w3c/following{/other_user}",
- "gists_url": "https://api.github.com/users/w3c/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/w3c/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/w3c/subscriptions",
- "organizations_url": "https://api.github.com/users/w3c/orgs",
- "repos_url": "https://api.github.com/users/w3c/repos",
- "events_url": "https://api.github.com/users/w3c/events{/privacy}",
- "received_events_url": "https://api.github.com/users/w3c/received_events",
- "type": "Organization",
- "site_admin": false
- },
"repo": {
"id": 23384500,
"name": "webrtc-pc",
- "full_name": "w3c/webrtc-pc",
- "owner": {
- "login": "w3c",
- "id": 379216,
- "avatar_url": "https://avatars.githubusercontent.com/u/379216?v=3",
- "gravatar_id": "",
- "url": "https://api.github.com/users/w3c",
- "html_url": "https://github.com/w3c",
- "followers_url": "https://api.github.com/users/w3c/followers",
- "following_url": "https://api.github.com/users/w3c/following{/other_user}",
- "gists_url": "https://api.github.com/users/w3c/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/w3c/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/w3c/subscriptions",
- "organizations_url": "https://api.github.com/users/w3c/orgs",
- "repos_url": "https://api.github.com/users/w3c/repos",
- "events_url": "https://api.github.com/users/w3c/events{/privacy}",
- "received_events_url": "https://api.github.com/users/w3c/received_events",
- "type": "Organization",
- "site_admin": false
- },
- "private": false,
- "html_url": "https://github.com/w3c/webrtc-pc",
- "description": "WebRTC 1.0 API",
- "fork": false,
- "url": "https://api.github.com/repos/w3c/webrtc-pc",
- "forks_url": "https://api.github.com/repos/w3c/webrtc-pc/forks",
- "keys_url": "https://api.github.com/repos/w3c/webrtc-pc/keys{/key_id}",
- "collaborators_url": "https://api.github.com/repos/w3c/webrtc-pc/collaborators{/collaborator}",
- "teams_url": "https://api.github.com/repos/w3c/webrtc-pc/teams",
- "hooks_url": "https://api.github.com/repos/w3c/webrtc-pc/hooks",
- "issue_events_url": "https://api.github.com/repos/w3c/webrtc-pc/issues/events{/number}",
- "events_url": "https://api.github.com/repos/w3c/webrtc-pc/events",
- "assignees_url": "https://api.github.com/repos/w3c/webrtc-pc/assignees{/user}",
- "branches_url": "https://api.github.com/repos/w3c/webrtc-pc/branches{/branch}",
- "tags_url": "https://api.github.com/repos/w3c/webrtc-pc/tags",
- "blobs_url": "https://api.github.com/repos/w3c/webrtc-pc/git/blobs{/sha}",
- "git_tags_url": "https://api.github.com/repos/w3c/webrtc-pc/git/tags{/sha}",
- "git_refs_url": "https://api.github.com/repos/w3c/webrtc-pc/git/refs{/sha}",
- "trees_url": "https://api.github.com/repos/w3c/webrtc-pc/git/trees{/sha}",
- "statuses_url": "https://api.github.com/repos/w3c/webrtc-pc/statuses/{sha}",
- "languages_url": "https://api.github.com/repos/w3c/webrtc-pc/languages",
- "stargazers_url": "https://api.github.com/repos/w3c/webrtc-pc/stargazers",
- "contributors_url": "https://api.github.com/repos/w3c/webrtc-pc/contributors",
- "subscribers_url": "https://api.github.com/repos/w3c/webrtc-pc/subscribers",
- "subscription_url": "https://api.github.com/repos/w3c/webrtc-pc/subscription",
- "commits_url": "https://api.github.com/repos/w3c/webrtc-pc/commits{/sha}",
- "git_commits_url": "https://api.github.com/repos/w3c/webrtc-pc/git/commits{/sha}",
- "comments_url": "https://api.github.com/repos/w3c/webrtc-pc/comments{/number}",
- "issue_comment_url": "https://api.github.com/repos/w3c/webrtc-pc/issues/comments{/number}",
- "contents_url": "https://api.github.com/repos/w3c/webrtc-pc/contents/{+path}",
- "compare_url": "https://api.github.com/repos/w3c/webrtc-pc/compare/{base}...{head}",
- "merges_url": "https://api.github.com/repos/w3c/webrtc-pc/merges",
- "archive_url": "https://api.github.com/repos/w3c/webrtc-pc/{archive_format}{/ref}",
- "downloads_url": "https://api.github.com/repos/w3c/webrtc-pc/downloads",
- "issues_url": "https://api.github.com/repos/w3c/webrtc-pc/issues{/number}",
- "pulls_url": "https://api.github.com/repos/w3c/webrtc-pc/pulls{/number}",
- "milestones_url": "https://api.github.com/repos/w3c/webrtc-pc/milestones{/number}",
- "notifications_url": "https://api.github.com/repos/w3c/webrtc-pc/notifications{?since,all,participating}",
- "labels_url": "https://api.github.com/repos/w3c/webrtc-pc/labels{/name}",
- "releases_url": "https://api.github.com/repos/w3c/webrtc-pc/releases{/id}",
- "deployments_url": "https://api.github.com/repos/w3c/webrtc-pc/deployments",
- "created_at": "2014-08-27T09:39:00Z",
- "updated_at": "2016-11-03T07:37:56Z",
- "pushed_at": "2016-11-11T01:14:26Z",
- "git_url": "git://github.com/w3c/webrtc-pc.git",
- "ssh_url": "git@github.com:w3c/webrtc-pc.git",
- "clone_url": "https://github.com/w3c/webrtc-pc.git",
- "svn_url": "https://github.com/w3c/webrtc-pc",
- "homepage": "https://w3c.github.io/webrtc-pc/",
- "size": 19133,
- "stargazers_count": 99,
- "watchers_count": 99,
- "language": "HTML",
- "has_issues": true,
- "has_downloads": true,
- "has_wiki": true,
- "has_pages": true,
- "forks_count": 51,
- "mirror_url": null,
- "open_issues_count": 73,
- "forks": 51,
- "open_issues": 73,
- "watchers": 99,
- "default_branch": "master"
- }
- },
- "_links": {
- "self": {
- "href": "https://api.github.com/repos/w3c/webrtc-pc/pulls/940"
- },
- "html": {
- "href": "https://github.com/w3c/webrtc-pc/pull/940"
- },
- "issue": {
- "href": "https://api.github.com/repos/w3c/webrtc-pc/issues/940"
- },
- "comments": {
- "href": "https://api.github.com/repos/w3c/webrtc-pc/issues/940/comments"
- },
- "review_comments": {
- "href": "https://api.github.com/repos/w3c/webrtc-pc/pulls/940/comments"
+ "url": "https://api.github.com/repos/w3c/webrtc-pc"
},
- "review_comment": {
- "href": "https://api.github.com/repos/w3c/webrtc-pc/pulls/comments{/number}"
- },
- "commits": {
- "href": "https://api.github.com/repos/w3c/webrtc-pc/pulls/940/commits"
- },
- "statuses": {
- "href": "https://api.github.com/repos/w3c/webrtc-pc/statuses/a05dff5e1cdd821211c881f8c540b77cfca67203"
- }
- },
- "merged": false,
- "mergeable": null,
- "mergeable_state": "unknown",
- "merged_by": null,
- "comments": 0,
- "review_comments": 0,
- "commits": 1,
- "additions": 31,
- "deletions": 23,
- "changed_files": 1
+ "base": {
+ "ref": "master",
+ "sha": "ffbec2ff994a54c93b97f7d5c55d183dab07b2a8",
+ "repo": {
+ "id": 23384500,
+ "name": "webrtc-pc",
+ "url": "https://api.github.com/repos/w3c/webrtc-pc"
+ }
+ }
+ }
}
},
"public": true,
- "created_at": "2016-11-11T01:14:26Z",
- "org": {
- "id": 379216,
- "login": "w3c",
- "gravatar_id": "",
- "url": "https://api.github.com/orgs/w3c",
- "avatar_url": "https://avatars.githubusercontent.com/u/379216?"
- }
+ "created_at": "2016-11-11T01:14:26Z"
},
{
"id": "4850790980",