From 75fd006de67f252eb89c0c5306cc0a1ba2287988 Mon Sep 17 00:00:00 2001 From: Kevin Heis Date: Thu, 3 Dec 2020 07:56:23 -0800 Subject: [PATCH 1/2] Close unwanted pull requests (#16679) * Close unwanted pull requests * Update close-unwanted-pull-requests.yml * List out files excluded --- .../close-unwanted-pull-requests.yml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/close-unwanted-pull-requests.yml diff --git a/.github/workflows/close-unwanted-pull-requests.yml b/.github/workflows/close-unwanted-pull-requests.yml new file mode 100644 index 000000000000..e71c0e1221bf --- /dev/null +++ b/.github/workflows/close-unwanted-pull-requests.yml @@ -0,0 +1,39 @@ +name: Close unwanted pull requests +on: + pull_request: + paths: + - '.github/workflows/**' + - '.github/CODEOWNERS' + - 'translations/**' + - 'assets/fonts/**' + - 'data/graphql/**' + - 'lib/graphql/**' + - 'lib/redirects/**' + - 'lib/webhooks/**' +jobs: + close_unwanted_pull_requests: + if: github.repository == 'github/docs' + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + with: + script: | + await github.issues.createComment({ + ...context.repo, + issue_number: context.payload.pull_request.number, + body: + `Thanks for contributing! We do not accept community changes to these files at this time. + - '.github/workflows/**' + - '.github/CODEOWNERS' + - 'translations/**' + - 'assets/fonts/**' + - 'data/graphql/**' + - 'lib/graphql/**' + - 'lib/redirects/**' + - 'lib/webhooks/**'` + }) + await github.issues.update({ + ...context.repo, + issue_number: context.payload.pull_request.number, + state: 'closed' + }) From 11d8e415daa41950ff79a7be4d35c43ec7c69e7f Mon Sep 17 00:00:00 2001 From: Kevin Heis Date: Thu, 3 Dec 2020 08:41:03 -0800 Subject: [PATCH 2/2] Check repository references (#16680) * Check repository references * Remove "foundRepoNames" that I used to find all the unique names * A little speed up with Set * Ignore a few files * Remove remaining references * Update README.md --- .../ISSUE_TEMPLATE/improve-existing-docs.md | 4 +- .github/ISSUE_TEMPLATE/improve-the-site.md | 4 +- .../workflows/sync-algolia-search-indices.yml | 2 +- .github/workflows/test.yml | 2 +- assets/images/octicons/README.md | 16 ----- .../https-cloning-errors.md | 12 ++-- .../configuring-code-scanning.md | 30 +++++----- .../sarif-support-for-code-scanning.md | 16 ++--- .../searching-topics.md | 2 +- data/graphql/README.md | 12 ++-- .../download-latest-release.md | 2 +- data/variables/command_line.yml | 2 +- javascripts/explorer.js | 1 - lib/authenticate-to-aws.js | 2 +- lib/enterprise-server-releases.js | 2 +- lib/frontmatter.js | 2 +- lib/page.js | 2 +- .../archived-enterprise-versions-assets.js | 2 +- middleware/archived-enterprise-versions.js | 3 +- ownership.yaml | 2 +- script/README.md | 16 ++--- script/check-s3-images.js | 2 +- .../archive-version.js | 1 - script/graphql/README.md | 2 +- script/graphql/build-changelog.js | 6 +- .../utils/remove-hidden-schema-members.rb | 2 +- script/purge-fastly | 2 +- script/purge-fastly-by-url.js | 2 +- script/standardize-frontmatter-order.js | 10 +++- script/update-enterprise-dates.js | 7 +-- script/update-s3cmd-config.js | 1 - tests/meta/repository-references.js | 59 +++++++++++++++++++ tests/rendering/server.js | 4 +- 33 files changed, 140 insertions(+), 94 deletions(-) create mode 100644 tests/meta/repository-references.js diff --git a/.github/ISSUE_TEMPLATE/improve-existing-docs.md b/.github/ISSUE_TEMPLATE/improve-existing-docs.md index 6b15af3a212d..26d822b9a4be 100644 --- a/.github/ISSUE_TEMPLATE/improve-existing-docs.md +++ b/.github/ISSUE_TEMPLATE/improve-existing-docs.md @@ -7,13 +7,13 @@ labels: assignees: '' ---