Skip to content

Commit

Permalink
Merge pull request #530 from gitautoai/wes
Browse files Browse the repository at this point in the history
Fix errors on post-hackernews and post-linkedin
  • Loading branch information
hiroshinishio authored Feb 2, 2025
2 parents 7019e82 + aadc02b commit db8734c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/post-hackernews.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function postHackerNews({ context }) {
await page.waitForLoadState("networkidle");

// Submit story
const title = context.payload.pull_request.title;
const title = context.payload.pull_request.title.substring(0, 80);
const description = context.payload.pull_request.body;
const url = context.payload.pull_request.html_url;
await page.fill('input[name="title"]', title);
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/post-linkedin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { RestliClient } = require("linkedin-api-client");

const gitautoUrn = "urn:li:organization:100932100"; // Go to company profile page
const wesUrn = "urn:li:person:915150628"; // Go to profile page and console then search for "urn:li:member:"
const wesUrn = "urn:li:member:915150628"; // Go to profile page and console then search for "urn:li:member:"

/**
* @see https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/posts-api?view=li-lms-2024-11&viewFallbackFrom=li-lms-unversioned&tabs=http
Expand Down

0 comments on commit db8734c

Please sign in to comment.