跳到主要内容

Plugin Project Structure

This document introduces the project directory structure, target audience, and scaffolding project for AtomGit Action plugins, serving as the starting point for plugin development.

Developing AtomGit Actions plugins requires following a series of specifications and best practices, covering the definition of plugin metadata, code development, and the complete process of referencing the plugin.

Target Audience

This document is aimed at developers of AtomGit Actions type plugins.

Plugin Project Structure

The project directory structure of an AtomGit Actions plugin is as follows:

action-repo/
├── dist/
│ └── index.js # Plugin core code (build output)
│ └── stop.js # [Optional] Code for post-stop processing of the plugin
├── action.yml # Plugin metadata file
└── README.md # Plugin description document
Directory/FileDescription
action.ymlMetadata file defining core configurations such as plugin input parameters, output results, and execution files
dist/Directory containing executable code, generated by the build tool
README.mdDetailed documentation of the plugin
OtherJS/TS project source code, with no strict requirements on directory structure