Searching/filtering releases via query parameters #78843
Replies: 3 comments 5 replies
-
|
@theboyWhoCriedWoolf I think it can be achieved using GraphQL and your GitHub access token.. |
Beta Was this translation helpful? Give feedback.
-
|
I scratched this out using githubV3py which uses the REST API import githubV3py
def main():
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-o", "--owner")
parser.add_argument("-r", "--repo")
parser.add_argument("-t", "--token")
options = parser.parse_args()
ghc = githubV3py.GitHubClient(token=options.token)
releases = ghc.ReposListReleases(options.owner, options.repo)
paginator = githubV3py.GitHubClient.generate(ghc.ReposListReleases, options.owner, options.repo, per_page=10)
for release in paginator:
isinstance(release, githubV3py.Release)
print(f"{release.name:25} isDraft: {release.draft}")
print(release.body)
print(f"rate-limit remaining = {ghc.rateLimitRemaining}")
return
if __name__ == '__main__':
main() |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to return a list of Releases by keyword or state? So, all releases that have
Samplein the title/body and isdraft?I am trying to find a way to use either the Rest API or GraphQL api to return a list of releases by a keyword or state of a release.
So similar to the search functionality within the
Releasespage withingithub.comFor example:
Beta Was this translation helpful? Give feedback.
All reactions