So, you like Lord of the Rings, right? Every developer likes LotR, right? Don't you wish that more of your code had variables named after LotR characters? Right? RIGHT?!
What about if you could actually get PAID for replacing the variable names in your code with LotR names? Wouldn't that be AWESOME?!
The wait is over... the ULTIMATE Github Action is here.
When you push code to a Github repo this action goes through all .py files it can find, parses them with an AST and pulls out the variable names. It then cross references them against LotR characters... and if you have increased the number of variables named after LotR characters in this set of commits then you are immediately paid an amount of XRP for your devotion and love.
Submission Category:
Wacky Wildcards Of course!
Yaml File or Link to Code
This is how you get all the goodness... ohhhh yeah baby!
name:Lord of the Pythonson:# Trigger the workflow on push or pull request,# but only for the master branchpush:branches:-masterjobs:pay:runs-on:ubuntu-lateststeps:-name:Checkout codeuses:actions/checkout@v2with:fetch-depth:5-name:Checkout prior codeuses:actions/checkout@v2with:ref:${{ github.event.before }}path:.old-code-name:Checkout current codeuses:actions/checkout@v2with:path:.new-code-name:Set up Pythonuses:actions/setup-python@v2with:python-version:'3.x'-name:get commit messagerun:|echo ::set-env name=commit_log::$(git log --format=%B ${{ github.event.before }}..${{ github.event.after }})-name:Get number of new LotR charactersid:lotruses:hammertoe/lord_of_the_pythons@master-name:Run PayIDuses:hammertoe/payid_xrp_action@1.1if:${{ steps.lotr.outputs.num > 0 }}with:wallet_secret:${{ secrets.PAYID_WALLET_SECRET }}amount:${{ steps.lotr.outputs.amount }}commit_log:${{ env.commit_log }}
A Github Action that analyses Python code and detects new variables named after LotR characters and pays developers as a reward
Lord of the Pythons
What?
A Github Action that analyses Python code and detects new variables named after LotR characters and a workflow that pays developers as a reward.
When you push code to a Github repo it goes through all .py files it can find, parses them with an AST and pulls out the variable names. It then cross references them against LotR characters... and if you have increased the number of variables named after LotR characters in this set of commits then you are immediately paid an amount of XRP for your devotion and love.