Skip to content

Add PRs to project #22100

Add PRs to project

Add PRs to project #22100

name: Add PRs to project
on:
schedule:
- cron: "20 * * * *"
workflow_dispatch:
permissions: {}
concurrency:
group: shared
env:
COMMON_FILTER: 'is:open archived:false -label:"autorelease: pending" sort:created-asc'
CONTENT_REPO_FILTER: (repo:mdn/content OR repo:mdn/django-diy-blog OR repo:mdn/django-locallibrary-tutorial OR repo:mdn/express-locallibrary-tutorial OR repo:mdn/todo-react OR repo:mdn/todo-vue OR repo:mdn/css-examples OR repo:mdn/dom-examples OR repo:mdn/houdini-examples OR repo:mdn/html-examples OR repo:mdn/imsc-examples OR repo:mdn/js-examples OR repo:mdn/learning-area OR repo:mdn/perf-examples OR repo:mdn/pwa-examples OR repo:mdn/web-components-examples OR repo:mdn/webassembly-examples OR repo:mdn/webaudio-examples OR repo:mdn/webvr-tests OR repo:mdn/beginner-html-site OR repo:mdn/beginner-html-site-scripted OR repo:mdn/beginner-html-site-styled OR repo:mdn/shared-assets)
ENGINEERING_REPO_FILTER: (repo:mdn/bob OR repo:mdn/bcd-utils OR repo:mdn/dex OR repo:mdn/differy OR repo:mdn/fred OR repo:mdn/mcp OR repo:mdn/mdn-http-observatory OR repo:mdn/mdn.dev OR repo:mdn/rari OR repo:mdn/rumba OR repo:mdn/yari OR repo:mdn/workflows)
jobs:
add-prs-to-project:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: ".nvmrc"
package-manager-cache: false
- run: npm ci
- name: BCD PRs
id: bcd
continue-on-error: true
timeout-minutes: 5
run: |
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 46
- name: Content PRs
id: content
continue-on-error: true
timeout-minutes: 5
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/content-team ${{ 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
id: engineering
continue-on-error: true
timeout-minutes: 5
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/engineering ${{ env.COMMON_FILTER }}
org:mdn is:pr user-review-requested:caugner ${{ 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 != '' && !contains(steps.*.outcome, 'failure') && !contains(steps.*.outcome, 'cancelled')
run: curl ${{ env.ping_url }}
- name: Print rate limit
run: gh api /rate_limit
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}