project Utilities / Gitlab Recurring Issue avatar

utilities/gitlab_recurring_issue#3: Configuration to provide ticket templates



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.1
Created: 08-Sep-24 12:36



Description

Now that we can create issues in Gitlab, we need to develop a configuration syntax to specify

  • what tickets we should create
  • which project it should be in
  • when it should be created

For now, we're going to treat when as "always" because there's a bunch of work that'll be needed on that separately.



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit bdedaf11774c5ebf5a04029bfd29349f74b59d2b

Commit: bdedaf11774c5ebf5a04029bfd29349f74b59d2b 
Author: B Tasker                            
                            
Date: 2024-09-08T13:43:54.000+01:00 

Message

feat: add ability to load a config file from disk (utilities/gitlab_recurring_issue#3)

+34 -0 (34 lines changed)

Config is provided by YAML and may look a little like this

foo: bar
tickets:
   - title: "Check Softener Salt"
     schedule:
        day: 1
        month: "*"
     description: "Check whether the softener needs more salt adding"
     project: jira-projects/HOME
     assignee: btasker
     labels: ["task"]
   - title: "Worm Dogs"
     schedule:
       every: 4 weeks
     description: "Slip the dogs a worming tablet"
     project: jira-projects/HOME
     assignee: btasker
     labels: ["task", "pets"]

I've reserved the top level in case we end up wanting to add something system specific at some point

verified

mentioned in commit e9d4613328453b2352d2bc181b205dc6375066c7

Commit: e9d4613328453b2352d2bc181b205dc6375066c7 
Author: B Tasker                            
                            
Date: 2024-09-08T14:23:59.000+01:00 

Message

feat: Take issue templates from config and iterate through them (utilities/gitlab_recurring_issue#3)

+49 -26 (75 lines changed)

I've added an active attribute to ticket entries so that they can be turned on and off in config.