-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix_find_assimp_cmake
- Loading branch information
Showing
798 changed files
with
17,869 additions
and
221,520 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,48 @@ | ||
name: Check PR Age | ||
on: | ||
pull_request: | ||
types: | ||
- synchronize | ||
- opened | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
|
||
|
||
jobs: | ||
|
||
check_labels: | ||
name: Check labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Labels and Age | ||
id: check_labels_and_comment | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
// Get PR labels | ||
const labels = context.payload.pull_request.labels.map(label => label.name); | ||
// Define the fast merge label | ||
const fastMergeFlag = ['pr: fast merge']; | ||
// Check if any label fits fast merge | ||
const isFastMerge = labels.some(label => fastMergeFlag.includes(label)); | ||
// If regular PR (not fast merge), check PR age | ||
if (!isFastMerge) { | ||
const creationDate = new Date(context.payload.pull_request.created_at); | ||
const currentDate = new Date(); | ||
// Check if the PR is more than 7 days old | ||
const daysDiff = Math.floor((currentDate - creationDate) / (1000 * 60 * 60 * 24)); | ||
if (daysDiff < 7) { | ||
core.setFailed("PR is less than 7 days old and it is not flagged as 'pr: fast merge'"); | ||
} else { | ||
console.log('PR is more than 7 days old'); | ||
} | ||
} else { | ||
console.log("PR is flagged as 'pr: fast merge'"); | ||
} |
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,32 @@ | ||
name: Stale GitHub Discussions | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 6 * * 1' # Every Monday at 6:00 AM UTC (8:00 AM CET) | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' # Use the desired Python version | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install python-graphql-client | ||
pip install python-dateutil | ||
working-directory: ${{ github.workspace }} | ||
|
||
- name: Run script comment-close-old-discussions.py | ||
run: | | ||
python scripts/comment-close-old-discussions.py | ||
working-directory: ${{ github.workspace }} | ||
env: | ||
GITHUB_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
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
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
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.