-
At the moment I can turn it on and off but cannot set the duration. |
Beta Was this translation helpful? Give feedback.
Answered by
smashah
Apr 12, 2022
Replies: 3 comments
-
@github-actions run ⚡ Release! ⚡(async () => {
function exec(cmd) {
console.log(execSync(cmd).toString());
}
//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(`cd ./types-only && npm version $VERS && npm run build && npm publish && cd ..`);
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`);
})(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Changelog🚀 Release 4.35.3 (2022-04-12)
|
Beta Was this translation helpful? Give feedback.
0 replies
-
With the latest version you can use the following code to set the ephemeral duration: //1 day
await client.setChatEphemeral(chatId, 86400)
//7 days
await client.setChatEphemeral(chatId, 604800)
//90 days
await client.setChatEphemeral(chatId, 7776000) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
smashah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the latest version you can use the following code to set the ephemeral duration: