mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Split main.py into modules to (mostly) isolate the GitHub-specific code from the general TODO detection and program logic. This is both for readability/maintainability and to prepare for potentially supporting other version control systems (e.g. GitLab, BitBucket).
22 lines
796 B
Python
22 lines
796 B
Python
class Issue(object):
|
|
"""Basic Issue model for collecting the necessary info to send to GitHub."""
|
|
|
|
def __init__(self, title, labels, assignees, milestone, body, hunk, file_name,
|
|
start_line, num_lines, markdown_language, status, identifier, ref, issue_url, issue_number):
|
|
self.title = title
|
|
self.labels = labels
|
|
self.assignees = assignees
|
|
self.milestone = milestone
|
|
self.body = body
|
|
self.hunk = hunk
|
|
self.file_name = file_name
|
|
self.start_line = start_line
|
|
self.num_lines = num_lines
|
|
self.markdown_language = markdown_language
|
|
self.status = status
|
|
self.identifier = identifier
|
|
self.ref = ref
|
|
self.issue_url = issue_url
|
|
self.issue_number = issue_number
|
|
|