Compare commits
3 Commits
v1.2.0-nex
...
latest
Author | SHA1 | Date | |
---|---|---|---|
alyx | 7506090dd6 | ||
alyx | 988ba8ec1c | ||
meli-release-bot | 4107cb309d |
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -1,3 +1,16 @@
|
|||
# [1.2.0](https://github.com/getmeli/meli-cli/compare/v1.1.2...v1.2.0) (2021-02-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* wrong logger namespace ([c616d2e](https://github.com/getmeli/meli-cli/commit/c616d2eb4661188b4d7926e7f96bb9937bdd5814))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* only warn repo undetected inside non-tty ([1b91ee6](https://github.com/getmeli/meli-cli/commit/1b91ee6c3176adf87c1dde6d875b42703e2a0d09))
|
||||
* update axios ([091debe](https://github.com/getmeli/meli-cli/commit/091debe74562c0a2b869098a37d84d8c3220a563))
|
||||
|
||||
## [1.1.2](https://github.com/getmeli/meli-cli/compare/v1.1.1...v1.1.2) (2020-12-23)
|
||||
|
||||
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2020 Meli
|
||||
Copyright (c) 2021 Meli
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@getmeli/cli",
|
||||
"version": "1.1.2",
|
||||
"name": "@whatthegit/meli-cli",
|
||||
"version": "1.2.0",
|
||||
"description": "Meli CLI",
|
||||
"main": "build/index.js",
|
||||
"bin": {
|
||||
|
|
|
@ -25,34 +25,6 @@ export async function setCommitStatus(data: UploadResponse, release?: string): P
|
|||
const context = 'meli';
|
||||
const description = release ? `Release ${release} deployed to Meli` : 'Site deployed to Meli';
|
||||
|
||||
if (process.env.GITHUB_TOKEN) {
|
||||
logger.info('Setting Github commit status');
|
||||
|
||||
const github = new Github(process.env.GITHUB_TOKEN, process.env.GITHUB_SERVER_URL);
|
||||
await github.setCommitStatus(repoId, commitHash, {
|
||||
context,
|
||||
description,
|
||||
status: data ? 'success' : 'failure',
|
||||
url: data?.urls[0],
|
||||
});
|
||||
} else {
|
||||
logger.debug('Github token not found, will not set commit status');
|
||||
}
|
||||
|
||||
if (process.env.GITLAB_TOKEN) {
|
||||
logger.info('Setting Gitlab commit status');
|
||||
|
||||
const gitlab = new Gitlab(process.env.GITLAB_TOKEN, process.env.GITLAB_URL);
|
||||
await gitlab.setCommitStatus(repoId, commitHash, {
|
||||
name: context,
|
||||
description,
|
||||
state: data ? 'success' : 'failed',
|
||||
url: data?.urls[0],
|
||||
});
|
||||
} else {
|
||||
logger.debug('Gitlab token not found, will not set commit status');
|
||||
}
|
||||
|
||||
if (process.env.GITEA_TOKEN && process.env.GITEA_URL) {
|
||||
logger.info('Setting Gitea commit status');
|
||||
|
||||
|
|
Loading…
Reference in New Issue