From 604e3e06817e81c5aaefbaa2f834c024ae3d03d8 Mon Sep 17 00:00:00 2001 From: Nicolas Dupont Date: Tue, 24 Oct 2023 18:16:23 +0200 Subject: [PATCH] Update GitHub Copilot Terms of Service declaration (#74) --- declarations/GitHub Copilot.json | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/declarations/GitHub Copilot.json b/declarations/GitHub Copilot.json index 252b7e1..81affe9 100644 --- a/declarations/GitHub Copilot.json +++ b/declarations/GitHub Copilot.json @@ -2,10 +2,28 @@ "name": "GitHub Copilot", "documents": { "Terms of Service": { - "fetch": "https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features#github-copilot", - "select": [ - "#title-h1", - ".MarkdownContent_markdownBody__7_8Gt" + "combine": [ + { + "fetch": "https://docs.github.com/en/site-policy/github-terms/github-terms-of-service", + "select": [ + "#title-h1", + ".MarkdownContent_markdownBody__7_8Gt" + ] + }, + { + "fetch": "https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features", + "select": [ + "#title-h1", + { + "startBefore": ".markdown-body", + "endBefore": ".markdown-body > h2:first-of-type" + }, + { + "startBefore": "#github-copilot", + "endBefore": "#github-copilot ~ h2" + } + ] + } ] } }