Skip to content

Commit

Permalink
tools: github actions: fail/display red badge when unmaintained proje…
Browse files Browse the repository at this point in the history
…cts are detected

- lower error/warning days threshold, but only for the scheduled/daily check (leave thresholds unchanged for pull requests/pre-build checks)
- error if 365 days without updated, warning if 186 days without updates
- update hecat to v1.1.0 https://github.com/nodiscc/hecat/releases/tag/1.1.0
- fixes #50
  • Loading branch information
nodiscc committed Jul 29, 2023
1 parent 91a7905 commit 7e97f58
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-unmaintained-projects.yml
Expand Up @@ -18,4 +18,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: make install
- run: make awesome_lint
- run: make awesome_lint_strict
12 changes: 12 additions & 0 deletions .hecat/awesome-lint-strict.yml
@@ -0,0 +1,12 @@
# doc: https://github.com/nodiscc/hecat/blob/master/hecat/processors/awesome_lint.py
steps:
- name: check data against awesome-selfhosted guidelines (strict)
module: processors/awesome_lint
module_options:
source_directory: ./
items_in_delegate_to_fatal: False
last_updated_error_days: 365
last_updated_warn_days: 186
licenses_files:
- licenses.yml
- licenses-nonfree.yml
2 changes: 1 addition & 1 deletion .hecat/awesome-lint.yml
@@ -1,6 +1,6 @@
# doc: https://github.com/nodiscc/hecat/blob/master/hecat/processors/awesome_lint.py
steps:
- name: data against awesome-selfhosted guidelines
- name: check data against awesome-selfhosted guidelines
module: processors/awesome_lint
module_options:
source_directory: ./
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -8,7 +8,7 @@ install:
python3 -m venv .venv
source .venv/bin/activate && \
pip3 install wheel && \
pip3 install --force git+https://github.com/nodiscc/hecat.git@1.0.2
pip3 install --force git+https://github.com/nodiscc/hecat.git@1.1.0

.PHONY: import # import data from original list at https://github.com/awesome-selfhosted/awesome-selfhosted
import: clean install
Expand All @@ -30,6 +30,11 @@ awesome_lint:
source .venv/bin/activate && \
hecat --config .hecat/awesome-lint.yml

.PHONY: awesome_lint # check data against awesome-selfhosted guidelines (strict)
awesome_lint_strict:
source .venv/bin/activate && \
hecat --config .hecat/awesome-lint-strict.yml

.PHONY: export_markdown # render markdown export from YAML data (https://github.com/awesome-selfhosted/awesome-selfhosted)
export_markdown:
rm -rf awesome-selfhosted/
Expand Down

0 comments on commit 7e97f58

Please sign in to comment.