DEV Community

Cover image for Vacation Mode JavaScript Action
Lucas Rangit MAGASWERAN
Lucas Rangit MAGASWERAN

Posted on

Vacation Mode JavaScript Action

My Workflow

This GitHub Action helps maintainers of open source projects go on vacation and take mental health breaks by limiting community interactions within a repository. During this time, commenting, opening issues, or creating pull requests will be limited to a defined group.

This GitHub Action avoids the 24 hour limit of the GitHub repository interactions limit feature. This makes it easier for the project maintainers and more transparent for the community.

This GitHub Action does not make any changes that would generate a commit.

This project was inspired by @mrdoob, maintainer of three.js. I started this project on September 17th based on his feature request.

I've already received some amazing feedback, which is why I decided to submit it here for more reach.

Submission Category:

Maintainer Must-Haves

Yaml File

name: Vacation Mode

on:
  # Run on all issue activity
  issues:
  # Run daily to reset the 24 hour interaction limit timer as needed
  schedule:
    - cron: "0 0 * * *"

jobs:
  vacation_mode_job:
    runs-on: ubuntu-latest
    name: Update Vacation Mode
    steps:
    - uses: robotnyc/vacation-mode-action@v1
      with:
        limit-group: 'collaborators_only'
        vacation-mode-activated: '![vacation-mode-activated](https://i.imgflip.com/18t5ch.jpg)'
        GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

Code

GitHub logo robotnyc / vacation-mode-action

Limit interactions to your repository while on vacation using GitHub Actions

Vacation Mode JavaScript Action

This GitHub Action helps maintainers of open source projects go on vacation and take mental health breaks by limiting community interactions within a repository. During this time, commenting, opening issues, or creating pull requests will be limited to a defined group.

This GitHub Action avoids the 24 hour limit of the GitHub repository interactions limit feature. This makes it easier for the project maintainers and more transparent for the community.

This GitHub Action does not make any changes that would generate a commit.

Inspired by @mrdoob's, maintainer of three.js, feature request https://twitter.com/mrdoob/status/1305989856368234496 .

Usage

  1. Add the setup code to your repository workflow.
  2. Create an issue with a title that contains "vacation". For example, "🌴 On Vacation Next Week".
  3. Pin the issue to activate it and so your community can clearly see that you are on vacation.
  4. Include an "out-of-office note" in the issue…

Additional Resources / Info

Top comments (1)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.