action_updater.main package
Subpackages
Submodules
action_updater.main.action module
- class action_updater.main.action.GitHubAction(filename)[source]
Bases:
object
Parse a GitHub action into it’s sections.
We always present the changes (copy of original) and then can easily compare the two. The overall structure should not change.
- property has_changes
Determine if before != after (the action has changed)
- property jobs
- property runs
- property steps
action_updater.main.client module
action_updater.main.github module
action_updater.main.schemas module
action_updater.main.settings module
- class action_updater.main.settings.Settings(settings_file, validate=True)[source]
Bases:
SettingsBase
The settings class is a wrapper for easily parsing a settings.yml file.
We parse into a query-able class. It also gives us control to update settings, meaning we change the values and then write them to file. It’s basically a dictionary-like class with extra functions.
- class action_updater.main.settings.SettingsBase[source]
Bases:
object
- property filesystem_registry
Return the first found filesystem registry
- get_settings_file(settings_file=None)[source]
Get the preferred user settings file, set user settings if exists.
- update_param(command, param)[source]
Given a parameter, update the configuration on the fly if it’s in set/add/remove
action_updater.main.updater module
- class action_updater.main.updater.UpdaterBase(token, settings=None)[source]
Bases:
object
- property classpath
- date_time_format = '%Y-%m-%dT%H:%M:%S%z'
- description = 'An abstract base updater.'
- get_tags_lookup(repo)[source]
This isn’t required to be sploot out, but it’s easier to debug / read if necessary
- name = 'updater'
- property settings
Get settings specific to updater
- property slug
- static_files = False
- property title