open-wa/wa-automate-nodejs

log chatwoot request errors #2996

smashah posted onGitHub

  • Also log 200 response codes for chatwoot requests

@github-actions run

<details> <summary>⚑ Release! ⚑</summary>

(async () => {
function exec(cmd) {
try {
    execSync(cmd, {stdio: 'inherit'})
}  catch (error) {
    console.log(`Status Code: ${error.status} with '${error.message}'`);
 }
}
//set the version type
process.env.VERS = "patch"

// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";

exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci $VERS`);

// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN && npm run types:publish `);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);

//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();

    await postComment(result);

//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
  })();

</details>

posted by smashah about 2 years ago

Changelog

πŸš€ Release 4.54.2 (2022-12-25)

  • ✨feat: optional header check #2993 2632acc
  • Release 4.54.2 f944536
  • updated types-only package 96f2364
posted by smashah about 2 years ago

Changelog

πŸš€ Release 4.54.4 (2022-12-26)

  • Release 4.54.4 9104d36
  • updated types-only package 6184d61
  • πŸ”Š log chatwoot request errors #2996 3d969f1
  • updated types-only package 33e0c8b
  • fix build issue #2996 a4c91b4
posted by smashah about 2 years ago

@github-actions run

<details> <summary>⚑ Release! ⚑</summary>

(async () => {
function exec(cmd) {
try {
    execSync(cmd, {stdio: 'inherit'})
}  catch (error) {
    console.log(`Status Code: ${error.status} with '${error.message}'`);
 }
}
//set the version type
process.env.VERS = "patch"

// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";

exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci $VERS`);

// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN && npm run types:publish `);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);

//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();

    await postComment(result);

//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
  })();

</details>

posted by smashah about 2 years ago

Changelog

πŸš€ Release 4.54.5 (2022-12-27)

  • Release 4.54.5 cf284ed
  • πŸ”Š log all chatwoot reqs status #2996 f030116
  • updated types-only package 849a8b9
posted by smashah about 2 years ago

Fund this Issue

$0.00
Funded

Pull requests