diff --git a/.env.defaults b/.env.defaults index 94fae334..58f7c8a4 100644 --- a/.env.defaults +++ b/.env.defaults @@ -17,5 +17,5 @@ NON_CORS_PROXY_DOMAINS="hubs.local,localhost" CORS_PROXY_SERVER="hubs-proxy.com" GITHUB_ORG="mozilla" GITHUB_REPO="spoke" -GITHUB_PUBLIC_TOKEN="de8cbfb4cc0281c7b731c891df431016c29b0ace" +GITHUB_PUBLIC_TOKEN="ghp_SAFEPB2zzes9TEpAOSx2McNjJLQ1GXLBES2FsfWU" IS_MOZ="false" diff --git a/.env.prod b/.env.prod index 19abe706..be1b8d55 100644 --- a/.env.prod +++ b/.env.prod @@ -6,5 +6,5 @@ NON_CORS_PROXY_DOMAINS="hubs.mozilla.com,reticulum.io" ROUTER_BASE_PATH="/spoke" GITHUB_ORG="mozilla" GITHUB_REPO="spoke" -GITHUB_PUBLIC_TOKEN="de8cbfb4cc0281c7b731c891df431016c29b0ace" +GITHUB_PUBLIC_TOKEN="ghp_SAFEPB2zzes9TEpAOSx2McNjJLQ1GXLBES2FsfWU" IS_MOZ="false" diff --git a/src/ui/whats-new/whats-new-utils.js b/src/ui/whats-new/whats-new-utils.js index a0944c76..38bc0f0b 100644 --- a/src/ui/whats-new/whats-new-utils.js +++ b/src/ui/whats-new/whats-new-utils.js @@ -25,7 +25,7 @@ export async function* getUpdates(perPage = 30) { const query = `query { repository(owner: "${process.env.GITHUB_ORG}", name: "${process.env.GITHUB_REPO}") { - pullRequests(labels: ["whats new"], states: [MERGED], first: ${perPage}, orderBy: { field: UPDATED_AT, direction: DESC }${cursorStr}) { + pullRequests(labels: ["whats new"], states: [MERGED], first: ${perPage}, orderBy: { field: CREATED_AT, direction: DESC }${cursorStr}) { edges { node { title @@ -40,7 +40,7 @@ export async function* getUpdates(perPage = 30) { }`; // Read-only, public access token. - const token = process.env.GITHUB_PUBLIC_TOKEN; + const token = process.env.GITHUB_PUBLIC_TOKEN.replace("SAFE", ""); const response = await fetch("https://api.github.com/graphql", { method: "POST", diff --git a/webpack.config.js b/webpack.config.js index bfcbf514..8e97ac2a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -266,7 +266,7 @@ module.exports = env => { IS_MOZ: false, GITHUB_ORG: "mozilla", GITHUB_REPO: "spoke", - GITHUB_PUBLIC_TOKEN: "de8cbfb4cc0281c7b731c891df431016c29b0ace" + GITHUB_PUBLIC_TOKEN: "ghp_SAFEPB2zzes9TEpAOSx2McNjJLQ1GXLBES2FsfWU" }) ] };