-
Notifications
You must be signed in to change notification settings - Fork 5
83 lines (80 loc) · 2.42 KB
/
file-issue-for-review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
on:
workflow_dispatch:
inputs:
profile:
description: 'Type of issues to draft'
required: true
default: 'regular'
type: choice
options:
- regular
- challenging
name: Submit draft issue reports from Strudy analysis
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout strudy
uses: actions/checkout@v4
with:
path: strudy
- name: Install dependencies
run: npm ci
working-directory: strudy
- name: Checkout webref
uses: actions/checkout@v4
with:
repository: w3c/webref
path: webref
- name: Configure git
run: |
git config user.name "strudy-bot"
git config user.email "<>"
git remote set-url --push origin https://x-access-token:${{ secrets.ISSUE_REPORT_GH_TOKEN }}@github.com/$GITHUB_REPOSITORY
working-directory: strudy
- name: Analyze the raw crawl results (regular)
working-directory: strudy
if: ${{ inputs.profile == 'regular' }}
run: |
node strudy.js inspect ../webref \
--issues issues \
--update-mode untracked \
--cc ${{ vars.CC }} \
--what brokenLinks \
--what discontinuedReferences \
- name: Analyze the raw crawl results (challenging)
working-directory: strudy
if: ${{ inputs.profile == 'challenging' }}
run: |
node strudy.js inspect ../webref \
--issues issues \
--update-mode untracked \
--cc ${{ vars.CC }} \
--what missingTask
- name: Switch to the curated branch
uses: actions/checkout@v4
with:
repository: w3c/webref
path: webref
ref: curated
- name: Analyze the curated crawl results
working-directory: strudy
if: ${{ inputs.profile == 'regular' }}
run: |
node strudy.js inspect ../webref \
--issues issues \
--update-mode untracked \
--cc ${{ vars.CC }} \
--what incompatiblePartialIdlExposure \
--what unexpectedEventHandler \
--what wrongCaseEnumValue \
--what noEvent
- name: Run issue filer script
working-directory: strudy
run: node src/reporting/file-issue-for-review.js --max 10
env:
GITHUB_TOKEN: ${{ secrets.ISSUE_REPORT_GH_TOKEN }}