({ userName, userEmail, remote } = {})
| 504 | } |
| 505 | |
| 506 | async updateGitConfig({ userName, userEmail, remote } = {}) { |
| 507 | const repo = new URL(this.repo); |
| 508 | repo.password = this.token; |
| 509 | repo.username = 'token'; |
| 510 | |
| 511 | const commands = [ |
| 512 | ['git', 'config', 'user.name', userName || this.userName], |
| 513 | ['git', 'config', 'user.email', userEmail || this.userEmail], |
| 514 | [ |
| 515 | 'git', |
| 516 | 'remote', |
| 517 | 'set-url', |
| 518 | remote, |
| 519 | repo.toString() + (repo.toString().endsWith('.git') ? '' : '.git') |
| 520 | ] |
| 521 | ]; |
| 522 | |
| 523 | return commands; |
| 524 | } |
| 525 | |
| 526 | get workflowId() { |
| 527 | return CI_PIPELINE_ID; |
no test coverage detected