Skip to content

Instantly share code, notes, and snippets.

View jpoehnelt's full-sized avatar
🏠
Working from home

Justin Poehnelt jpoehnelt

🏠
Working from home
View GitHub Profile
interface MyRequest extends AxiosRequestConfig {
params: {
foo: string;
};
}
interface MyRequest extends Partial<AxiosRequestConfig> {
params: {
foo: string;
};
}
query {
rateLimit {
limit
cost
remaining
resetAt
}
repository(owner: "${owner}", name: "${name}") {
description
issues(last: 10) {
@jpoehnelt
jpoehnelt / archive_dependabot_emails.gs
Created February 5, 2021 22:50
Archive Dependabot Emails
function archiveDependabotPullRequestsThatHaveBeenMerged() {
const threads = GmailApp.search('label:"inbox" from:dependabot[bot]');
for (let thread of threads) {
if (isMerged(thread)) {
thread.moveToArchive();
};
}
}
const patterns = [/This PR is included in version/, /Merged .* into .*/, /Closed /];
@jpoehnelt
jpoehnelt / mcp.gs
Created June 25, 2025 19:41
Apps Script MCP server
/**
* A constant array defining the tools that this server makes available.
* Each tool is an object with a name, description, and an input schema.
*/
const AVAILABLE_TOOLS = [
{
name: "read_recent_email",
description:
"Reads the subject line of the most recent email thread in your inbox.",
inputSchema: {