كل مهمة لها id وtype وpayload. السكربت سيحدّث حالة المهمة بعد التنفيذ.
Signed-off-by: Mohamed-Abdelhalim2 <mohamed-abdelhalim2@noreply.app.gitpasha.com>
هذا الالتزام موجود في:
59
tasks.json
Normal file
59
tasks.json
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"id": "create-structure-1",
|
||||||
|
"type": "create_dirs",
|
||||||
|
"branch": "push-test",
|
||||||
|
"confirm": true,
|
||||||
|
"auto": false,
|
||||||
|
"payload": {
|
||||||
|
"dirs": ["moduleA", "moduleB/submodule", "docs"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "add-files-to-moduleA",
|
||||||
|
"type": "create_files",
|
||||||
|
"branch": "push-test",
|
||||||
|
"confirm": true,
|
||||||
|
"auto": false,
|
||||||
|
"payload": {
|
||||||
|
"files": [
|
||||||
|
{"path": "moduleA/README.md", "content": "# Module A\nThis module does X."},
|
||||||
|
{"path": "moduleA/main.py", "content": "print('hello from module A')"}
|
||||||
|
],
|
||||||
|
"commit_message": "Add moduleA skeleton",
|
||||||
|
"push": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "import-local-image",
|
||||||
|
"type": "import_file",
|
||||||
|
"branch": "push-test",
|
||||||
|
"confirm": true,
|
||||||
|
"payload": {
|
||||||
|
"src": "C:/Users/you/Desktop/logo.png",
|
||||||
|
"dest": "assets/logo.png",
|
||||||
|
"commit_message": "Add logo asset",
|
||||||
|
"push": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "create-branch-and-pr",
|
||||||
|
"type": "create_files",
|
||||||
|
"branch": "push-test",
|
||||||
|
"confirm": true,
|
||||||
|
"payload": {
|
||||||
|
"files": [{"path": "featureX/notes.md", "content": "Notes for feature X"}],
|
||||||
|
"create_branch_for_changes": true,
|
||||||
|
"new_branch_name": "feature/auto-notes",
|
||||||
|
"create_pr": true,
|
||||||
|
"owner": "YourGitPashaUser",
|
||||||
|
"repo": "alrushd_lil-iiman",
|
||||||
|
"base": "main",
|
||||||
|
"pr_title": "Auto: add feature notes",
|
||||||
|
"commit_message": "Add featureX notes",
|
||||||
|
"push": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
المرجع في مشكلة جديدة
حظر مستخدم