Skip to content

Commit

Permalink
Enable GitAuto to draft a X post when a PR is merged
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Dec 15, 2024
1 parent 01edb17 commit 7be4973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/x-post-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
accessSecret: process.env.TWITTER_ACCESS_TOKEN_SECRET,
});
const tweet = `🚀 New merge: ${context.payload.pull_request.title}\n\n${context.payload.pull_request.html_url}`;
const tweet = `🚀 New release: ${context.payload.pull_request.title}\n\n${context.payload.pull_request.html_url}`;
await client.v2.tweet(tweet, { draft_mode: true });
await client.v2.tweet(tweet);
env:
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_SECRET: ${{ secrets.TWITTER_API_SECRET }}
Expand Down

0 comments on commit 7be4973

Please sign in to comment.