Wa-automate-nodejs: Introducing Catalogs for Small Businesses

Created on 10 Jan 2020  Â·  8Comments  Â·  Source: open-wa/wa-automate-nodejs

Most helpful comment

All 8 comments

I believe the quickest and easiest way would be to create the product message on the mobile device, forward to some user and use that message as a default to forward to other contacts

@marcelocecin I don't know about creation of the product but I know how to send the product to a number. Good idea.

can you share how to send the product ? thanks !

@marcelocecin Try this out.

https://github.com/smashah/sulla/commit/cb1712056842b4defe83a4ce6e118584119ec939

It's not in the client code yet.

@smashah it did not work:
error TypeError: Cannot read property '0' of undefined products[0].id

@github-actions run


âš¡ Release! âš¡

(async () => {
function exec(cmd) {
  console.log(execSync(cmd).toString());
}

// 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`);
exec(`npm run release-ci`);

//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`);
  })();

Changelog

🚀 Release 1.9.17 (2020-05-09)

  • Release 1.9.17 2b88a8a
  • fix: business product catalog now working #40 00acc6e
  • updated release-image d51acc8
Was this page helpful?
0 / 5 - 0 ratings