Skip to content

Commit ba3e824

Browse files
committed
Merge branch 'gh-pages' of github.com:emeryberger/CSrankings into gh-pages
* 'gh-pages' of github.com:emeryberger/CSrankings: (800 commits) Update University of Texas at Dallas (#8042) Update csrankings-m.csv (#8039) Update Stony Brook University (#8033) Update Univ. of California - Riverside (#8032) Updates. Updated DBLP. Update csrankings-l.csv (#8037) Added Technion CS faculty (removed faculty from other departments) (#8035) Update University of Southern California (#8029) Add new Universidade de Lisboa faculty member (#7549) Updated Emory CS (#7776) Updates. Update University of Chicago (#7983) Update Brown University (#7982) Update Duke University (#8004) Add 4 new TTU CS Faulty in Fall 2024 (#7867) Multiple updates to Oregon State University (#7751) Update Zhejiang University Members (#7925) Update faculty at RIT (#7916) Added new CS faculty at Shandong University (#7801) ... # Conflicts: # csrankings-x.csv
2 parents 12a1ae6 + 01ef20e commit ba3e824

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+56729
-16048
lines changed

.github/workflows/commit_validation.yml

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Commit Validation
22

33
on:
4-
push:
5-
64
pull_request:
75

6+
permissions: read-all
7+
88
jobs:
99
commit_validation:
1010
runs-on: ubuntu-latest
@@ -35,5 +35,20 @@ jobs:
3535
env:
3636
DIFF: ${{ steps.git-diff-action.outputs.json-diff-path }}
3737
run: |
38+
pip install -r requirements.txt
3839
python validate_commit.py $DIFF
39-
40+
41+
upload:
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- name: Save PR number
46+
env:
47+
PR_NUMBER: ${{ github.event.number }}
48+
run: |
49+
mkdir -p ./pr
50+
echo $PR_NUMBER > ./pr/pr_number.txt
51+
- uses: actions/upload-artifact@v4
52+
with:
53+
name: pr_number.txt
54+
path: pr/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Handle Validation Result
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Commit Validation"]
6+
types: [completed]
7+
8+
permissions:
9+
actions: read
10+
contents: read
11+
issues: write
12+
pull-requests: write
13+
# needed because gh cli fetches unnecessary extra data
14+
repository-projects: read
15+
16+
jobs:
17+
handle-validation-result:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: 'Download PR number artifact'
21+
uses: actions/github-script@v6
22+
with:
23+
script: |
24+
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
run_id: context.payload.workflow_run.id,
28+
});
29+
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
30+
return artifact.name == "pr_number.txt"
31+
})[0];
32+
let download = await github.rest.actions.downloadArtifact({
33+
owner: context.repo.owner,
34+
repo: context.repo.repo,
35+
artifact_id: matchArtifact.id,
36+
archive_format: 'zip',
37+
});
38+
let fs = require('fs');
39+
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/pr_number.zip`, Buffer.from(download.data));
40+
41+
- name: 'Unzip artifact'
42+
run: unzip pr_number.zip
43+
44+
- name: Mark unstale if success
45+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
46+
run: |
47+
export PR_NUMBER=$(cat pr_number.txt)
48+
echo "In repo $GH_REPO on PR $PR_NUMBER"
49+
50+
if gh pr view -R"$GH_REPO" "$PR_NUMBER" --json labels | grep stale ; then
51+
echo "No longer stale"
52+
gh pr edit -R"$GH_REPO" "$PR_NUMBER" --remove-label stale
53+
gh pr comment -R"$GH_REPO" "$PR_NUMBER" --body 'The validity checks are now passing. Thank you.'
54+
else
55+
echo "Was already not stale"
56+
fi
57+
env:
58+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GH_REPO: ${{ github.event.repository.full_name }}
60+
61+
- name: Make comment and mark stale if failed
62+
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
63+
run: |
64+
export PR_NUMBER=$(cat pr_number.txt)
65+
echo "In repo $GH_REPO on PR $PR_NUMBER"
66+
67+
echo "Mark as stale"
68+
gh pr edit -R"$GH_REPO" "$PR_NUMBER" --add-label stale
69+
gh pr comment -R"$GH_REPO" "$PR_NUMBER" --body 'The validity checks failed. Please look at the logs (click the red X) and correct the errors. Your PR will be closed automatically in 2 days if not fixed.'
70+
env:
71+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
GH_REPO: ${{ github.event.repository.full_name }}

.github/workflows/stale.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Close stale PRs'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
schedule:
7+
- cron: '30 1 * * *'
8+
9+
permissions:
10+
contents: read
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
stale:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/stale@v9
19+
with:
20+
stale-pr-label: 'stale'
21+
stale-pr-message: 'This PR is stale because it has been open for 90 days with no activity. It will be closed in 2 days if there is no further activity.'
22+
close-pr-message: 'This PR is being closed due to inactivity.'
23+
days-before-pr-stale: 90
24+
days-before-pr-close: 2
25+
days-before-issue-stale: -1
26+
days-before-issue-close: -1

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ faculty-affiliations.csv homepages.csv scholar.csv csrankings.csv: csrankings-*.
5757
clean-csrankings:
5858
@echo "Cleaning."
5959
@$(PYTHON) util/clean-csrankings.py
60+
@$(PYTHON) util/sort-csv-files.py
6061
@echo "Done."
6162

6263
home-pages: faculty-affiliations.csv homepages.csv

0 commit comments

Comments
 (0)