You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bart_info.art.src%7D?q=api&page=33&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=api
Returns an array of strings in format "username" or "username/projectName"
Found 11519 results for "api"(4850ms)
79801. **Create a Slack App**:
81- Go to [Slack API Apps](https://api.slack.com/apps) → Create New App → From scratch
82- Name your app and select your workspace
83- Click "Create App"
32};
3334// Types for Slack API
35type SlackMessage = {
36blocks: any[];
219220// Get PR details
221const url = `https://api.github.com/repos/${repo}/pulls/${prNumber}`;
222223let response;
241return await response.json();
242} catch (jsonError) {
243throw new Error(`Failed to parse GitHub API response: ${jsonError.message}`);
244}
245}
246247// Merge a PR via GitHub API
248async function mergePR(repo: string, prNumber: number) {
249const token = Deno.env.get("GITHUB_TOKEN");
282283// Proceed with merge
284const url = `https://api.github.com/repos/${repo}/pulls/${prNumber}/merge`;
285286const response = await fetch(url, {