Skip to content

Add PRs to project #9586

Add PRs to project

Add PRs to project #9586

name: Add PRs to project
on:
schedule:
- cron: "20 * * * *"
workflow_dispatch:
concurrency:
group: shared
env:
COMMON_FILTER: 'is:public is:open archived:false -label:"autorelease: pending" sort:created-asc'
CONTENT_REPO_FILTER: repo:mdn/content repo:mdn/django-diy-blog repo:mdn/django-locallibrary-tutorial repo:mdn/express-locallibrary-tutorial repo:mdn/todo-react repo:mdn/todo-vue repo:mdn/css-examples repo:mdn/dom-examples repo:mdn/houdini-examples repo:mdn/html-examples repo:mdn/imsc-examples repo:mdn/interactive-examples repo:mdn/js-examples repo:mdn/learning-area repo:mdn/perf-examples repo:mdn/pwa-examples repo:mdn/web-components-examples repo:mdn/webassembly-examples repo:mdn/webaudio-examples repo:mdn/webvr-tests repo:mdn/beginner-html-site repo:mdn/beginner-html-site-scripted repo:mdn/beginner-html-site-styled repo:mdn/shared-assets
ENGINEERING_REPO_FILTER: repo:mdn/bob repo:mdn/bcd-utils repo:mdn/differy repo:mdn/mdn-http-observatory repo:mdn/mdn.dev repo:mdn/rumba repo:mdn/yari repo:mdn/workflows
jobs:
add-prs-to-project:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: npm ci
- name: BCD PRs
run: |
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 46
- name: Content PRs
run: |
npm run add-to-project
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 39
ISSUE_PROJECT_QUERY: |
org:mdn is:pr team-review-requested:mdn/core-yari-content ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:bsmth ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:dipikabh ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:pepelsbey ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:pransh15 ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:Rumyra ${{ env.COMMON_FILTER }}
is:pr review:none -author:app/dependabot ${{ env.COMMON_FILTER }} ${{ env.CONTENT_REPO_FILTER }}
- name: Engineering PRs
run: |
npm run add-to-project
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 40
ISSUE_PROJECT_QUERY: |
org:mdn is:pr team-review-requested:mdn/core-dev ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:argl ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:caugner ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:fiji-flo ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:LeoMcA ${{ env.COMMON_FILTER }}
is:pr review:none -author:app/dependabot ${{ env.COMMON_FILTER }} ${{ env.ENGINEERING_REPO_FILTER }}
- name: Ping
env:
ping_url: ${{ secrets.PING_URL_PRS }}
if: ${{ env.ping_url != '' }}
run: curl ${{ env.ping_url }}
- name: Print rate limit
run: gh api /rate_limit
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}