зеркало из https://github.com/mozilla/Spoke.git
Merge pull request #1196 from mozilla/bug/whats-new
Fix the What's New page
This commit is contained in:
Коммит
8aa84fce7d
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
})
|
||||
]
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче