Skip to content

Regularly reminding groups of people about the chores they wouldn't otherwise do.

License

Notifications You must be signed in to change notification settings

plan3/annoyance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Annoyance

What

Regularly reminding groups of people about the chores they wouldn't otherwise do by opening pull requests and mentioning the ones deemed responsible. Examples of templates and pull requests can be found here.

Why

Because teams of people have collective chores that they need to perform.

How

Basic configuration

  • GITHUB_TOKEN
    • A personal access token with public_repo if you're using public repositories or repo permissions if you need yo use private repositories
  • GITHUB_API_URL: (optional)
    • Only needed for use with Github Enterprise

Configuring annoyances

  • General
    • <schedule> is one of DAILY, WEEKDAY, or <day-of-week> where...
      • DAILY is executed once every day
      • WEEKDAY is executed daily Monday to Friday
      • <day-of-week> is executed on that day of the week, i.e. TUESDAY
    • <task> is either or pr or issue
    • The destination supports the following variable expansions
      • {date} expands to the current date in YYYY-MM-DD format (i.e. 2015-03-14)
      • {week} expands to the current week number (i.e. 08)
      • {dow} expands to the day of the week (i.e. Tuesday)
    • The environment variable name for a task will be used as the title of the pull request
      • Underscore _ will be replaced by space
  • Examples
    • Open pull request
      • <schedule>_some-descriptive-name=<owner/org>/<repo>:<owner/org>/<repo>/<where-to-put-file>:<pr-description>
      • e.g. DAILY_EXAMPLE=pr:plan3/annoyances/template.md:plan3/annoyances/stuff/{date}/{week}.md:@chids
    • Create issue
      • <schedule>_some-descriptive-name=<owner/org>/<repo>:<owner/org>/<repo>:<issue-description>
      • e.g. DAILY_EXAMPLE=issue:plan3/annoyances/template.md:plan3/annoyances:@chids

Heroku app configuration

  1. Add the Scheduler add-on
  2. Configure it to run daily at the time when you want stuff to be created

Running locally

  1. Create a .env with the env vars documented above
  2. heroku local worker

About

Regularly reminding groups of people about the chores they wouldn't otherwise do.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages