DEV Community

Jack
Jack

Posted on

Library of Babel PR

My Workflow

Library of Babel PR

Submission Category:

Wacky Wildcards

Yaml File or Link to Code

GitHub logo realSaddy / library-of-babel

Github action which posts the location in the Great Library of Babel.

library-of-babel

Github action which posts the location of a pull request in the Library of Babel!

What is the Library of Babel?

You can read more on their website. In a nutshell, it contains every single permutation of 3200 characters in a lookup. Wow!

How to use this in your repo!

Now that you're ready to 100x your productivity, you can use this action by including it in a workflow like so:

name: 'Library of Babel'
on: pull_request

jobs:
  library-of-babel:
    runs-on: ubuntu-latest
    steps:
      - uses: realSaddy/library-of-babel@v1.0.1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Whenever a brave soul creates a pull request, it will reply with a link to where the librarians at the library already wrote it... should you really merge such unoriginal code?!?




Additional Resources / Info

Hey everyone! This is my first real Github action project, and I'm quite happy with it :)!

The action automatically runs when a new pull request is created, and responds with the location of the pull request's diff in the Library of Babel, a mathematical vault of every permutation of 3200 characters!

I did this in a long code session I just finished, so there's no big projects using this groundbreaking action --- yet! But, I've included it in one of my open source projects.

GLHF!!

Top comments (1)

Collapse
 
realsaddy profile image
Jack

By the way, here is this post in the Library of Babel :)