More Willpower to Developers | DevsDay.ru

IT-блоги More Willpower to Developers

dev.to 24 ноября 2021 г.


My Workflow

Scenario: You're a developer, scouring the open source ocean of github, making contributions, raising issues, reading comments in the issue, contributing back, raising PRs and sometimes, the end result is just too far away for the journey to be satisfying enough to keep going. Wouldn't a pick-me-up go a long way ?

Enter uplifiting-quote-action. Any comment you make on a PR or issue and you are met with an uplifting quote. The right words at the right time can do wonders to help recharge your willpower and help you get back on track with renewed vigor and energy.

Behind this action is but one purpose, to kindle the developer's mind to action whenever he/she experiences a sense of declining enthusiasm.

Submission Category:

Wacky Wildcards 😝

Yaml File or Link to Code

GitHub logo Infinity-Intellect / uplifiting-quote-action

Comments an uplifting quote every time you comment on a PR or an issue.

uplifiting-quote-action

Comments an uplifting quote every time you comment on a PR or an issue. GithubQuoteComment

Inputs

github_token

Required A github token

comment_starter

Optional A custom beginning statement for a comment

Outputs

None

Example Usage

name: quote_comment
on: issue_comment
jobs:
  pr_commented:
    name: PR Comment
    if: ${{ github.event.issue.pull_request }}
    runs-on: ubuntu-latest
    steps:
      - uses: infinity-intellect/[email protected]
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          comment_starter: 'Thanks for commenting on this PR.'
  issue_commented:
    name: Issue Comment
    if: ${{ !github.event.issue.pull_request }}
    runs-on: ubuntu-latest
    steps:
      - uses: infinity-intellect/[email protected]
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          comment_starter: 'We appreciate you taking your time to comment on this issue.'



Additional Resources / Info

Javscript Github Actions Documentation (Very beginner-friendly!)

As a Github actions newbie, I only regret not getting into this sooner. I can't wait to create more actions that will aid in the developer workflow.

Источник: dev.to

Наш сайт является информационным посредником. Сообщить о нарушении авторских прав.

actionshackathon21 javascript github beginners