Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1011 commits
Select commit Hold shift + click to select a range
34a261e
Bump tox from 4.5.1 to 4.5.2 in /test (#5304)
yubiuser Jun 4, 2023
eb0bd02
Sync master back into development (#5296)
PromoFaux Jun 4, 2023
5ab90dc
Merge branch 'master' of https://github.com/pi-hole/pi-hole into dev-…
arevindh Jun 8, 2023
a8eb232
Merge pull request #62 from arevindh/dev-v5.17.1
arevindh Jun 8, 2023
7d3f354
Bump actions/checkout from 3.5.2 to 3.5.3
dependabot[bot] Jun 10, 2023
8e481e2
Bump tox from 4.5.2 to 4.6.0 in /test
dependabot[bot] Jun 10, 2023
8347de1
Bump actions/checkout from 3.5.2 to 3.5.3 (#5310)
yubiuser Jun 10, 2023
b8419ba
Bump tox from 4.5.2 to 4.6.0 in /test (#5311)
yubiuser Jun 10, 2023
117c153
Add tests for Debian 12
yubiuser Jun 10, 2023
306df56
Add tests for Debian 12 (#5312)
DL6ER Jun 11, 2023
3fd7b4e
Bump pytest from 7.3.1 to 7.3.2 in /test
dependabot[bot] Jun 17, 2023
17fffa4
Bump pytest from 7.3.1 to 7.3.2 in /test (#5318)
yubiuser Jun 17, 2023
7a66083
Bump tox from 4.6.0 to 4.6.2 in /test
dependabot[bot] Jun 17, 2023
7bc1126
Bump tox from 4.6.0 to 4.6.2 in /test (#5317)
yubiuser Jun 17, 2023
198ca65
Bump tox from 4.6.2 to 4.6.3 in /test
dependabot[bot] Jun 24, 2023
5389ef1
Bump tox from 4.6.2 to 4.6.3 in /test (#5324)
yubiuser Jun 24, 2023
5490625
Bump pytest from 7.3.2 to 7.4.0 in /test
dependabot[bot] Jun 24, 2023
1eb4ad8
Bump pytest from 7.3.2 to 7.4.0 in /test (#5325)
yubiuser Jun 25, 2023
a01d31e
Bump tox from 4.6.3 to 4.6.4 in /test
dependabot[bot] Jul 8, 2023
60a7c50
Bump tox from 4.6.3 to 4.6.4 in /test (#5332)
yubiuser Jul 8, 2023
924de1d
Update dependabot.yml
PromoFaux Jul 11, 2023
8009123
Add missing `env:`, tweak conditional
PromoFaux Jul 12, 2023
91dabc5
Bump actions/setup-python from 4.6.1 to 4.7.0
dependabot[bot] Jul 15, 2023
cefbfdf
Bump actions/setup-python from 4.6.1 to 4.7.0 (#5336)
PromoFaux Jul 16, 2023
8495565
Update dependabot.yml (#5334)
PromoFaux Jul 16, 2023
30661fe
Sync master back into development (#5337)
PromoFaux Jul 16, 2023
7e24025
Drop docker-compose from requirements.txt, it's not used. This was th…
PromoFaux Jul 18, 2023
98c7d87
Update test dependencies (v5) (#5343)
PromoFaux Jul 18, 2023
7747cd2
Bump tox from 4.6.4 to 4.7.0 in /test
dependabot[bot] Aug 12, 2023
9fc0126
Bump tox from 4.6.4 to 4.7.0 in /test (#5360)
yubiuser Aug 12, 2023
272ca8c
Bump tox from 4.7.0 to 4.9.0 in /test
dependabot[bot] Aug 19, 2023
996234a
Bump tox from 4.7.0 to 4.9.0 in /test (#5365)
yubiuser Aug 19, 2023
1c6919c
Bump pytest-testinfra from 8.1.0 to 9.0.0 in /test
dependabot[bot] Aug 26, 2023
924f8b8
Bump actions/checkout from 3.5.3 to 3.6.0
dependabot[bot] Aug 26, 2023
a7ed968
Bump pytest-testinfra from 8.1.0 to 9.0.0 in /test (#5370)
yubiuser Aug 27, 2023
9b68fa0
Bump tox from 4.9.0 to 4.10.0 in /test
dependabot[bot] Aug 27, 2023
2878c1b
Bump tox from 4.9.0 to 4.10.0 in /test (#5371)
yubiuser Aug 27, 2023
fb831b5
Bump actions/checkout from 3.5.3 to 3.6.0 (#5372)
yubiuser Aug 27, 2023
9084b17
Bump tox from 4.10.0 to 4.11.1 in /test
dependabot[bot] Sep 2, 2023
ff72650
Bump tox from 4.10.0 to 4.11.1 in /test (#5379)
yubiuser Sep 2, 2023
cdc1c1a
Remove user agent when downloading adlists
yubiuser Aug 21, 2023
843f573
Ignore ABP style entries in debug log dig test
yubiuser Sep 7, 2023
f035687
Ignore ABP style entries in debug log dig test (#5381)
yubiuser Sep 7, 2023
1f241a3
Bump actions/checkout from 3.6.0 to 4.0.0
dependabot[bot] Sep 9, 2023
047eac6
Bump tox from 4.11.1 to 4.11.3 in /test
dependabot[bot] Sep 9, 2023
55f72ac
Bump pytest from 7.4.0 to 7.4.2 in /test
dependabot[bot] Sep 9, 2023
3f6e41e
Bump actions/checkout from 3.6.0 to 4.0.0 (#5387)
yubiuser Sep 9, 2023
c46a06b
Bump pytest from 7.4.0 to 7.4.2 in /test (#5390)
yubiuser Sep 9, 2023
7fbc7d4
Bump tox from 4.11.1 to 4.11.3 in /test (#5389)
yubiuser Sep 9, 2023
fef2861
Do not try to remove stale label on PRs (#5292)
PromoFaux Sep 10, 2023
d6a018a
Sync master back into development (#5391)
PromoFaux Sep 10, 2023
4955c52
Remove fake user agent when downloading adlists (#5366)
yubiuser Sep 10, 2023
c3d1f36
Bump actions/checkout from 4.0.0 to 4.1.0
dependabot[bot] Sep 23, 2023
3f4e210
Bump actions/checkout from 4.0.0 to 4.1.0 (#5396)
yubiuser Sep 23, 2023
edf0060
Fix spellcheck errors
yubiuser Oct 6, 2023
f5885c8
Fix spellcheck errors (#5410)
yubiuser Oct 6, 2023
afa688e
Yu vs uh
yubiuser Oct 6, 2023
bef5d85
Yu vs uh (#5411)
yubiuser Oct 7, 2023
f52b2b9
Bump actions/setup-python from 4.7.0 to 4.7.1
dependabot[bot] Oct 7, 2023
0385b1d
Bump actions/setup-python from 4.7.0 to 4.7.1 (#5412)
yubiuser Oct 7, 2023
71357ec
adminlte->web
PromoFaux Oct 8, 2023
1fa5cb8
Update references to web repo (#5418)
PromoFaux Oct 8, 2023
60b6a10
v5.17.2 (#5421)
PromoFaux Oct 11, 2023
51de1dc
Sync master back into development (#5422)
PromoFaux Oct 11, 2023
dc61d16
Merge branch 'master' of https://github.com/pi-hole/pi-hole into dev-…
arevindh Oct 17, 2023
d189ef6
Merge pull request #65 from arevindh/dev-5.17.2
arevindh Oct 18, 2023
2a72012
Bump actions/checkout from 4.1.0 to 4.1.1
dependabot[bot] Oct 21, 2023
ba61ee2
Bump actions/checkout from 4.1.0 to 4.1.1 (#5449)
DL6ER Oct 21, 2023
ec86124
Bump pytest from 7.4.2 to 7.4.3 in /test
dependabot[bot] Oct 28, 2023
300a4e2
Bump pytest from 7.4.2 to 7.4.3 in /test (#5463)
yubiuser Oct 28, 2023
3c4f217
Bump pytest-xdist from 3.3.1 to 3.4.0 in /test
dependabot[bot] Nov 18, 2023
271884c
Bump pytest-xdist from 3.3.1 to 3.4.0 in /test (#5493)
yubiuser Nov 18, 2023
2e73eb3
Bump pytest-testinfra from 9.0.0 to 10.0.0 in /test
dependabot[bot] Nov 18, 2023
536d170
Bump pytest-testinfra from 9.0.0 to 10.0.0 in /test (#5492)
yubiuser Nov 18, 2023
9d57f64
Bump pytest-xdist from 3.4.0 to 3.5.0 in /test
dependabot[bot] Nov 25, 2023
4523f07
Bump pytest-xdist from 3.4.0 to 3.5.0 in /test (#5501)
yubiuser Nov 30, 2023
bfc824f
Bump tox from 4.11.3 to 4.11.4 in /test
dependabot[bot] Dec 2, 2023
bbbb460
Bump tox from 4.11.3 to 4.11.4 in /test (#5506)
yubiuser Dec 2, 2023
16180e4
Bump actions/setup-python from 4.7.1 to 5.0.0
dependabot[bot] Dec 9, 2023
c34464d
Bump actions/stale from 8.0.0 to 9.0.0
dependabot[bot] Dec 9, 2023
c6756b1
Bump actions/stale from 8.0.0 to 9.0.0 (#5513)
yubiuser Dec 9, 2023
63b2a1f
Bump actions/setup-python from 4.7.1 to 5.0.0 (#5512)
yubiuser Dec 9, 2023
3f7413d
Add "-ni" to all sqlite3 invocations
DL6ER Dec 9, 2023
e8338d0
Install FTL's development branch to get the latest features during tests
DL6ER Dec 10, 2023
2ae79f2
Add "-ni" to all sqlite3 invocations (v5) (#5519)
DL6ER Dec 10, 2023
c6049d4
Bump github/codeql-action from 2 to 3
dependabot[bot] Dec 16, 2023
12c6dd5
Bump github/codeql-action from 2 to 3 (#5522)
yubiuser Dec 16, 2023
05e7d0e
Bump pytest from 7.4.3 to 7.4.4 in /test
dependabot[bot] Jan 6, 2024
7eb69a5
Bump pytest from 7.4.3 to 7.4.4 in /test (#5536)
yubiuser Jan 6, 2024
19bfa08
Pi-hole core v5.17.3 (#5520)
PromoFaux Jan 6, 2024
aa4ceb4
Sync master back into development (#5537)
PromoFaux Jan 7, 2024
9eb4731
Bump tox from 4.11.4 to 4.12.0 in /test
dependabot[bot] Jan 13, 2024
e773d03
Bump tox from 4.11.4 to 4.12.0 in /test (#5547)
yubiuser Jan 13, 2024
ba2682c
Bump tox from 4.12.0 to 4.12.1 in /test
dependabot[bot] Jan 20, 2024
37c6b35
Bump tox from 4.12.0 to 4.12.1 in /test (#5555)
yubiuser Jan 20, 2024
a231471
force db backup
ipitio Jan 20, 2024
541ada9
temporarily allow restore after flush
ipitio Jan 20, 2024
c4c0a5e
update readme
ipitio Jan 22, 2024
243e045
Merge pull request #69 from ipitio/master
arevindh Jan 22, 2024
b27737e
Merge pull request #70 from pi-hole/master
arevindh Jan 22, 2024
5d02fb7
Grammar
ipitio Jan 22, 2024
94533e7
set service with or without arg
ipitio Jan 25, 2024
350fcce
unset service
ipitio Jan 25, 2024
23c5ba0
change freq
ipitio Jan 25, 2024
dc9b3eb
get updated value
ipitio Jan 25, 2024
97ac3ae
get value
ipitio Jan 25, 2024
23a564f
generate_systemd_calendar
ipitio Jan 25, 2024
4c2e834
append after
ipitio Jan 25, 2024
39af2ab
fix generate
ipitio Jan 25, 2024
c730dcb
fix?
ipitio Jan 25, 2024
13ccb8f
fix
ipitio Jan 25, 2024
c93d82e
simplify for mod 0
ipitio Jan 25, 2024
938d971
fix mod 0
ipitio Jan 25, 2024
1dbc864
fix 1
ipitio Jan 25, 2024
1d70d47
actual fix
ipitio Jan 25, 2024
2f1b00b
just call unset
ipitio Jan 25, 2024
eea6155
create db
ipitio Jan 26, 2024
ca00533
handle fractional hours
ipitio Jan 26, 2024
94ad962
fix generate again
ipitio Jan 26, 2024
42461aa
update help
ipitio Jan 26, 2024
509d668
strip trailing dot
ipitio Jan 26, 2024
e298f56
round up
ipitio Jan 26, 2024
d257c07
allow any number of days
ipitio Jan 26, 2024
494467a
allow all days
ipitio Jan 30, 2024
d0299ab
don't remove files
ipitio Jan 30, 2024
080172d
bump
ipitio Jan 30, 2024
2c13f31
use copied script
ipitio Jan 31, 2024
81f465a
move scripts
ipitio Jan 31, 2024
1271656
make executable
ipitio Jan 31, 2024
1721638
Merge pull request #71 from ipitio/master
arevindh Jan 31, 2024
ee559c7
delete mod_pihole on upgrade
ipitio Jan 31, 2024
91c9a60
Merge branch 'arevindh:master' into master
ipitio Jan 31, 2024
eacbe33
we're already at the latest tag
ipitio Jan 31, 2024
c2e5fa0
fix up
ipitio Feb 1, 2024
3770257
remove old fix
ipitio Feb 1, 2024
cb46228
run updatechecker
ipitio Feb 1, 2024
d51e590
better dep handling
ipitio Feb 1, 2024
aaa9e7a
always update v
ipitio Feb 2, 2024
f8bfd59
Drop Fedora 36 and add Fedora 39 to the test suite
yubiuser Nov 7, 2023
7b6f0d1
Also remove Fedora 37
yubiuser Jan 28, 2024
2009fa8
Fedora (#5568)
PromoFaux Feb 4, 2024
f0878c0
Bump pytest from 7.4.4 to 8.0.0 in /test
dependabot[bot] Feb 4, 2024
01eb8b7
Merge pull request #73 from ipitio/master
arevindh Feb 5, 2024
3ba6ab5
Bump pytest from 7.4.4 to 8.0.0 in /test (#5566)
yubiuser Feb 5, 2024
b428066
support sans systemd
ipitio Feb 6, 2024
d751a90
update readme
ipitio Feb 7, 2024
1984896
run script immediately
ipitio Feb 8, 2024
a7902e7
better if
ipitio Feb 8, 2024
dce50a9
fix negative
ipitio Feb 8, 2024
8551bdd
use utc again, fedora support
ipitio Feb 8, 2024
8787a60
seconds
ipitio Feb 8, 2024
4337e09
rfc
ipitio Feb 8, 2024
7584a8e
redirect main
ipitio Feb 8, 2024
c52ea47
echo date after test
ipitio Feb 8, 2024
691ed75
echo in if
ipitio Feb 8, 2024
cecb52f
echo before
ipitio Feb 8, 2024
97793fc
round seconds
ipitio Feb 9, 2024
a4d5178
use remainder
ipitio Feb 9, 2024
dc8a668
swap log
ipitio Feb 9, 2024
3de5728
extra if
ipitio Feb 9, 2024
3721265
typo
ipitio Feb 9, 2024
47f6f40
bc -l
ipitio Feb 9, 2024
ba661e4
fix speedtest in docker
ipitio Feb 9, 2024
617d39c
curl dist
ipitio Feb 9, 2024
63b3eff
fix cp
ipitio Feb 11, 2024
423f7e0
copy log
ipitio Feb 11, 2024
e164b05
oops
ipitio Feb 12, 2024
0cb6ed0
same dist, jq output
ipitio Feb 13, 2024
9318a69
refactor ChangeSpeedTestSchedule
ipitio Feb 13, 2024
b72a8fb
fix server name
ipitio Feb 13, 2024
151d4db
create db after
ipitio Feb 13, 2024
3130db6
Merge pull request #74 from ipitio/master
arevindh Feb 13, 2024
9e2ffd0
copy speedtest log to volume
ipitio Feb 13, 2024
1c5c498
fix schedule reset
ipitio Feb 13, 2024
195500b
Merge branch 'arevindh:master' into master
ipitio Feb 14, 2024
5b75cb1
Bump tox from 4.12.1 to 4.13.0 in /test
dependabot[bot] Feb 17, 2024
3d00374
run settags again
ipitio Feb 17, 2024
0fe566e
call settags less, check null, recursive test run
ipitio Feb 17, 2024
9386bd4
edit test log
ipitio Feb 17, 2024
2463ae7
fix pretty log
ipitio Feb 17, 2024
881cb5f
pipe log
ipitio Feb 17, 2024
028c8ac
pipe log
ipitio Feb 19, 2024
6453fde
ensure speedtest source
ipitio Feb 19, 2024
44ffcea
oops
ipitio Feb 22, 2024
45d4656
apt update if notinstalled
ipitio Feb 22, 2024
72c4eaa
add only branch
ipitio Feb 22, 2024
90e5533
reorder if
ipitio Feb 22, 2024
22a9422
Merge pull request #75 from ipitio/master
arevindh Feb 22, 2024
b57cf27
Bump tox from 4.12.1 to 4.13.0 in /test (#5581)
yubiuser Feb 24, 2024
06bd889
add librespeed, defer install (#76)
ipitio Feb 28, 2024
a666084
fix perm (#77)
ipitio Feb 28, 2024
37e2a00
uninstall first (#78)
ipitio Feb 28, 2024
598d8f0
check version (#79)
ipitio Feb 29, 2024
df893c7
add safe (#80)
ipitio Feb 29, 2024
a072f20
fix getting version (#81)
ipitio Mar 1, 2024
1493a90
no vdev (#82)
ipitio Mar 1, 2024
cb3e448
Bump pytest from 8.0.0 to 8.0.2 in /test
dependabot[bot] Mar 2, 2024
e03ddf5
Bump pytest from 8.0.0 to 8.0.2 in /test (#5598)
yubiuser Mar 2, 2024
0fdd959
Bump pytest-testinfra from 10.0.0 to 10.1.0 in /test
dependabot[bot] Mar 2, 2024
0597128
Bump pytest-testinfra from 10.0.0 to 10.1.0 in /test (#5579)
yubiuser Mar 2, 2024
0a12566
fix uninstall (#83)
ipitio Mar 4, 2024
9dd138b
Only use local files (file://) when they have explicit permissions a+r
DL6ER Mar 4, 2024
1ec3542
fix uninstall when there's a new pi-hole release (#84)
ipitio Mar 5, 2024
c9ee618
delete local tags before fetching them (#85)
ipitio Mar 5, 2024
ba954a7
typo (#86)
ipitio Mar 5, 2024
289c802
fix install (#87)
ipitio Mar 5, 2024
a7c04b5
another check (#88)
ipitio Mar 5, 2024
0b20bc5
get latest tag using ls-remote (#89)
ipitio Mar 5, 2024
4ce673b
refactor download (#90)
ipitio Mar 5, 2024
4596f82
docker hack fix (#91)
ipitio Mar 5, 2024
8042d9e
Bump tox from 4.13.0 to 4.14.1 in /test
dependabot[bot] Mar 9, 2024
eaa878e
Bump tox from 4.13.0 to 4.14.1 in /test (#5602)
yubiuser Mar 9, 2024
f71391b
simplify code (#92)
ipitio Mar 9, 2024
bed7fe6
quiet install (#93)
ipitio Mar 9, 2024
dde7dca
improve script (#94)
ipitio Mar 14, 2024
cf42fb8
slightly speed up install by using tar in lieu of cp, fix version che…
ipitio Mar 16, 2024
9be7fe7
refix docker hack fix (#96)
ipitio Mar 16, 2024
eb23fbf
Bump actions/checkout from 4.1.1 to 4.1.2
dependabot[bot] Mar 16, 2024
f3af031
Merge pull request from GHSA-95g6-7q26-mp9x
PromoFaux Mar 27, 2024
3c7a6ce
Release 5.18 (#5615)
PromoFaux Mar 27, 2024
7442454
Sync master back into development (#5616)
PromoFaux Mar 27, 2024
eb7daf4
Fix file permission check in gravity.sh. Remove quotes that were adde…
PromoFaux Mar 27, 2024
32c640e
Remove double quotes that prevented _any_ local files from being read…
PromoFaux Mar 27, 2024
74a44ca
v5.18.1 (#5618)
PromoFaux Mar 27, 2024
7879f07
Sync master back into development (#5619)
PromoFaux Mar 27, 2024
d80fcf2
More checks when downloading from file:// scheme
orazioedoardo Mar 27, 2024
47998e1
Bump actions/checkout from 4.1.1 to 4.1.2 (#5604)
dschaper Mar 27, 2024
8cfccf9
More checks when downloading from file:// scheme (#5620)
dschaper Mar 28, 2024
5490a6e
Release 5.18.2 (#5629)
PromoFaux Mar 31, 2024
1a75969
Merge pull request #97 from pi-hole/master
ipitio Apr 14, 2024
011a675
Add options to script (#98)
ipitio Apr 14, 2024
dc4d706
fix -r and url (#99)
ipitio Apr 14, 2024
8a16a6c
fix dl (#100)
ipitio Apr 15, 2024
a78cc09
use url again (#101)
ipitio Apr 15, 2024
0da107f
don't need to fetch tags (#102)
ipitio Apr 15, 2024
434c827
use cnf (#103)
ipitio Apr 16, 2024
54fcf48
better getCnf (#104)
ipitio Apr 16, 2024
3a18e60
strip prefix (#105)
ipitio Apr 16, 2024
85dab1c
fix reinstall, uninstall, and updatecheck (#106)
ipitio Apr 16, 2024
30228af
improve grep (#107)
ipitio Apr 16, 2024
84d3dc3
improve updatecheck (#108)
ipitio Apr 16, 2024
8aff36c
put head check back (#109)
ipitio Apr 16, 2024
bc6dfc5
hashes deserve porcelain (#110)
ipitio Apr 17, 2024
0d396f6
flip cond (#111)
ipitio Apr 17, 2024
27695c5
improved scripts, multiplexed test (#112)
ipitio Apr 27, 2024
1879f77
fix failing tests and package cache check (#113)
ipitio Apr 27, 2024
ad77aa8
fetch tags for web (#114)
ipitio Apr 27, 2024
90c9677
fetch tags on uninstall (#115)
ipitio Apr 27, 2024
332b998
create lib, fix speedtest, enhance mod script (#116)
ipitio Apr 30, 2024
9ed2515
v2.9 (#117)
ipitio May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
doubleclick
wan
nwe
reenable
26 changes: 4 additions & 22 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,8 @@ tab_width = 4
charset = utf-8
trim_trailing_whitespace = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4

# Tab indentation (no size specified)
[Makefile]
indent_style = tab
[*.yml]
tab_width = 2

# Indentation override for all JS under lib directory
[scripts/**.js]
indent_style = space
indent_size = 2

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
[*.md]
tab_width = 2
35 changes: 34 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,37 @@ updates:
day: saturday
time: "10:00"
open-pull-requests-limit: 10
target-branch: developement
target-branch: development
reviewers:
- "pi-hole/core-maintainers"
- package-ecosystem: pip
directory: "/test"
schedule:
interval: weekly
day: saturday
time: "10:00"
open-pull-requests-limit: 10
target-branch: development
reviewers:
- "pi-hole/core-maintainers"
# As above, but for development-v6
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: saturday
time: "10:00"
open-pull-requests-limit: 10
target-branch: development-v6
reviewers:
- "pi-hole/core-maintainers"
- package-ecosystem: pip
directory: "/test"
schedule:
interval: weekly
day: saturday
time: "10:00"
open-pull-requests-limit: 10
target-branch: development-v6
reviewers:
- "pi-hole/core-maintainers"
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
steps:
-
name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4.1.2
# Initializes the CodeQL tools for scanning.
-
name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: 'python'
-
name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
21 changes: 21 additions & 0 deletions .github/workflows/merge-conflict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Check for merge conflicts"
on:
# So that PRs touching the same files as the push are updated
push:
# So that the `dirtyLabel` is removed if conflicts are resolve
# We recommend `pull_request_target` so that github secrets are available.
# In `pull_request` we wouldn't be able to change labels of fork PRs
pull_request_target:
types: [synchronize]

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Check if PRs are have merge conflicts
uses: eps1lon/actions-label-merge-conflict@v2.1.0
with:
dirtyLabel: "PR: Merge Conflict"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request."
commentOnClean: "Conflicts have been resolved."
49 changes: 36 additions & 13 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,47 @@ name: Mark stale issues

on:
schedule:
- cron: '0 * * * *'
- cron: '0 8 * * *'
workflow_dispatch:
issue_comment:

jobs:
stale:
env:
stale_label: stale

jobs:
stale_action:
if: github.event_name != 'issue_comment'
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 5
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.'
stale-issue-label: 'stale'
exempt-issue-labels: 'Internal, Fixed in next release, Bug: Confirmed, Documentation Needed'
exempt-all-issue-assignees: true
operations-per-run: 300
- uses: actions/stale@v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 5
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.'
stale-issue-label: '${{ env.stale_label }}'
exempt-issue-labels: 'Internal, Fixed in next release, Bug: Confirmed, Documentation Needed'
exempt-all-issue-assignees: true
operations-per-run: 300
close-issue-reason: 'not_planned'

remove_stale:
# trigger "stale" removal immediately when stale issues are commented on
# we need to explicitly check that the trigger does not run on comment on a PR as
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only
if: ${{ !github.event.issue.pull_request && github.event_name != 'schedule' }}
permissions:
contents: read # for actions/checkout
issues: write # to edit issues label
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.2
- name: Remove 'stale' label
run: gh issue edit ${{ github.event.issue.number }} --remove-label ${{ env.stale_label }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

35 changes: 35 additions & 0 deletions .github/workflows/stale_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Close stale PR
# This action will add a `stale` label and close immediately every PR that meets the following conditions:
# - it is already marked with "merge conflict" label
# - there was no update/comment on the PR in the last 30 days.

on:
schedule:
- cron: '0 10 * * *'
workflow_dispatch:

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Do not automatically mark PR/issue as stale
days-before-stale: -1
# Override 'days-before-stale' for PR only
days-before-pr-stale: 30
# Close PRs immediately, after marking them 'stale'
days-before-pr-close: 0
# only run the action on merge conflict PR
any-of-labels: 'PR: Merge Conflict'
exempt-pr-labels: 'internal, never-stale, ON HOLD, WIP'
exempt-all-pr-assignees: true
operations-per-run: 300
stale-pr-message: ''
close-pr-message: 'Existing merge conflicts have not been addressed. This PR is considered abandoned.'
37 changes: 25 additions & 12 deletions .github/workflows/sync-back-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,36 @@ on:
branches:
- master

# The section is needed to drop the default write-all permissions for all jobs
# that are granted on `push` event. By specifying any permission explicitly
# all others are set to none. By using the principle of least privilege the damage a compromised
# workflow can do (because of an injection or compromised third party tool or
# action) is restricted. Adding labels to issues, commenting
# on pull-requests, etc. may need additional permissions:
#
# Syntax for this section:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
#
# Reference for how to assign permissions on a job-by-job basis:
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
#
# Reference for available permissions that we can enable if needed:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions: {}

jobs:
sync-branches:
# The job needs to be able to pull the code and create a pull request.
permissions:
contents: read # for actions/checkout
pull-requests: write # to create pull request

runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4.1.2
- name: Opening pull request
id: pull
uses: tretuna/sync-branches@1.4.0
with:
run: gh pr create -B development -H master --title 'Sync master back into development' --body 'Created by Github action' --label 'internal'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FROM_BRANCH: 'master'
TO_BRANCH: 'development'
- name: Label the pull request to ignore for release note generation
uses: actions-ecosystem/action-add-labels@v1
with:
labels: internal
repo: ${{ github.repository }}
number: ${{ steps.pull.outputs.PULL_REQUEST_NUMBER }}
88 changes: 59 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,74 @@ permissions:
contents: read

jobs:
smoke-test:
smoke-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v2
-
name: Run Smoke Tests
run: |
# Ensure scripts in repository are executable
IFS=$'\n';
for f in $(find . -name '*.sh'); do if [[ ! -x $f ]]; then echo "$f is not executable" && FAIL=1; fi ;done
unset IFS;
# If FAIL is 1 then we fail.
[[ $FAIL == 1 ]] && exit 1 || echo "Smoke Tests Passed"
- name: Checkout repository
uses: actions/checkout@v4.1.2

- name: Check scripts in repository are executable
run: |
IFS=$'\n';
for f in $(find . -name '*.sh'); do if [[ ! -x $f ]]; then echo "$f is not executable" && FAIL=1; fi ;done
unset IFS;
# If FAIL is 1 then we fail.
[[ $FAIL == 1 ]] && exit 1 || echo "Scripts are executable!"

- name: Spell-Checking
uses: codespell-project/actions-codespell@master
with:
ignore_words_file: .codespellignore

- name: Get editorconfig-checker
uses: editorconfig-checker/action-editorconfig-checker@main # tag v1.0.0 is really out of date

- name: Run editorconfig-checker
run: editorconfig-checker

- name: Check python code formatting with black
uses: psf/black@stable
with:
src: "./test"
options: "--check --diff --color"

distro-test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
needs: smoke-test
needs: smoke-tests
strategy:
fail-fast: false
matrix:
distro: [debian_9, debian_10, debian_11, ubuntu_16, ubuntu_18, ubuntu_20, ubuntu_21, centos_7, centos_8, fedora_33, fedora_34]
distro:
[
debian_10,
debian_11,
debian_12,
ubuntu_20,
ubuntu_22,
ubuntu_23,
centos_8,
centos_9,
fedora_38,
fedora_39,
]
env:
DISTRO: ${{matrix.distro}}
steps:
-
name: Checkout repository
uses: actions/checkout@v2
-
name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
-
name: Install dependencies
run: pip install -r test/requirements.txt
-
name: Test with tox
run: tox -c test/tox.${DISTRO}.ini
- name: Checkout repository
uses: actions/checkout@v4.1.2

- name: Set up Python 3.10
uses: actions/setup-python@v5.0.0
with:
python-version: "3.10"

- name: Install wheel
run: pip install wheel

- name: Install dependencies
run: pip install -r test/requirements.txt

- name: Test with tox
run: tox -c test/tox.${DISTRO}.ini
4 changes: 4 additions & 0 deletions .stickler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
linters:
shellcheck:
shell: bash
phpcs:
flake8:
max-line-length: 120
yamllint:
config: ./.yamllint.conf
remarklint:
3 changes: 3 additions & 0 deletions .yamllint.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rules:
line-length: disable
document-start: disable
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
Please read and understand the contribution guide before creating an issue or pull request.

The guide can be found here: [https://docs.pi-hole.net/guides/github/contributing/](https://docs.pi-hole.net/guides/github/contributing/)


Loading