Skip to content

Commit

Permalink
refactor: #72 remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkcup committed Oct 22, 2021
1 parent 8832a71 commit 12be361
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 235 deletions.
1 change: 0 additions & 1 deletion app/Commands/IssueImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class IssueImportCommand extends Command
*/
protected $signature = 'issue:import
{file : 文件(支持格式:csv)}
{--type= : 类型(使用英文),如 DEFECT(缺陷)、REQUIREMENT(需求)、MISSION(任务)、EPIC(史诗)、SUB_TASK(子任务)}
{--coding_token= : CODING 令牌}
{--coding_team_domain= : CODING 团队域名,如 xxx.coding.net 即填写 xxx}
{--coding_project_uri= : CODING 项目标识,如 xxx.coding.net/p/yyy 即填写 yyy}
Expand Down
18 changes: 1 addition & 17 deletions app/Models/Issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,8 @@

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Issue extends Model
class Issue
{
use HasFactory;

/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'type',
'name',
'priority',
];

public const PRIORITY_MAP = [
'' => '0',
'' => '1',
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"ext-json": "*",
"ext-libxml": "*",
"ext-zip": "*",
"illuminate/database": "^8.40",
"illuminate/log": "^8.0",
"laravel-fans/confluence": "^0.1.1",
"laravel-zero/framework": "^8.8",
Expand Down
70 changes: 1 addition & 69 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 0 additions & 147 deletions config/database.php

This file was deleted.

0 comments on commit 12be361

Please sign in to comment.