diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-05-28 09:37:16 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:28 +0200 |
commit | 22d1c16a61c0906301d38bd5a34115f2160b0d4a (patch) | |
tree | 66ec0aefa5f4c756aab448573d8bceb47a0277f9 /mod/mod-ci-github-service-data.hxx | |
parent | 3a4e5f47b01b551cc8d9be37274337182be16e53 (diff) |
Add fields for PRs to service_data
Diffstat (limited to 'mod/mod-ci-github-service-data.hxx')
-rw-r--r-- | mod/mod-ci-github-service-data.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx index afcf082..252f992 100644 --- a/mod/mod-ci-github-service-data.hxx +++ b/mod/mod-ci-github-service-data.hxx @@ -59,6 +59,11 @@ namespace brep string repository_node_id; // GitHub-internal opaque repository id. + // The following two are only used for pull requests. + // + optional<string> repository_clone_url; + optional<uint32_t> pr_number; + // The commit ID the check suite or pull request (and its check runs) are // associated with. In the case of a pull request this will be // `pull_request.head.sha`. @@ -85,7 +90,9 @@ namespace brep timestamp iat_expires_at, uint64_t installation_id, string repository_node_id, - string head_sha); + string head_sha, + optional<string> repository_clone_url = nullopt, + optional<uint32_t> pr_number = nullopt); service_data () = default; |