SaxJ / timekeeper

Home Page:timekeeper-chi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Timekeeper

Allow merges only during specified times

Using this Bot

To use this bot, install it on the repositories you want to keep time on, and configure the hours to allow pull requests with a yaml file in .github/timekeeper.yml.

shortcircuit: 'hotfix;fix;urgent' #skip timekeeper if these words are contained in the PR title
timezone: 'Australia/Perth'
checkTitle:
  allowed: 'The title of an approved check'
  declined: 'The title of a declined check'
checkSummary:
  allowed: 'The summary of an approved check'
  declined: 'The summary of a declined check'
days:
  monday:
    from: '09:00'
    to: '17:00'
    closed: false
  tuesday:
    from: '09:00'
    to: '17:00'
    closed: false
  wednesday:
    from: '09:00'
    to: '17:00'
    closed: false
  thursday:
    from: '09:00'
    to: '17:00'
    closed: false
  friday:
    from: '09:00'
    to: '20:00'
    closed: false
  saturday:
    closed: true #if day is closed, then PR will always be blocked on this day
  sunday:
    closed: true

Development

Setup

# Install dependencies
npm install

# Run the bot
npm start

Docker

# 1. Build container
docker build -t timekeeper .

# 2. Start container
docker run -e APP_ID=<app-id> -e PRIVATE_KEY=<pem-value> timekeeper

Contributing

If you have suggestions for how timekeeper could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2022 Saxon Jensen saxonj@mailbox.org

About

timekeeper-chi.vercel.app

License:ISC License


Languages

Language:TypeScript 88.3%Language:HTML 3.5%Language:JavaScript 3.2%Language:Shell 2.7%Language:Dockerfile 2.2%