Bump elliptic from 6.5.4 to 6.6.0 #32
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
name: OS Ready for review | |
# **What it does**: Adds pull requests and issues in the docs repository to the docs-content review board when the "waiting for review" label is added | |
# **Why we have it**: So that contributors in the OS repo can easily get reviews from the docs-content team, and so that writers can see when a PR is ready for review | |
# **Who does it impact**: Writers working in the docs repository | |
on: | |
pull_request_target: | |
types: [labeled] | |
issues: | |
types: [labeled] | |
permissions: | |
contents: read | |
jobs: | |
request_doc_review: | |
name: Request a review from the docs-content team | |
if: github.event.label.name == 'waiting for review' && github.repository == 'github/docs' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if this run was triggered by a member of the docs team | |
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d | |
id: triggered-by-member | |
with: | |
github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}} | |
result-encoding: string | |
script: | | |
const triggerer_login = context.payload.sender.login | |
const teamMembers = await github.request( | |
`/orgs/github/teams/docs/members?per_page=100` | |
) | |
const logins = teamMembers.data.map(member => member.login) | |
if (logins.includes(triggerer_login)) { | |
console.log(`This workflow was triggered by ${triggerer_login} (on the docs team).`) | |
return 'true' | |
} | |
console.log(`This workflow was triggered by ${triggerer_login} (not on the docs team), so no action will be taken.`) | |
return 'false' | |
- name: Exit if not triggered by a docs team member | |
if: steps.triggered-by-member.outputs.result == 'false' | |
run: | | |
echo Aborting. This workflow must be triggered by a member of the docs team. | |
exit 1 | |
- name: Check out repo content | |
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 | |
- name: Setup Node | |
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 | |
with: | |
node-version: 16.14.x | |
cache: npm | |
- name: Install dependencies | |
run: npm install @octokit/graphql | |
- name: Run script | |
run: | | |
node .github/actions-scripts/ready-for-docs-review.js | |
env: | |
TOKEN: ${{ secrets.DOCS_BOT_FR }} | |
PROJECT_NUMBER: 2936 | |
ORGANIZATION: 'github' | |
ITEM_NODE_ID: ${{ github.event.pull_request.node_id || github.event.issue.node_id }} | |
AUTHOR_LOGIN: ${{ github.event.pull_request.user.login || github.event.issue.user.login }} | |
REPO: ${{ github.repository }} |