Giter Site home page Giter Site logo

ikanago / issue-deadline-manager Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 502 KB

GitHub Action to label an issue by its deadline specified with a slash command and notify when there is updates on labels.

License: MIT License

Rust 96.50% Dockerfile 3.50%
issue-management github-actions deadline-manager

issue-deadline-manager's Introduction

Issue Deadline Manager

CI Build Docker image License: MIT

This is a GitHub Action to label an issue by its deadline specified with a slash command and notify when there is updates on labels. It is recommended to use in a repository for a daily life TODO list, but it might useful for software development.

Set up

Use in a existing repository

Create .github/workflows/todo.yml(any file name goes well, of course) and copy and paste following.

name: Manage TODO

on:
  schedule:
    - cron: '0/10 * * * *'
  issues:
    types: [opened, edited]

jobs:
  update-todo:
    runs-on: ubuntu-20.04
    steps:
      - uses: ikanago/issue-deadline-manager@v1

Then commit it and push to master.

Create from template

You can create a new repository with the setting completed. Go to issue-todo-template and create a new repository by using it as a template.

How to use

After setting up, create an issue as a TODO. And write its deadline with a slash command like this:

/deadline 2021/12/31

After a while, github-actions bot adds an label according to the deadline and comments. Working example

The command format is /deadline ${DATE} ${TIME}. DATE format is yyyy-MM-dd or MM-dd. TIME is optional. The format is HH:mm.

issue-deadline-manager's People

Contributors

dependabot[bot] avatar ikanago avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

isgasho

issue-deadline-manager's Issues

Parse issue comment

An issue includes command to specify deadline. So parse the issue and retrieve deadline.
The deadline date in the latest comment(including issue body) is adopted.

The date format is MM-dd or yyyy-MM-dd and the time format is H-m.
The command format is /deadline ${DATE} ${TIME}.

Test

hoge
/deadline 2021/11/21

Adjust timezone

Timezone of deadline is configured by a file in a repository which uses this action.
The timezone will be different from the one of CI runs on.
So the timezone must be adjust to UTC to compare with the current time at CI machine.

Default deadline time

If a deadline is specified without time, the task expires at 0:00 in the deadline date.
But this should be 23:59.

Notify deadline

Notify deadline by commenting to an issue.
There are two options about when to notify:

  • Label is updated
  • Specified by command in the issue body

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.