Remove \#!/usr/bin/env node from scripts (#55304)
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This calls a function directly that is used by our archived enterprise
|
// This calls a function directly that is used by our archived enterprise
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This script gathers all English pages, computes each page's
|
* This script gathers all English pages, computes each page's
|
||||||
* 'title', 'intro' and 'product' properties. These things are then stored
|
* 'title', 'intro' and 'product' properties. These things are then stored
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// For testing the GitHub Action that executes
|
// For testing the GitHub Action that executes
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import * as github from '@actions/github'
|
import * as github from '@actions/github'
|
||||||
import core from '@actions/core'
|
import core from '@actions/core'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Print a list of all the asset files that can't be found mentioned
|
// Print a list of all the asset files that can't be found mentioned
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script lists all local image files, sorted by their dimensions.
|
// This script lists all local image files, sorted by their dimensions.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Makes sure that all the image assets in `assets/` are safe.
|
// Makes sure that all the image assets in `assets/` are safe.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Required env variables:
|
* Required env variables:
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This script generates a block of Markdown that can be saved as a reusable.
|
* This script generates a block of Markdown that can be saved as a reusable.
|
||||||
* The reusable lists all the queries for one programming language, with CWEs, as a Markdown table.
|
* The reusable lists all the queries for one programming language, with CWEs, as a Markdown table.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import { readFile, writeFile, copyFile } from 'fs/promises'
|
import { readFile, writeFile, copyFile } from 'fs/promises'
|
||||||
import { existsSync } from 'fs'
|
import { existsSync } from 'fs'
|
||||||
import walk from 'walk-sync'
|
import walk from 'walk-sync'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import yaml from 'js-yaml'
|
import yaml from 'js-yaml'
|
||||||
import fs from 'fs/promises'
|
import fs from 'fs/promises'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
// Disables markdownlint rules in markdown files with same-line comments. This is
|
// Disables markdownlint rules in markdown files with same-line comments. This is
|
||||||
// useful when introducing a new rule that causes many failures. The comments
|
// useful when introducing a new rule that causes many failures. The comments
|
||||||
// can be fixed and removed at while updating the file later.
|
// can be fixed and removed at while updating the file later.
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { writeFileSync } from 'fs'
|
import { writeFileSync } from 'fs'
|
||||||
import type { Rule, Config } from '../types.ts'
|
import type { Rule, Config } from '../types.ts'
|
||||||
import { allRules, allConfig } from '../lib/helpers/get-rules.js'
|
import { allRules, allConfig } from '../lib/helpers/get-rules.js'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { execSync } from 'child_process'
|
import { execSync } from 'child_process'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import { program } from 'commander'
|
import { program } from 'commander'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import coreLib from '@actions/core'
|
import coreLib from '@actions/core'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Use this script to help you move or rename a single file or a folder. The script will move or rename the file or folder for you, update relevant `children` in the index.md file(s), and add a `redirect_from` to frontmatter in the renamed file(s). Note: You will still need to manually update the `title` if necessary.
|
// Use this script to help you move or rename a single file or a folder. The script will move or rename the file or folder for you, update relevant `children` in the index.md file(s), and add a `redirect_from` to frontmatter in the renamed file(s). Note: You will still need to manually update the `title` if necessary.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script will say which category pages needs to be renamed
|
// This script will say which category pages needs to be renamed
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// An automated test checks for discrepancies between filenames and [autogenerated heading IDs](https://www.npmjs.com/package/remark-autolink-headings).
|
// An automated test checks for discrepancies between filenames and [autogenerated heading IDs](https://www.npmjs.com/package/remark-autolink-headings).
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { execSync } from 'child_process'
|
import { execSync } from 'child_process'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { execSync } from 'child_process'
|
import { execSync } from 'child_process'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Move the files from an early-access product level docs set into an existing product.
|
// Move the files from an early-access product level docs set into an existing product.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script is run on a writer's machine while developing Early Access content locally.
|
// This script is run on a writer's machine while developing Early Access content locally.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script is run on a writer's machine while developing Early Access content locally. It
|
// This script is run on a writer's machine while developing Early Access content locally. It
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import { getOctokit } from '@actions/github'
|
import { getOctokit } from '@actions/github'
|
||||||
import { setOutput } from '@actions/core'
|
import { setOutput } from '@actions/core'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import { readFileSync } from 'fs'
|
import { readFileSync } from 'fs'
|
||||||
import { basename } from 'path'
|
import { basename } from 'path'
|
||||||
import { Liquid } from 'liquidjs'
|
import { Liquid } from 'liquidjs'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Run this script during the Enterprise deprecation process to download
|
// Run this script during the Enterprise deprecation process to download
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// See https://github.com/harttle/liquidjs/discussions/294#discussioncomment-305068
|
// See https://github.com/harttle/liquidjs/discussions/294#discussioncomment-305068
|
||||||
import { Tokenizer } from 'liquidjs'
|
import { Tokenizer } from 'liquidjs'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script creates or removes a release candidate banner for a specified version.
|
// This script creates or removes a release candidate banner for a specified version.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script removes the static GraphQL, REST, and webhook files for any
|
// This script removes the static GraphQL, REST, and webhook files for any
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Run this script after an Enterprise deprecation to remove Liquid statements and frontmatter that
|
// Run this script after an Enterprise deprecation to remove Liquid statements and frontmatter that
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script fetches data from https://github.com/github/enterprise-releases/blob/master/releases.json
|
// This script fetches data from https://github.com/github/enterprise-releases/blob/master/releases.json
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
// This schema is used to validate
|
// This schema is used to validate
|
||||||
// src/github-apps/data/server-to-server-rest.json
|
// src/github-apps/data/server-to-server-rest.json
|
||||||
// src/github-apps/data/user-to-server-rest.json
|
// src/github-apps/data/user-to-server-rest.json
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
// This schema is used to validate
|
// This schema is used to validate
|
||||||
// src/github-apps/data/fine-grained-pat-permissions.json
|
// src/github-apps/data/fine-grained-pat-permissions.json
|
||||||
// and src/github-apps/data/server-to-server-permissions.json
|
// and src/github-apps/data/server-to-server-permissions.json
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import { existsSync } from 'fs'
|
import { existsSync } from 'fs'
|
||||||
import { mkdirp } from 'mkdirp'
|
import { mkdirp } from 'mkdirp'
|
||||||
import { readFile, writeFile } from 'fs/promises'
|
import { readFile, writeFile } from 'fs/promises'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { diff, ChangeType } from '@graphql-inspector/core'
|
import { diff, ChangeType } from '@graphql-inspector/core'
|
||||||
import { loadSchema } from '@graphql-tools/load'
|
import { loadSchema } from '@graphql-tools/load'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import fs from 'fs/promises'
|
import fs from 'fs/promises'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { mkdirp } from 'mkdirp'
|
import { mkdirp } from 'mkdirp'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { sentenceCase } from 'change-case'
|
import { sentenceCase } from 'change-case'
|
||||||
import GithubSlugger from 'github-slugger'
|
import GithubSlugger from 'github-slugger'
|
||||||
const slugger = new GithubSlugger()
|
const slugger = new GithubSlugger()
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { sortBy } from 'lodash-es'
|
import { sortBy } from 'lodash-es'
|
||||||
import { parse, buildASTSchema } from 'graphql'
|
import { parse, buildASTSchema } from 'graphql'
|
||||||
import helpers from './schema-helpers.js'
|
import helpers from './schema-helpers.js'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import yaml from 'js-yaml'
|
import yaml from 'js-yaml'
|
||||||
import { groupBy } from 'lodash-es'
|
import { groupBy } from 'lodash-es'
|
||||||
import { renderContent } from '#src/content-render/index.js'
|
import { renderContent } from '#src/content-render/index.js'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { renderContent } from '#src/content-render/index.js'
|
import { renderContent } from '#src/content-render/index.js'
|
||||||
import fs from 'fs/promises'
|
import fs from 'fs/promises'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import { languageKeys } from '#src/languages/lib/languages.js'
|
import { languageKeys } from '#src/languages/lib/languages.js'
|
||||||
|
|
||||||
import { makeLanguageSurrogateKey } from '#src/frame/middleware/set-fastly-surrogate-key.js'
|
import { makeLanguageSurrogateKey } from '#src/frame/middleware/set-fastly-surrogate-key.js'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Run this script to get all broken docs.github.com links in github/github
|
// Run this script to get all broken docs.github.com links in github/github
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script goes through all content and renders their HTML and from there
|
// This script goes through all content and renders their HTML and from there
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Run this script to update content's internal links.
|
// Run this script to update content's internal links.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Pass this script any old dotcom path (e.g., `articles/foo` or `foo.md`) and it
|
// Pass this script any old dotcom path (e.g., `articles/foo` or `foo.md`) and it
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
// add a new redirect string to redirect_from frontmatter
|
// add a new redirect string to redirect_from frontmatter
|
||||||
|
|
||||||
export default function addRedirectToFrontmatter(redirectFromData, newRedirectString) {
|
export default function addRedirectToFrontmatter(redirectFromData, newRedirectString) {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
import { readFile } from 'fs/promises'
|
import { readFile } from 'fs/promises'
|
||||||
import { allVersions } from '#src/versions/lib/all-versions.js'
|
import { allVersions } from '#src/versions/lib/all-versions.js'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Run this script to check if OpenAPI files can be decorated successfully.
|
// Run this script to check if OpenAPI files can be decorated successfully.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Run this script to check if OpenAPI operations match versions in content/rest operations
|
// Run this script to check if OpenAPI operations match versions in content/rest operations
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Run this script to generate the updated data files for the rest,
|
// Run this script to generate the updated data files for the rest,
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// In the case that there are more than one example requests, and
|
// In the case that there are more than one example requests, and
|
||||||
// no content responses, a request with an example key that matches the
|
// no content responses, a request with an example key that matches the
|
||||||
// status code of a response will be matched.
|
// status code of a response will be matched.
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { renderContent } from '@/content-render/index'
|
import { renderContent } from '@/content-render/index'
|
||||||
|
|
||||||
interface Schema {
|
interface Schema {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { readFile, writeFile } from 'fs/promises'
|
import { readFile, writeFile } from 'fs/promises'
|
||||||
const STATIC_REDIRECTS = 'src/rest/data/client-side-rest-api-redirects.json'
|
const STATIC_REDIRECTS = 'src/rest/data/client-side-rest-api-redirects.json'
|
||||||
const REST_API_OVERRIDES = 'src/rest/lib/rest-api-overrides.json'
|
const REST_API_OVERRIDES = 'src/rest/lib/rest-api-overrides.json'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
// This schema is used to validate each generated operation object at build time
|
// This schema is used to validate each generated operation object at build time
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import httpStatusCodes from 'http-status-code'
|
import httpStatusCodes from 'http-status-code'
|
||||||
import { get, isPlainObject } from 'lodash-es'
|
import { get, isPlainObject } from 'lodash-es'
|
||||||
import { parseTemplate } from 'url-template'
|
import { parseTemplate } from 'url-template'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Required env variables:
|
* Required env variables:
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// There are certain files that have to be manually copied from the
|
// There are certain files that have to be manually copied from the
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import walk from 'walk-sync'
|
import walk from 'walk-sync'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import walk from 'walk-sync'
|
import walk from 'walk-sync'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
// This schema is used to validate each generated webhook object at build time
|
// This schema is used to validate each generated webhook object at build time
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { get, isPlainObject } from 'lodash-es'
|
import { get, isPlainObject } from 'lodash-es'
|
||||||
import { getJsonValidator } from '@/tests/lib/validate-json-schema'
|
import { getJsonValidator } from '@/tests/lib/validate-json-schema'
|
||||||
import { renderContent } from '@/content-render/index'
|
import { renderContent } from '@/content-render/index'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import coreLib from '@actions/core'
|
import coreLib from '@actions/core'
|
||||||
|
|
||||||
import { checkContentType } from '@/workflows/fm-utils'
|
import { checkContentType } from '@/workflows/fm-utils'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// Given N files. Exit 0 if they all exist and are identical in content.
|
// Given N files. Exit 0 if they all exist and are identical in content.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// For testing the GitHub Action that executes
|
// For testing the GitHub Action that executes
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This script will delete files from a translation repo of files that
|
* This script will delete files from a translation repo of files that
|
||||||
* only exist there and not "here". Here being the docs repo.
|
* only exist there and not "here". Here being the docs repo.
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import got from 'got'
|
import got from 'got'
|
||||||
|
|
||||||
import { setOutput } from '@actions/core'
|
import { setOutput } from '@actions/core'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import crypto from 'crypto'
|
import crypto from 'crypto'
|
||||||
import fs from 'fs/promises'
|
import fs from 'fs/promises'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import dotenv from 'dotenv'
|
import dotenv from 'dotenv'
|
||||||
import { Octokit } from '@octokit/rest'
|
import { Octokit } from '@octokit/rest'
|
||||||
import { retry } from '@octokit/plugin-retry'
|
import { retry } from '@octokit/plugin-retry'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// This script adds labels to issues or pull requests.
|
// This script adds labels to issues or pull requests.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
|
|
||||||
// This script is intended to be used as a git "prepush" hook.
|
// This script is intended to be used as a git "prepush" hook.
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
import { SURROGATE_ENUMS } from '@/frame/middleware/set-fastly-surrogate-key'
|
import { SURROGATE_ENUMS } from '@/frame/middleware/set-fastly-surrogate-key'
|
||||||
import purgeEdgeCache from './purge-edge-cache'
|
import purgeEdgeCache from './purge-edge-cache'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* The only mandatory environment variables for this scrips are:
|
* The only mandatory environment variables for this scrips are:
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import assert from 'node:assert/strict'
|
import assert from 'node:assert/strict'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import coreLib from '@actions/core'
|
import coreLib from '@actions/core'
|
||||||
import { readFileSync } from 'fs'
|
import { readFileSync } from 'fs'
|
||||||
import yaml from 'js-yaml'
|
import yaml from 'js-yaml'
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
// [start-readme]
|
// [start-readme]
|
||||||
//
|
//
|
||||||
// A helper that returns an array of files for a given path and file extension.
|
// A helper that returns an array of files for a given path and file extension.
|
||||||
|
|||||||
Reference in New Issue
Block a user