-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
196 changed files
with
24,644 additions
and
9,070 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,20 @@ | ||
[run] | ||
branch = True | ||
omit = | ||
# Autogenerated missed code handles other VCSes. | ||
devito/_version.py | ||
examples/*__init__* | ||
concurrency = multiprocessing | ||
parallel = True | ||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise NotImplementedError | ||
raise ValueError | ||
raise TypeError | ||
raise RuntimeError |
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,5 @@ | ||
github: [ZeroCool940711] | ||
patreon: zerocool94 | ||
ko_fi: zerocool94 | ||
open_collective: sygil_dev | ||
custom: ["https://paypal.me/zerocool94"] |
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,15 @@ | ||
# Description | ||
|
||
Please include: | ||
* relevant motivation | ||
* a summary of the change | ||
* which issue is fixed. | ||
* any additional dependencies that are required for this change. | ||
|
||
Closes: # (issue) | ||
|
||
# Checklist: | ||
|
||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation |
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,18 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
# Enable version updates for npm | ||
- package-ecosystem: 'pip' | ||
directory: '/' | ||
# Check the npm registry for updates once a week (Monday) | ||
schedule: | ||
interval: 'daily' | ||
|
||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' |
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,131 @@ | ||
--- | ||
# vi: ts=2 sw=2 et: | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
# | ||
name: "Pull Request Labeler" | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, synchronize, reopened, ready_for_review, closed] | ||
paths-ignore: | ||
- '.github/labeler.yml' | ||
- '.github/workflows/labeler.yml' | ||
# Allow testing changes made to the labeler configuration | ||
pull_request: | ||
paths: | ||
- '.github/labeler.yml' | ||
- '.github/workflows/labeler.yml' | ||
issue_comment: | ||
types: [created] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
triage: | ||
if: github.repository == 'Sygil-Dev/whoosh-reloaded' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Repository checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
if: github.event_name == 'pull_request' | ||
|
||
- name: Label PR based on policy in labeler.yml | ||
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 | ||
if: startsWith(github.event_name, 'pull_request') && github.event.action != 'closed' | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/labeler.yml | ||
sync-labels: false | ||
|
||
- name: Set or remove labels based on systemd development workflow | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea | ||
if: startsWith(github.event_name, 'pull_request') && github.event.action != 'closed' && !github.event.pull_request.draft | ||
with: | ||
script: | | ||
response = await github.rest.issues.listLabelsOnIssue({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
}); | ||
good_to_merge = [ | ||
"good-to-merge/waiting-for-ci 👍", | ||
"good-to-merge/after-next-release", | ||
"good-to-merge/with-minor-suggestions", | ||
"good-to-merge/waiting-for-reporter-feedback 👍", | ||
]; | ||
if (response.data.every(l => !good_to_merge.includes(l.name))) { | ||
await github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ["please-review"] | ||
}); | ||
} | ||
for (const label of ["reviewed/needs-rework 🔨", | ||
"ci-fails/needs-rework 🔥", | ||
"ci-failure-appears-unrelated", | ||
"needs-rebase"]) { | ||
try { | ||
await github.rest.issues.removeLabel({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: label, | ||
}); | ||
} catch (err) { | ||
if (err.status != 404) { | ||
throw err; | ||
} | ||
} | ||
} | ||
- name: Add please-review label on command in issue comment | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea | ||
if: github.event_name == 'issue_comment' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/please-review') | ||
with: | ||
script: | | ||
await github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ["please-review"] | ||
}) | ||
- name: Remove specific labels when PR is closed or merged | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea | ||
if: startsWith(github.event_name, 'pull_request') && github.event.action == 'closed' | ||
with: | ||
script: | | ||
for (const label of ["please-review", | ||
"reviewed/needs-rework 🔨", | ||
"ci-fails/needs-rework 🔥", | ||
"needs-rebase", | ||
"good-to-merge/waiting-for-ci 👍", | ||
"good-to-merge/after-next-release", | ||
"good-to-merge/with-minor-suggestions", | ||
"good-to-merge/waiting-for-reporter-feedback 👍", | ||
"needs-discussion 🤔", | ||
"needs-reporter-feedback ❓", | ||
"dont-merge 💣", | ||
"squash-on-merge", | ||
"quick-review 🏃♂️"]) { | ||
try { | ||
await github.rest.issues.removeLabel({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: label, | ||
}); | ||
} catch (err) { | ||
if (err.status != 404) { | ||
throw err; | ||
} | ||
} | ||
} |
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 @@ | ||
name: first-interaction | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
pull_request: | ||
branches: [main] | ||
types: [opened] | ||
|
||
jobs: | ||
check_for_first_interaction: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/first-interaction@main | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-message: | | ||
Hello! Thank you for filing an issue. | ||
If this is a bug report, please include relevant logs to help us debug the problem. | ||
pr-message: | | ||
Hello! Thank you for your contribution. | ||
If you are fixing a bug, please reference the issue number in the description. | ||
If you are implementing a feature request, please check with the maintainers that the feature will be accepted first. |
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,36 @@ | ||
--- | ||
|
||
name: Issue labeler | ||
on: | ||
issues: | ||
types: [ opened ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
label-component: | ||
runs-on: ubuntu-22.04 | ||
|
||
permissions: | ||
issues: write | ||
|
||
strategy: | ||
matrix: | ||
template: [ bug_report.yml, feature_request.yml ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Parse issue form | ||
uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324 | ||
id: issue-parser | ||
with: | ||
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }} | ||
|
||
- name: Set labels based on component field | ||
uses: redhat-plumbers-in-action/advanced-issue-labeler@9e55064634b67244f7deb4211452b4a7217b93de | ||
with: | ||
issue-form: ${{ steps.issue-parser.outputs.jsonString }} | ||
template: ${{ matrix.template }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
name: Stale bot | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mark and close stale PRs | ||
uses: actions/stale@v5 | ||
with: | ||
stale-pr-message: "This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity." | ||
close-pr-message: "This PR was closed because it has been stalled for some time with no activity." | ||
days-before-stale: -1 # avoid marking issues | ||
days-before-pr-stale: 60 | ||
days-before-close: -1 # avoid closing issues | ||
days-before-pr-close: 7 | ||
exempt-all-pr-assignees: true # avoid stale for all PR with assignees | ||
exempt-all-pr-milestones: true # avoid stale for all PR with milestones | ||
operations-per-run: 200 |
Oops, something went wrong.