-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from w3c/file-gh-issues
Add github action to file github issues based on errors detected in r…
- Loading branch information
Showing
14 changed files
with
1,320 additions
and
621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Clean reports when issues/PR are closed | ||
|
||
on: | ||
schedule: | ||
- cron: '30 3 * * 3' | ||
workflow_dispatch: | ||
jobs: | ||
clean: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout validate-repos | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
- name: Drop reports locally when related issues/PR are closed | ||
run: node src/reporting/clean-reports.js | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create PR to drop reports from repo if needed | ||
uses: peter-evans/create-pull-request@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
title: Drop reports whose related issues have been closed | ||
commit-message: "Drop reports whose related issues have been closed" | ||
body: ${{ env.dropped_reports }} | ||
assignees: dontcallmedom | ||
branch: clean-reports | ||
branch-suffix: timestamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
name: Submit draft issue reports from Strudy analysis | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
- name: Checkout validate-repos | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Configure git | ||
run: | | ||
git config user.name "w3c-validate-bot" | ||
git config user.email "<>" | ||
git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||
- name: Run issue filer script | ||
run: node reporting/file-issue-for-review.js | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
name: Submit issue from validate-repos to relevant github repo | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
- name: Checkout validate-repos | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Configure git | ||
run: | | ||
git config user.name "w3c-validate-bot" | ||
git config user.email "<>" | ||
git remote set-url --push origin https://x-access-token:${{ secrets.ISSUE_REPORT_GH_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||
- name: Run issue submitter script | ||
run: node src/reporting/submit-issue.js | ||
env: | ||
GH_TOKEN: ${{ secrets.ISSUE_REPORT_GH_TOKEN }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.