Mark internal_tracker as optional.
Some checks failed
semver Build semver has succeeded
format Build format has succeeded
clippy Build clippy has failed
build Build build has succeeded
rust-test Build rust-test has succeeded

This commit is contained in:
Tom Alexander 2025-09-23 20:54:30 -04:00
parent ac3c23e65a
commit 5fb1982930
Signed by: talexander
GPG Key ID: 36C99E8B3C39D85F
3 changed files with 134 additions and 73 deletions

View File

@ -1,50 +1,115 @@
{ {
"ref": "refs/tags/v0.0.19", "ref": "refs/heads/main",
"before": "0000000000000000000000000000000000000000", "before": "69b891b59b1ee026e5bf2e7bee357eead5cbe546",
"after": "3f2bdda8cb81fae6072c139f1f3f3123493a5b87", "after": "5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1",
"compare_url": "https://code.fizz.buzz/talexander/webhook_bridge/compare/0000000000000000000000000000000000000000...3f2bdda8cb81fae6072c139f1f3f3123493a5b87", "compare_url": "https://code.fizz.buzz/mirror/org-mode/compare/69b891b59b1ee026e5bf2e7bee357eead5cbe546...5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1",
"commits": [], "commits": [
"total_commits": 0, {
"id": "5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1",
"message": "; Fix eaten escaping backslash in the documentation\n\n* lisp/org-keys.el (org-use-speed-commands): Add a missing backslash\nto the documentation string of the custom variable. Also, update\n`setq' to `setopt' and re-indent for clarity.\n",
"url": "https://code.fizz.buzz/mirror/org-mode/commit/5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1",
"author": {
"name": "Rudolf Adamkovič",
"email": "rudolf@adamkovic.org",
"username": ""
},
"committer": {
"name": "Rudolf Adamkovič",
"email": "rudolf@adamkovic.org",
"username": ""
},
"verification": null,
"timestamp": "2025-08-17T14:12:07+02:00",
"added": [],
"removed": [],
"modified": [
"lisp/org-keys.el"
]
},
{
"id": "b0f793ff0a31adb520fc5989b0399786663192ea",
"message": "Support arrow keys and mouse wheel in export dispatcher\n\n* lisp/ox.el (org-export--dispatch-action): Translate down/up arrow\nkeys and scroll wheel to C-n/C-p, respectively.\n* etc/ORG-NEWS (Fancy HTML5 export uses ~<time>~ element for\ntimestamps): Document the change from the perspective of the user.\n",
"url": "https://code.fizz.buzz/mirror/org-mode/commit/b0f793ff0a31adb520fc5989b0399786663192ea",
"author": {
"name": "Rudolf Adamkovič",
"email": "rudolf@adamkovic.org",
"username": ""
},
"committer": {
"name": "Rudolf Adamkovič",
"email": "rudolf@adamkovic.org",
"username": ""
},
"verification": null,
"timestamp": "2025-08-11T16:44:59+02:00",
"added": [],
"removed": [],
"modified": [
"etc/ORG-NEWS",
"lisp/ox.el"
]
},
{
"id": "bea0bfc3d6eaddad13a3fb9106ff9e7faa73e970",
"message": "; Fix grammar and improve ol-info documentation\n\n* lisp/ol-info.el:\n(org-info--link-file-node):\n(org-info-description-as-command):\n(org-info-other-documents):\n(org-info-map-html-url):\n(org-info--expand-node-name):\n(org-info-export): Fix grammar, capitalize \"Info\", and improve wording\nof docstrings.\n",
"url": "https://code.fizz.buzz/mirror/org-mode/commit/bea0bfc3d6eaddad13a3fb9106ff9e7faa73e970",
"author": {
"name": "Steven Allen",
"email": "steven@stebalien.com",
"username": ""
},
"committer": {
"name": "Rudolf Adamkovič",
"email": "rudolf@adamkovic.org",
"username": ""
},
"verification": null,
"timestamp": "2025-09-17T17:13:51-07:00",
"added": [],
"removed": [],
"modified": [
"lisp/ol-info.el"
]
}
],
"total_commits": 3,
"head_commit": { "head_commit": {
"id": "3f2bdda8cb81fae6072c139f1f3f3123493a5b87", "id": "5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1",
"message": "Add support for new fields in payload.\n", "message": "; Fix eaten escaping backslash in the documentation\n\n* lisp/org-keys.el (org-use-speed-commands): Add a missing backslash\nto the documentation string of the custom variable. Also, update\n`setq' to `setopt' and re-indent for clarity.\n",
"url": "https://code.fizz.buzz/talexander/webhook_bridge/commit/3f2bdda8cb81fae6072c139f1f3f3123493a5b87", "url": "https://code.fizz.buzz/mirror/org-mode/commit/5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1",
"author": { "author": {
"name": "Tom Alexander", "name": "Rudolf Adamkovič",
"email": "tom@fizz.buzz", "email": "rudolf@adamkovic.org",
"username": "" "username": ""
}, },
"committer": { "committer": {
"name": "Tom Alexander", "name": "Rudolf Adamkovič",
"email": "tom@fizz.buzz", "email": "rudolf@adamkovic.org",
"username": "" "username": ""
}, },
"verification": null, "verification": null,
"timestamp": "2025-02-08T20:58:55-05:00", "timestamp": "2025-08-17T14:12:07+02:00",
"added": [ "added": [],
"rust-toolchain.toml"
],
"removed": [], "removed": [],
"modified": [ "modified": [
"run.bash", "lisp/org-keys.el"
"src/hook_push.rs"
] ]
}, },
"repository": { "repository": {
"id": 21, "id": 24,
"owner": { "owner": {
"id": 1, "id": 3,
"login": "talexander", "login": "mirror",
"login_name": "", "login_name": "",
"source_id": 0, "source_id": 0,
"full_name": "", "full_name": "",
"email": "gitea@local.domain", "email": "",
"avatar_url": "https://code.fizz.buzz/avatars/9d402a89b5a0786f83c1b8c5486fc7ff3d083a54fe20e55c0a776a1932c30289", "avatar_url": "https://code.fizz.buzz/avatars/fbe322a89bc0ba531c3f0050e3935f28",
"html_url": "https://code.fizz.buzz/talexander", "html_url": "https://code.fizz.buzz/mirror",
"language": "", "language": "",
"is_admin": false, "is_admin": false,
"last_login": "0001-01-01T00:00:00Z", "last_login": "0001-01-01T00:00:00Z",
"created": "2023-07-05T22:03:28Z", "created": "2024-09-30T16:24:55Z",
"restricted": false, "restricted": false,
"active": false, "active": false,
"prohibit_login": false, "prohibit_login": false,
@ -55,26 +120,26 @@
"followers_count": 0, "followers_count": 0,
"following_count": 0, "following_count": 0,
"starred_repos_count": 0, "starred_repos_count": 0,
"username": "talexander" "username": "mirror"
}, },
"name": "webhook_bridge", "name": "org-mode",
"full_name": "talexander/webhook_bridge", "full_name": "mirror/org-mode",
"description": "A server that receives webhooks from gitea and fires off Tekton jobs in response.", "description": "This is a mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git for CI/development purposes because the upstream savannah git repo is flakey.",
"empty": false, "empty": false,
"private": false, "private": false,
"fork": false, "fork": false,
"template": false, "template": false,
"parent": null, "parent": null,
"mirror": false, "mirror": true,
"size": 168, "size": 119577,
"language": "", "language": "",
"languages_url": "https://code.fizz.buzz/api/v1/repos/talexander/webhook_bridge/languages", "languages_url": "https://code.fizz.buzz/api/v1/repos/mirror/org-mode/languages",
"html_url": "https://code.fizz.buzz/talexander/webhook_bridge", "html_url": "https://code.fizz.buzz/mirror/org-mode",
"url": "https://code.fizz.buzz/api/v1/repos/talexander/webhook_bridge", "url": "https://code.fizz.buzz/api/v1/repos/mirror/org-mode",
"link": "", "link": "",
"ssh_url": "git@code.fizz.buzz:talexander/webhook_bridge.git", "ssh_url": "git@code.fizz.buzz:mirror/org-mode.git",
"clone_url": "https://code.fizz.buzz/talexander/webhook_bridge.git", "clone_url": "https://code.fizz.buzz/mirror/org-mode.git",
"original_url": "", "original_url": "https://git.savannah.gnu.org/git/emacs/org-mode.git",
"website": "", "website": "",
"stars_count": 0, "stars_count": 0,
"forks_count": 0, "forks_count": 0,
@ -84,94 +149,89 @@
"release_counter": 0, "release_counter": 0,
"default_branch": "main", "default_branch": "main",
"archived": false, "archived": false,
"created_at": "2024-07-14T18:48:52Z", "created_at": "2024-09-30T16:27:01Z",
"updated_at": "2025-02-09T02:12:22Z", "updated_at": "2025-09-09T08:46:53Z",
"archived_at": "1970-01-01T00:00:00Z", "archived_at": "1970-01-01T00:00:00Z",
"permissions": { "permissions": {
"admin": true, "admin": true,
"push": true, "push": true,
"pull": true "pull": true
}, },
"has_issues": true, "has_issues": false,
"internal_tracker": {
"enable_time_tracker": true,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": false, "has_wiki": false,
"has_pull_requests": true, "has_pull_requests": false,
"has_projects": false, "has_projects": false,
"projects_mode": "all", "projects_mode": "all",
"has_releases": true, "has_releases": false,
"has_packages": false, "has_packages": false,
"has_actions": false, "has_actions": false,
"ignore_whitespace_conflicts": false, "ignore_whitespace_conflicts": false,
"allow_merge_commits": true, "allow_merge_commits": false,
"allow_rebase": true, "allow_rebase": false,
"allow_rebase_explicit": true, "allow_rebase_explicit": false,
"allow_squash_merge": true, "allow_squash_merge": false,
"allow_fast_forward_only_merge": false, "allow_fast_forward_only_merge": false,
"allow_rebase_update": true, "allow_rebase_update": false,
"default_delete_branch_after_merge": false, "default_delete_branch_after_merge": false,
"default_merge_style": "merge", "default_merge_style": "merge",
"default_allow_maintainer_edit": false, "default_allow_maintainer_edit": false,
"avatar_url": "", "avatar_url": "",
"internal": false, "internal": false,
"mirror_interval": "", "mirror_interval": "24h0m0s",
"object_format_name": "sha1", "object_format_name": "sha1",
"mirror_updated": "0001-01-01T00:00:00Z", "mirror_updated": "2025-09-24T00:51:19Z",
"repo_transfer": null, "repo_transfer": null,
"topics": null, "topics": null,
"licenses": null "licenses": null
}, },
"pusher": { "pusher": {
"id": 2, "id": 3,
"login": "build-bot", "login": "mirror",
"login_name": "", "login_name": "",
"source_id": 0, "source_id": 0,
"full_name": "", "full_name": "",
"email": "build-bot@noreply.code.fizz.buzz", "email": "mirror@noreply.code.fizz.buzz",
"avatar_url": "https://code.fizz.buzz/avatars/e39ef2faba8a3dfb3dcb4d8275a532d4", "avatar_url": "https://code.fizz.buzz/avatars/fbe322a89bc0ba531c3f0050e3935f28",
"html_url": "https://code.fizz.buzz/build-bot", "html_url": "https://code.fizz.buzz/mirror",
"language": "", "language": "",
"is_admin": false, "is_admin": false,
"last_login": "0001-01-01T00:00:00Z", "last_login": "0001-01-01T00:00:00Z",
"created": "2023-07-09T04:25:44Z", "created": "2024-09-30T16:24:55Z",
"restricted": false, "restricted": false,
"active": false, "active": false,
"prohibit_login": false, "prohibit_login": false,
"location": "", "location": "",
"website": "", "website": "",
"description": "", "description": "",
"visibility": "private", "visibility": "public",
"followers_count": 0, "followers_count": 0,
"following_count": 0, "following_count": 0,
"starred_repos_count": 0, "starred_repos_count": 0,
"username": "build-bot" "username": "mirror"
}, },
"sender": { "sender": {
"id": 2, "id": 3,
"login": "build-bot", "login": "mirror",
"login_name": "", "login_name": "",
"source_id": 0, "source_id": 0,
"full_name": "", "full_name": "",
"email": "build-bot@noreply.code.fizz.buzz", "email": "mirror@noreply.code.fizz.buzz",
"avatar_url": "https://code.fizz.buzz/avatars/e39ef2faba8a3dfb3dcb4d8275a532d4", "avatar_url": "https://code.fizz.buzz/avatars/fbe322a89bc0ba531c3f0050e3935f28",
"html_url": "https://code.fizz.buzz/build-bot", "html_url": "https://code.fizz.buzz/mirror",
"language": "", "language": "",
"is_admin": false, "is_admin": false,
"last_login": "0001-01-01T00:00:00Z", "last_login": "0001-01-01T00:00:00Z",
"created": "2023-07-09T04:25:44Z", "created": "2024-09-30T16:24:55Z",
"restricted": false, "restricted": false,
"active": false, "active": false,
"prohibit_login": false, "prohibit_login": false,
"location": "", "location": "",
"website": "", "website": "",
"description": "", "description": "",
"visibility": "private", "visibility": "public",
"followers_count": 0, "followers_count": 0,
"following_count": 0, "following_count": 0,
"starred_repos_count": 0, "starred_repos_count": 0,
"username": "build-bot" "username": "mirror"
} }
} }

View File

@ -4,4 +4,4 @@ set -euo pipefail
IFS=$'\n\t' IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
RUST_LOG=webhook_bridge=DEBUG WEBHOOK_BRIDGE_API_ROOT="https://code.fizz.buzz/api" WEBHOOK_BRIDGE_HMAC_SECRET=$(cat /bridge/git/mrmanager/k8s/webhook_bridge/secrets/webhook-bridge/webhook-bridge/HMAC_TOKEN) WEBHOOK_BRIDGE_OAUTH_TOKEN=$(cat /bridge/git/mrmanager/k8s/webhook_bridge/secrets/webhook-bridge/webhook-bridge/OAUTH_TOKEN) WEBHOOK_BRIDGE_REPO_WHITELIST="talexander/webhook_bridge,talexander/homepage,talexander/natter,talexander/poudboot,talexander/ta_waybar_pipewire,talexander/organic" cargo run exec env RUST_LOG=webhook_bridge=DEBUG WEBHOOK_BRIDGE_API_ROOT="https://code.fizz.buzz/api" WEBHOOK_BRIDGE_HMAC_SECRET=$(cat /bridge/git/mrmanager/k8s/webhook_bridge/secrets/webhook-bridge/webhook-bridge/HMAC_TOKEN) WEBHOOK_BRIDGE_OAUTH_TOKEN=$(cat /bridge/git/mrmanager/k8s/webhook_bridge/secrets/webhook-bridge/webhook-bridge/OAUTH_TOKEN) WEBHOOK_BRIDGE_REPO_WHITELIST="talexander/webhook_bridge,talexander/homepage,talexander/natter,talexander/poudboot,talexander/ta_waybar_pipewire,talexander/organic" cargo run "${@}"

View File

@ -89,7 +89,8 @@ pub(crate) struct HookRepository {
archived_at: String, // TODO: parse to datetime archived_at: String, // TODO: parse to datetime
permissions: HookRepositoryPermissions, permissions: HookRepositoryPermissions,
has_issues: bool, has_issues: bool,
internal_tracker: HookRepositoryInternalTracker, #[serde(default, skip_serializing_if = "Option::is_none")]
internal_tracker: Option<HookRepositoryInternalTracker>,
has_wiki: bool, has_wiki: bool,
has_pull_requests: bool, has_pull_requests: bool,
has_projects: bool, has_projects: bool,