Skip to content

Instantly share code, notes, and snippets.

View blanchardjeremy's full-sized avatar

Jeremy Blanchard blanchardjeremy

View GitHub Profile
@blanchardjeremy
blanchardjeremy / README.md
Last active January 16, 2022 10:16
Workflow: Using a GitHub application to edit files, and auto-merge them

Workflow: Using a GitHub application to edit files, and auto-merge them

This gist offers a pattern to create a GitHub application (aka: bot) that serves as a bot to edit files and succesfully merge them into your repo, using GitHub actions & workflow files.

The end result is that you can have workflows that look like this:

image

Instead of this:

function remoteFunction(val) {
return 2
}
Key Location Name Prevelence
US94610 City Name Heights 0.27
US94611 City Name Heights 0.27
US94612 City Name Heights 0.27
US94613 City Name Heights 0.27
US94614 City Name Heights 0.27
US94615 City Name Heights 0.27
US94616 City Name Heights 0.27
US94617 City Name Heights 0.27
US94618 City Name Heights 0.27
@blanchardjeremy
blanchardjeremy / README.md
Created February 23, 2012 00:18
Django class-based generic views for flatpages

How to use this

This snippet requires that you define each flatpage manually in a urls.py somewhere in your app. This is not ideal for most uses of flatpages. This class based view could probably be abstracted to handle the use case based on the flatpages middleware catching the 404 and seeing if any flatpage matches it.