Skip to content

Add issues to project #8007

Add issues to project

Add issues to project #8007

name: Add issues to project
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
concurrency:
group: shared
env:
COMMON_FILTER: is:open is:public archived:false 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
EXCLUDE_LABELS: -label:"Content:WebExt"
EXCLUDE_REPOS: -repo:mdn/ai-feedback -repo:mdn/private-ai-feedback -repo:mdn/browser-compat-data -repo:mdn/curriculum -repo:mdn/translated-content -repo:mdn/webextensions-examples
jobs:
add-issues-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: Add "needs triage" label to unlabeled issues
run: npm run add-labels
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_LABEL: "needs triage"
ISSUE_QUERY: org:mdn is:issue no:label ${{ env.COMMON_FILTER }} ${{ env.EXCLUDE_REPOS }}
- name: Issue triage
run: |
npm run add-to-project
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_DELAY: 1
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 33
ISSUE_PROJECT_QUERY: org:mdn is:issue label:"needs triage" ${{ env.COMMON_FILTER }} ${{ env.EXCLUDE_LABELS }} ${{ env.EXCLUDE_REPOS }}
- name: AI Help feedback
run: |
npm run add-to-project
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 42
ISSUE_PROJECT_QUERY: repo:mdn/ai-feedback repo:mdn/private-ai-feedback is:issue
- name: Content issues
run: |
npm run add-to-project
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 37
ISSUE_PROJECT_QUERY: |
org:mdn is:issue label:"involves: Content" -label:"needs triage" ${{ env.COMMON_FILTER }} ${{ env.EXCLUDE_REPOS }}
is:issue label:"effort: small","effort: medium","effort: large" ${{ env.COMMON_FILTER }} ${{ env.EXCLUDE_LABELS }} ${{ env.CONTENT_REPO_FILTER }}
- name: Engineering issues
run: |
npm run add-to-project
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 36
ISSUE_PROJECT_QUERY: |
org:mdn is:issue label:"involves: Engineering" -label:"needs triage" ${{ env.COMMON_FILTER }} ${{ env.EXCLUDE_REPOS }}
is:issue -label:"needs triage" ${{ env.COMMON_FILTER }} ${{ env.EXCLUDE_LABELS }} ${{ env.ENGINEERING_REPO_FILTER }}
- name: Product issues
run: |
npm run add-to-project
npm run manage-project-items
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_PROJECT_OWNER: mdn
ISSUE_PROJECT_NUMBER: 38
ISSUE_PROJECT_QUERY: |
org:mdn is:issue label:"involves: Product","involves: UX" -label:"needs triage" ${{ env.COMMON_FILTER }} ${{ env.EXCLUDE_REPOS }}
- name: Ping
env:
ping_url: ${{ secrets.PING_URL_ISSUES }}
if: ${{ env.ping_url != '' }}
run: curl ${{ env.ping_url }}
- name: Print rate limit
run: gh api /rate_limit
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}