File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " typescript-error-deltas Watchdog"
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : ' 0 0 * * 3' # Every Wednesday
7
+
8
+ jobs :
9
+ check-for-recent :
10
+ runs-on : ubuntu-latest
11
+ if : github.repository == 'microsoft/TypeScript'
12
+ permissions :
13
+ contents : read # Apparently required to create issues
14
+ issues : write
15
+ env :
16
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17
+ TAGS : " @RyanCavanaugh @DanielRosenwasser @amcasey"
18
+ steps :
19
+ - name : NewErrors
20
+ run : | # --json and --jq prints exactly one issue number per line of output
21
+ DATE=$(date --date="7 days ago" --iso-8601)
22
+ gh issue list --repo microsoft/typescript --search "[NewErrors] created:>=$DATE" --state all --json number --jq ".[].number" \
23
+ | grep -qe "[0-9]" \
24
+ || gh issue create --repo ${{ github.repository }} --title "No NewErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=48)."
25
+ - name : ServerErrors TS
26
+ run : |
27
+ DATE=$(date --date="7 days ago" --iso-8601)
28
+ gh issue list --repo microsoft/typescript --search "[ServerErrors][TypeScript] created:>=$DATE" --state all --json number --jq ".[].number" \
29
+ | grep -qe "[0-9]" \
30
+ || gh issue create --repo ${{ github.repository }} --title "No TypeScript ServerErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=59)."
31
+ - name : ServerErrors JS
32
+ run : |
33
+ DATE=$(date --date="7 days ago" --iso-8601)
34
+ gh issue list --repo microsoft/typescript --search "[ServerErrors][JavaScript] created:>=$DATE" --state all --json number --jq ".[].number" \
35
+ | grep -qe "[0-9]" \
36
+ || gh issue create --repo ${{ github.repository }} --title "No JavaScript ServerErrors issue since $DATE" --body "$TAGS Please check the [pipeline](https://typescript.visualstudio.com/TypeScript/_build?definitionId=58)."
You can’t perform that action at this time.
0 commit comments