This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge master into YK-card-fiber-eq (using imerge)
- Loading branch information
Showing
3,272 changed files
with
136,273 additions
and
55,988 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: install Python | ||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
|
@@ -29,7 +29,7 @@ jobs: | |
script: | | ||
proc = await exec.getExecOutput("python", ["./scripts/add_port_comments.py"]); | ||
console.log(proc.stdout); | ||
core.setOutput("PR_LIST", proc.stdout); | ||
core.setOutput("FILE_LIST", proc.stdout); | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
|
@@ -40,12 +40,11 @@ jobs: | |
author: leanprover-community-bot <[email protected]> | ||
body: | | ||
Regenerated from the [port status wiki page](https://github.com/leanprover-community/mathlib/wiki/mathlib4-port-status). | ||
Relates to the following PRs: | ||
${{ steps.generate-message.outputs.PR_LIST }} | ||
Relates to the following files: | ||
${{ steps.generate-message.outputs.FILE_LIST }} | ||
--- | ||
I am a bot; please check that I have not put a comment in a bad place before running `bors merge`! | ||
If the PRs above don't match the file they are listed after, that means the port status page is wrong. | ||
labels: | | ||
easy | ||
awaiting-review | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: install Python | ||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
|
@@ -22,8 +22,33 @@ jobs: | |
# TODO: is this really faster than just calling git from python? | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v34 | ||
uses: Ana06/get-changed-files@v2.2.0 | ||
|
||
- name: run the script | ||
id: script | ||
run: | | ||
python scripts/detect_ported_files.py ${{ steps.changed-files.outputs.all_changed_files }} | ||
python scripts/detect_ported_files.py ${{ steps.changed-files.outputs.all }} | ||
- id: PR | ||
uses: 8BitJonny/[email protected] | ||
# TODO: this may not work properly if the same commit is pushed to multiple branches: | ||
# https://github.com/8BitJonny/gh-get-current-pr/issues/8 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
# Only return if PR is still open | ||
filterOutClosed: true | ||
|
||
- if: steps.script.outputs.modifies_ported == 'True' | ||
id: add_label | ||
name: add "modifies-synchronized-file" | ||
# we use curl rather than octokit/request-action so that the job won't fail | ||
# (and send an annoying email) if the labels don't exist | ||
run: | | ||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/${{ github.repository }}/issues/${{ steps.PR.outputs.number }}/labels \ | ||
-d '{"labels":["modifies-synchronized-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
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.