https
POST
api.github.com
None
/graphql
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"query": "\n            query Q($id: ID!) {\n              node(id: $id) {\n                __typename\n                ... on Discussion {\n        answer {\n          author { login }\n          body\n          bodyHTML\n          bodyText\n          createdAt\n          databaseId\n          discussion { id }\n          editor { login }\n          id\n          lastEditedAt\n          updatedAt\n          url\n        }\n        author { login }\n        body\n        bodyHTML\n        bodyText\n        category {\n          createdAt\n          description\n          emoji\n          emojiHTML\n          id\n          isAnswerable\n          name\n          repository { owner { login } name }\n          slug\n          updatedAt\n        }\n        comments(first: 10) {\n          totalCount\n          pageInfo {\n            startCursor\n            endCursor\n            hasNextPage\n            hasPreviousPage\n          }\n          nodes {\n            id\n          }\n        }\n        createdAt\n        databaseId\n        editor { login }\n        id\n        labels(first: 10) {\n          totalCount\n          pageInfo {\n            startCursor\n            endCursor\n            hasNextPage\n            hasPreviousPage\n          }\n          nodes {\n            id\n            name\n          }\n        }\n        lastEditedAt\n        number\n        reactions(first: 10) {\n          totalCount\n          pageInfo {\n            startCursor\n            endCursor\n            hasNextPage\n            hasPreviousPage\n          }\n          nodes {\n            id\n          }\n        }\n        repository {\n          owner { login }\n          name\n        }\n        title\n        updatedAt\n        url\n      }\n              }\n            }\n            ", "variables": {"id": "D_kwDOADYVqs4AaHoG"}}
200
[('Date', 'Tue, 17 Sep 2024 19:10:18 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('X-OAuth-Scopes', 'read:discussion, read:org'), ('X-Accepted-OAuth-Scopes', 'repo'), ('github-authentication-token-expiration', '2024-10-04 11:29:00 UTC'), ('X-GitHub-Media-Type', 'github.v4; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4973'), ('X-RateLimit-Reset', '1726602697'), ('X-RateLimit-Used', '27'), ('X-RateLimit-Resource', 'graphql'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('Content-Encoding', 'gzip'), ('Transfer-Encoding', 'chunked'), ('Server', 'github.com'), ('X-GitHub-Request-Id', '7F67:2B9D7D:35ACF2:3648DD:66E9D41A')]
{"data":{"node":{"__typename":"Discussion","answer":{"author":{"login":"dawngerpony"},"body":"[This comment](https://github.com/PyGithub/PyGithub/issues/2895#issue-2118964108) contains the answer to your question:\r\n\r\n```python\r\nmy_repo.raw_data[\"custom_properties\"]\r\n```\r\n\r\n#2968 appears to add proper support for custom properties, but doesn't look like it's made it into a release yet.","bodyHTML":"<p dir=\"auto\"><a href=\"https://github.com/PyGithub/PyGithub/issues/2895#issue-2118964108\" data-hovercard-type=\"issue\" data-hovercard-url=\"/PyGithub/PyGithub/issues/2895/hovercard\">This comment</a> contains the answer to your question:</p>\n<div class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"my_repo.raw_data[&quot;custom_properties&quot;]\"><pre class=\"notranslate\"><span class=\"pl-s1\">my_repo</span>.<span class=\"pl-s1\">raw_data</span>[<span class=\"pl-s\">\"custom_properties\"</span>]</pre></div>\n<p dir=\"auto\"><a class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"2293897055\" data-permission-text=\"Title is private\" data-url=\"https://github.com/PyGithub/PyGithub/issues/2968\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/PyGithub/PyGithub/pull/2968/hovercard\" href=\"https://github.com/PyGithub/PyGithub/pull/2968\">#2968</a> appears to add proper support for custom properties, but doesn't look like it's made it into a release yet.</p>","bodyText":"This comment contains the answer to your question:\nmy_repo.raw_data[\"custom_properties\"]\n#2968 appears to add proper support for custom properties, but doesn't look like it's made it into a release yet.","createdAt":"2024-08-23T06:36:50Z","databaseId":10426644,"discussion":{"id":"D_kwDOADYVqs4AaHoG"},"editor":null,"id":"DC_kwDOADYVqs4AnxkU","lastEditedAt":null,"updatedAt":"2024-08-23T06:36:51Z","url":"https://github.com/PyGithub/PyGithub/discussions/2993#discussioncomment-10426644"},"author":{"login":"heitorPB"},"body":"What is the equivalent of `https://api.github.com/repos/OWNER/REPO/properties/values`? I'm interested in getting/setting custom properties for my repos. I can do that with `curl`, but couldn't find a way to do it via this project.\r\n\r\nDocs here: [Get all custom property values for a repository](https://docs.github.com/en/rest/repos/custom-properties?apiVersion=2022-11-28#get-all-custom-property-values-for-a-repository).","bodyHTML":"<p dir=\"auto\">What is the equivalent of <code class=\"notranslate\">https://api.github.com/repos/OWNER/REPO/properties/values</code>? I'm interested in getting/setting custom properties for my repos. I can do that with <code class=\"notranslate\">curl</code>, but couldn't find a way to do it via this project.</p>\n<p dir=\"auto\">Docs here: <a href=\"https://docs.github.com/en/rest/repos/custom-properties?apiVersion=2022-11-28#get-all-custom-property-values-for-a-repository\">Get all custom property values for a repository</a>.</p>","bodyText":"What is the equivalent of https://api.github.com/repos/OWNER/REPO/properties/values? I'm interested in getting/setting custom properties for my repos. I can do that with curl, but couldn't find a way to do it via this project.\nDocs here: Get all custom property values for a repository.","category":{"createdAt":"2020-12-08T23:29:13Z","description":"Ask the community for help","emoji":":pray:","emojiHTML":"<div>🙏</div>","id":"MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyMDI5MDYx","isAnswerable":true,"name":"Q&A","repository":{"owner":{"login":"PyGithub"},"name":"PyGithub"},"slug":"q-a","updatedAt":"2020-12-08T23:29:13Z"},"comments":{"totalCount":2,"pageInfo":{"startCursor":"Y3Vyc29yOnYyOpK5MjAyNC0wOC0yM1QwODozNjo1MCswMjowMM4AnxkU","endCursor":"Y3Vyc29yOnYyOpK5MjAyNC0wOC0yOVQxODowMTowMCswMjowMM4AoA2V","hasNextPage":false,"hasPreviousPage":false},"nodes":[{"id":"DC_kwDOADYVqs4AnxkU"},{"id":"DC_kwDOADYVqs4AoA2V"}]},"createdAt":"2024-06-21T13:11:38Z","databaseId":6846982,"editor":null,"id":"D_kwDOADYVqs4AaHoG","labels":{"totalCount":0,"pageInfo":{"startCursor":null,"endCursor":null,"hasNextPage":false,"hasPreviousPage":false},"nodes":[]},"lastEditedAt":null,"number":2993,"reactions":{"totalCount":0,"pageInfo":{"startCursor":null,"endCursor":null,"hasNextPage":false,"hasPreviousPage":false},"nodes":[]},"repository":{"owner":{"login":"PyGithub"},"name":"PyGithub"},"title":"How to get a list of custom repository properties?","updatedAt":"2024-08-29T16:01:00Z","url":"https://github.com/PyGithub/PyGithub/discussions/2993"}}}
