Skip to content

Commit

Permalink
build(update-endpoints): ignore all changes before 2020-02-01
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 31, 2020
1 parent d66ddfb commit 7e2e951
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/update-endpoints/fetch-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if (!process.env.VERSION) {
}

const QUERY = `
query ($version: String) {
endpoints(version: $version, filter: { isGithubCloudOnly: false }) {
query ($version: String!, $ignoreChangesBefore: String!) {
endpoints(version: $version, ignoreChangesBefore: $ignoreChangesBefore, filter: { isGithubCloudOnly: false }) {
name
scope(format: CAMELCASE)
id(format: CAMELCASE)
Expand Down Expand Up @@ -68,7 +68,8 @@ main();
async function main() {
const { endpoints } = await graphql(QUERY, {
url: "https://octokit-routes-graphql-server.now.sh/",
version: process.env.VERSION
version: process.env.VERSION,
ignoreChangesBefore: "2020-02-01"
});

writeFileSync(
Expand Down

0 comments on commit 7e2e951

Please sign in to comment.