Compare commits

..

3 Commits

Author SHA1 Message Date
alyx 7506090dd6 Update package name 2022-12-24 14:19:55 -06:00
alyx 988ba8ec1c Remove GITHUB_TOKEN support so as to avoid confusion from Gitea Actions roleplaying as Github 2022-12-24 14:15:37 -06:00
meli-release-bot 4107cb309d chore(release): 1.2.0 [skip ci]
# [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](c616d2eb46))

### Features

* only warn repo undetected inside non-tty ([1b91ee6](1b91ee6c31))
* update axios ([091debe](091debe745))
2021-02-18 15:21:25 +00:00
3 changed files with 3 additions and 31 deletions

View File

@ -1,4 +1,4 @@
# [1.2.0-next.1](https://github.com/getmeli/meli-cli/compare/v1.1.2...v1.2.0-next.1) (2021-02-18)
# [1.2.0](https://github.com/getmeli/meli-cli/compare/v1.1.2...v1.2.0) (2021-02-18)
### Bug Fixes

View File

@ -1,6 +1,6 @@
{
"name": "@getmeli/cli",
"version": "1.2.0-next.1",
"name": "@whatthegit/meli-cli",
"version": "1.2.0",
"description": "Meli CLI",
"main": "build/index.js",
"bin": {

View File

@ -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');