跳到主要内容

Plugin Project Structure

Developing an AtomGit Actions plugin 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 directory structure of an AtomGit Actions plugin project is as follows:

action-repo/
├── dist/
│ └── index.js # Plugin core code (build output)
│ └── stop.js # [Optional] Code for post-processing after the plugin stops
├── 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 about the plugin
OtherJS/TS project source code, with no strict requirements on directory structure