Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 24, 2021 03:54 am GMT

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_requestjobs:  library-of-babel:    runs-on: ubuntu-latest    steps:      - uses: realSaddy/[email protected]        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!!


Original Link: https://dev.to/realsaddy/library-of-babel-pr-3of9

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To