forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into enelson/http-cache
- Loading branch information
Showing
195 changed files
with
5,138 additions
and
627 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
.github/CODEOWNERS @iclanton @octogonz @patmill @apostolisms | ||
common/config/**/* @iclanton @octogonz @patmill @apostolisms | ||
.github/CODEOWNERS @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill | ||
common/autoinstallers/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill | ||
common/config/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill | ||
|
||
common/reviews/**/* @iclanton @octogonz @apostolisms | ||
common/reviews/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
|
||
apps/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
build-tests/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
core-build/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
libraries/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
stack/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
webpack/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
rush.json @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
.gitattributes @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
.gitignore @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
README.md @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L | ||
apps/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
build-tests/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
build-tests-samples/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
eslint/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
heft-plugins/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
libraries/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
repo-scripts/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
rigs/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
rush-plugins/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
stack/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
tutorials/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
webpack/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @TheLarkInn | ||
rush.json @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
.gitattributes @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
.gitignore @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
README.md @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft | ||
|
||
libraries/load-themed-styles/**/* @iclanton @octogonz @dzearing @apostolisms | ||
libraries/load-themed-styles/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @dzearing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
################################################################################ | ||
# When pull requests are merged to the main branch, evaluate the pull request | ||
# body and file a documentation ticket against the rushstack-websites repo | ||
# with a corresponding documentation task. | ||
# | ||
# The pull request body must contain non-comment, non-whitespace text below | ||
# the "Impacted documentation" header in the PR template to file a | ||
# documentation ticket. | ||
################################################################################ | ||
name: File Doc Tickets | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- closed | ||
|
||
jobs: | ||
file-tickets: | ||
name: File Tickets | ||
if: ${{ github.event.pull_request.merged }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Use nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Parse PR body | ||
run: | | ||
cat <<-"EOF" > event.json | ||
${{ toJson(github.event) }} | ||
EOF | ||
cat <<-"EOF" | node | ||
const fs = require('fs'); | ||
const EVENT_FILE = 'event.json'; | ||
const RESULT_FILE = 'issue.md'; | ||
const DELIMITER = '## Impacted documentation'; | ||
const event = JSON.parse(fs.readFileSync(EVENT_FILE, 'utf8')); | ||
const strippedBody = (event.pull_request.body || '').replace(/<!-+(.|\r|\n)+?-+>/g, ''); | ||
const delimIndex = strippedBody.indexOf(DELIMITER); | ||
if (delimIndex < 0) { | ||
console.log('No documentation tasks detected -- skipping doc ticket.'); | ||
process.exit(0); | ||
} | ||
const delimBody = strippedBody.substring(delimIndex + DELIMITER.length).trim(); | ||
if (delimBody.length === 0) { | ||
console.log('No documentation tasks detected -- skipping doc ticket.'); | ||
process.exit(0); | ||
} | ||
const quotedBody = delimBody.split('\n').map(line => `> ${line}`).join('\n'); | ||
fs.writeFileSync(RESULT_FILE, [ | ||
'### Summary', | ||
'', | ||
'Follow up on documentation tasks from ' + event.pull_request.html_url + '.', | ||
'', | ||
'### Details', | ||
'', | ||
'This ticket was generated automatically. Suggested documentation updates:', | ||
'', | ||
quotedBody, | ||
'' | ||
].join('\n'), 'utf8'); | ||
EOF | ||
if [ -f issue.md ]; then | ||
echo "FILE_TICKET=1" >> $GITHUB_ENV | ||
fi | ||
- name: File ticket | ||
if: ${{ env.FILE_TICKET == '1' }} | ||
uses: peter-evans/create-issue-from-file@af31b99c72f9e91877aea8a2d96fd613beafac84 # @v4 (locked) | ||
with: | ||
repository: microsoft/rushstack-websites | ||
token: '${{ secrets.RUSHSTACK_WEBSITES_TOKEN }}' | ||
title: '[doc] ${{ github.event.pull_request.title }}' | ||
content-filepath: ./issue.md | ||
labels: | | ||
automated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.