Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
296 commits
Select commit Hold shift + click to select a range
7fdde60
Update GeoIP DB (#3334)
yourls-bot[bot] May 9, 2022
faeec44
Update GeoIP DB (#3340)
yourls-bot[bot] May 16, 2022
2b69317
List required/suggested PHP extensions in composer.json (#3339)
dgw May 17, 2022
c588c1d
Update GeoIP DB (#3348)
yourls-bot[bot] May 25, 2022
d854663
No hyphen in random keywords (#3353)
ozh May 29, 2022
e79b33c
Always include `functions-(upgrade|install).php` (#3354)
ozh May 29, 2022
19eb4d5
Return 400 instead of 500 when duplicate (#3355)
ozh May 29, 2022
6c3733c
Update GeoIP DB (#3356)
yourls-bot[bot] May 29, 2022
26c3455
Release v1.9.1 (#3350)
LeoColomb May 29, 2022
b4364ab
Post release bump
ozh May 29, 2022
55ed52e
Bump shivammathur/setup-php from 2.18.1 to 2.19.0
dependabot[bot] May 31, 2022
71ad813
Bump shivammathur/setup-php from 2.19.0 to 2.19.1
dependabot[bot] Jun 7, 2022
3b69f2b
Update GeoIP DB (#3362)
yourls-bot[bot] Jun 8, 2022
0d9781f
Fix geoip tests with a more confident ipv6 (#3369)
ozh Jun 15, 2022
3653fe6
Update GeoIP DB (#3368)
yourls-bot[bot] Jun 15, 2022
5dbea36
Update GeoIP DB (#3370)
yourls-bot[bot] Jun 22, 2022
bdc1cb2
Bump shivammathur/setup-php from 2.19.1 to 2.20.0
dependabot[bot] Jul 6, 2022
16be4c3
Bump shivammathur/setup-php from 2.20.0 to 2.20.1
dependabot[bot] Jul 8, 2022
a412004
Update GeoIP DB (#3373)
yourls-bot[bot] Jul 12, 2022
b2e09b3
Bump shivammathur/setup-php from 2.20.1 to 2.21.0
dependabot[bot] Jul 20, 2022
a98392a
Update GeoIP DB (#3385)
yourls-bot[bot] Jul 25, 2022
6304137
Bump shivammathur/setup-php from 2.21.0 to 2.21.1
dependabot[bot] Jul 28, 2022
05d1db1
Update certificates (#3389)
github-actions[bot] Aug 1, 2022
6b96c82
Update GeoIP DB (#3397)
yourls-bot[bot] Aug 1, 2022
f197c02
Update GeoIP DB (#3405)
yourls-bot[bot] Aug 16, 2022
05d9125
Bump shivammathur/setup-php from 2.21.1 to 2.21.2
dependabot[bot] Aug 19, 2022
655c3a7
Update GeoIP DB (#3417)
yourls-bot[bot] Aug 24, 2022
03added
Update GeoIP DB (#3419)
yourls-bot[bot] Sep 16, 2022
98a447c
Update GeoIP DB (#3424)
yourls-bot[bot] Sep 27, 2022
d86b53b
Update GeoIP DB (#3432)
yourls-bot[bot] Oct 3, 2022
b3119b3
When adding URLs, new HTML rows should have unique HTML IDs. (#3431)
barryhughes Oct 4, 2022
1de2b6c
Typofixes
nexxai Oct 4, 2022
2f3ea60
Update admin/index.php
nexxai Oct 4, 2022
26bfa54
Update GeoIP DB (#3436)
yourls-bot[bot] Oct 17, 2022
2bfe643
Update GeoIP DB
ozh Oct 24, 2022
5c85eb5
Update certificates
ozh Oct 17, 2022
697c102
Bump shivammathur/setup-php from 2.21.2 to 2.22.0
dependabot[bot] Oct 31, 2022
5ee2c63
Update GeoIP DB (#3453)
yourls-bot[bot] Nov 28, 2022
520dae6
Support PHP 8.2 (#3474)
LeoColomb Dec 11, 2022
5434b6a
Update GeoIP DB
ozh Dec 5, 2022
cb3b35a
Update GeoIP DB (#3477)
yourls-bot[bot] Dec 15, 2022
bb4a462
Update GeoIP DB (#3479)
yourls-bot[bot] Dec 20, 2022
9f7806c
Bump shivammathur/setup-php from 2.22.0 to 2.23.0
dependabot[bot] Dec 26, 2022
4b3ca3f
Bump dependencies
LeoColomb Jan 6, 2023
e480b7e
Update certificates
ozh Jan 16, 2023
59aa2b1
Update GeoIP DB (#3488)
yourls-bot[bot] Jan 18, 2023
024f9c3
Bump shivammathur/setup-php from 2.23.0 to 2.24.0
dependabot[bot] Jan 27, 2023
a2e26b1
Update GeoIP workflow; set-output is deprecated
dgw Feb 3, 2023
949107c
Update cert workflow: set-output is deprecated
dgw Feb 4, 2023
5640b90
Use the correct version 9 of PHPUnit
LeoColomb Feb 4, 2023
e54d3ba
Improve Actions name readability
LeoColomb Feb 4, 2023
2efcb9e
Update GeoIP DB (#3499)
yourls-bot[bot] Feb 5, 2023
f2971a1
Support usernames containing brackets (#3365)
SXN31 Feb 11, 2023
8e57e1a
Use sandbox for all included files (#3478)
jarebear6expepjozn6rakjq5iczi3irqwphcvb Feb 12, 2023
6abcf75
Fix bug where editing a URL will update the first entry in the table …
four-bytes-robby Feb 12, 2023
e576acb
Remove cookies from $_REQUEST (#3516)
ozh Feb 12, 2023
ae7ca13
Make Googlebot indexing filterable (#3517)
ozh Feb 12, 2023
ebd27f2
Fix click threshold in admin view (#3518)
ozh Feb 12, 2023
ca8d922
Update GeoIP DB (#3519)
yourls-bot[bot] Feb 13, 2023
dbb6b30
Update GeoIP DB (#3526)
yourls-bot[bot] Feb 25, 2023
6bbcb8f
Comment what "cache" means here
ozh Feb 26, 2023
3aac6aa
Fixes bookmarklets with URL containing special chars (#3527)
jarebear6expepjozn6rakjq5iczi3irqwphcvb Feb 26, 2023
af98e01
Update CHANGELOG
ozh Feb 26, 2023
fd70f6d
Merge branch 'master' of https://github.com/YOURLS/YOURLS
ozh Feb 26, 2023
d957f50
Fix typo in comment (#3535)
f1rf1n Mar 5, 2023
218b053
Bump version for 1.9.2 (#3537)
ozh Mar 5, 2023
c72c3eb
Bump version
ozh Mar 5, 2023
02eda60
Update GeoIP DB (#3540)
yourls-bot[bot] Mar 8, 2023
8f49f21
Update GeoIP DB (#3546)
yourls-bot[bot] Mar 17, 2023
251624b
Bump peter-evans/create-pull-request from 4 to 5
dependabot[bot] Apr 5, 2023
39f37a2
Bump shivammathur/setup-php from 2.24.0 to 2.25.0
dependabot[bot] Apr 17, 2023
adf15f6
Bump shivammathur/setup-php from 2.25.0 to 2.25.1
dependabot[bot] Apr 19, 2023
cdf92d9
Update GeoIP DB
ozh May 15, 2023
4905a9b
Bump shivammathur/setup-php from 2.25.1 to 2.25.2
dependabot[bot] May 26, 2023
f1ae0ef
Update GeoIP DB (#3571)
yourls-bot[bot] Jun 5, 2023
9bd75f1
Update certificates (#3577)
github-actions[bot] Jul 8, 2023
65655a5
Fix results with 0 clicks on search (#3589)
JensSpanier Jul 15, 2023
d31f82f
Fix MariaDB service healthcheck
LeoColomb Jul 17, 2023
e467ed0
Bump shivammathur/setup-php from 2.25.2 to 2.25.4
dependabot[bot] Jun 13, 2023
0ad8553
Update GeoIP DB
ozh Jul 17, 2023
37ca19f
Bump shivammathur/setup-php from 2.25.4 to 2.25.5
dependabot[bot] Jul 31, 2023
b044424
Update GeoIP DB (#3593)
yourls-bot[bot] Aug 1, 2023
50eca4b
Update GeoIP DB (#3602)
yourls-bot[bot] Aug 7, 2023
fe73bb7
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 5, 2023
b21dcb5
Bump tibdex/github-app-token from 1 to 2
dependabot[bot] Sep 11, 2023
0e490df
Bump shivammathur/setup-php from 2.25.5 to 2.26.0
dependabot[bot] Sep 15, 2023
859289c
Update GeoIP DB
ozh Oct 23, 2023
6f371af
Bump shivammathur/setup-php from 2.26.0 to 2.27.0
dependabot[bot] Nov 2, 2023
8158410
Bump shivammathur/setup-php from 2.27.0 to 2.27.1
dependabot[bot] Nov 8, 2023
af4ec44
Update readme.html (#3669)
mohammadshg84 Nov 24, 2023
ba3fce2
Update GeoIP DB (#3656)
yourls-bot[bot] Nov 24, 2023
e9158d0
Update certificates (#3612)
github-actions[bot] Nov 24, 2023
f7fbeac
Bump shivammathur/setup-php from 2.27.1 to 2.28.0
dependabot[bot] Nov 28, 2023
b493c47
Update GeoIP DB (#3672)
yourls-bot[bot] Dec 9, 2023
be573de
Bump shivammathur/setup-php from 2.28.0 to 2.29.0
dependabot[bot] Jan 16, 2024
8bfa95b
Update GeoIP DB (#3689)
yourls-bot[bot] Jan 26, 2024
e0c7fc9
Update certificates (#3690)
github-actions[bot] Jan 26, 2024
02278cd
Bump peter-evans/create-pull-request from 5 to 6
dependabot[bot] Feb 1, 2024
435b080
Bump shivammathur/setup-php from 2.29.0 to 2.30.0
dependabot[bot] Mar 4, 2024
2c6a6b1
Update GeoIP DB (#3713)
yourls-bot[bot] Mar 25, 2024
43c5855
Bump shivammathur/setup-php from 2.30.0 to 2.30.1
dependabot[bot] Mar 26, 2024
268aa5e
Bump shivammathur/setup-php from 2.30.1 to 2.30.2
dependabot[bot] Apr 1, 2024
8814f5e
Bump shivammathur/setup-php from 2.30.2 to 2.30.3
dependabot[bot] Apr 22, 2024
aed6bb9
Bump shivammathur/setup-php from 2.30.3 to 2.30.4
dependabot[bot] Apr 24, 2024
469763c
Ensure all `statusCode`/`errorCode` API values are strings (#3756)
dgw May 8, 2024
395dabe
Bump shivammathur/setup-php from 2.30.4 to 2.30.5
dependabot[bot] Jun 4, 2024
97f0311
Bump shivammathur/setup-php from 2.30.5 to 2.31.0
dependabot[bot] Jun 24, 2024
41ff6ad
Bump shivammathur/setup-php from 2.31.0 to 2.31.1
dependabot[bot] Jul 10, 2024
0d59b83
Bump peter-evans/create-pull-request from 6 to 7
dependabot[bot] Sep 4, 2024
a0be3a5
Update certificates
ozh Sep 30, 2024
5509cc9
Update GeoIP DB
ozh Apr 29, 2024
66dd831
Update CI badge syntax
janbrasna Dec 14, 2024
d98f901
Bump shivammathur/setup-php from 2.31.1 to 2.32.0
dependabot[bot] Dec 31, 2024
e1359e4
Upgrade Aura.SQL to fix PHP 8.4 compatibility (#3852)
AlexanderWillner Mar 2, 2025
b930019
Upgrade dependencies to match PHP 8.1+ requirement
LeoColomb Mar 2, 2025
0ea6cd9
Upgrade tests to PHPUnit 10+
LeoColomb Mar 2, 2025
e4012d3
Reflect PHP requirement into docs
LeoColomb Mar 3, 2025
750909a
Switch PHP version from recommendation to requirement
LeoColomb Mar 3, 2025
1081045
update-geoip: follow redirects when downloading archive (#3865)
dgw Mar 4, 2025
1213c01
Unsure proper workflow exec
LeoColomb Mar 4, 2025
da01be9
Enable auto merge on automation workflow
LeoColomb Mar 4, 2025
030a6ff
Enable auto merge on automation workflow
LeoColomb Mar 4, 2025
648f547
Enable auto merge on automation workflow
LeoColomb Mar 4, 2025
98f4080
Enable auto merge on automation workflow
LeoColomb Mar 4, 2025
1c7728e
Enable auto merge on automation workflow
LeoColomb Mar 4, 2025
ef12502
Update GeoIP DB
LeoColomb Mar 4, 2025
b7511a2
Update certificates
LeoColomb Mar 4, 2025
f89fd21
Enable auto generation of translations
LeoColomb Mar 4, 2025
a9b0173
Enable auto generation of translations
LeoColomb Mar 4, 2025
a3eeadd
Enable auto generation of translations
LeoColomb Mar 4, 2025
0c48582
Enable auto generation of translations
LeoColomb Mar 4, 2025
ba58a23
Disable translations license header
LeoColomb Mar 4, 2025
5acf136
Ensure charset for generated translations
LeoColomb Mar 4, 2025
8cb2ed8
Upload translations template on new releases
LeoColomb Mar 4, 2025
32aa068
Enable PHPUnit colors whenever possible
LeoColomb Mar 6, 2025
b55bb53
Use testdox PHPUnit output
LeoColomb Mar 6, 2025
272d57e
Update GeoIP DB
ozh Mar 10, 2025
f91180f
Use official GitHub App token generator
LeoColomb Mar 11, 2025
32e2cc8
Use proper user for auto workflow
LeoColomb Mar 11, 2025
9dccaa9
Update GeoIP DB
yourls-bot[bot] Mar 17, 2025
55f5423
Fix all PHPUnit tests errors and compatiblity issues (#3871)
LeoColomb Mar 21, 2025
872e789
Update GeoIP DB
yourls-bot[bot] Mar 24, 2025
b5e13d4
Login Page Accessibility (#3660)
madzinah Mar 25, 2025
b884494
Mysql 8+ has issue with double quotes in install script
halkeye Nov 29, 2024
7c15a31
Update GeoIP DB
yourls-bot[bot] Mar 31, 2025
c10da1e
Release version 1.10.0 (#3864)
LeoColomb Apr 3, 2025
27823f0
Fix translations automaition
LeoColomb Apr 3, 2025
c4c9f3c
Update version.php
LeoColomb Apr 3, 2025
46705d9
Fix warning for undefined variable
LeoColomb Apr 4, 2025
b3848d4
Bump actions/create-github-app-token from 1 to 2
dependabot[bot] Apr 4, 2025
ef18d1d
Revert added exception in the sandbox (#3893)
LeoColomb Apr 6, 2025
b99bbfd
Update GeoIP DB
yourls-bot[bot] Apr 14, 2025
a7f526e
Bump shivammathur/setup-php from 2.32.0 to 2.33.0
dependabot[bot] Apr 16, 2025
9ed2f2f
Ensure docs are the signle point of trust for installation
LeoColomb Apr 17, 2025
aa5fabe
Update GeoIP DB
yourls-bot[bot] Apr 21, 2025
57e8c78
Extend stats timeline to current day (#3895)
ntindicator Apr 24, 2025
1d437c6
Release version 1.10.1 (#3899)
LeoColomb Apr 24, 2025
3df97b1
Back to dev version
dgw Apr 25, 2025
2c11a13
admin/tools.php should use yourls_get_nonce_life()
dgw Apr 25, 2025
f21bf52
Update GeoIP DB
yourls-bot[bot] Apr 28, 2025
b71ef9e
Auto-skip PR auto-merge steps in update automations (#3908)
dgw Apr 28, 2025
dedb0da
Fix translation automation permissions
LeoColomb Apr 28, 2025
c6a1b10
Enable translation auto-merge
LeoColomb Apr 28, 2025
a6b0f07
Fix "Display 1 to 0 of 0 URLs" on admin list page (#3910)
SimStim May 1, 2025
ca4f0ea
Update GeoIP DB
yourls-bot[bot] May 5, 2025
ef871c6
Update GeoIP DB
yourls-bot[bot] May 12, 2025
3181300
Update GeoIP DB
yourls-bot[bot] May 19, 2025
bbe4c4f
Update GeoIP DB
yourls-bot[bot] May 26, 2025
de78052
Update certificates
yourls-bot[bot] May 26, 2025
e74805c
Update GeoIP DB
yourls-bot[bot] Jun 2, 2025
37712ac
Update readme.html : remove Gandi
ozh Jun 7, 2025
d01ff1f
Update GeoIP DB
yourls-bot[bot] Jun 9, 2025
3f612e3
Bump shivammathur/setup-php from 2.33.0 to 2.34.0
dependabot[bot] Jun 11, 2025
0b1341b
Bump shivammathur/setup-php from 2.34.0 to 2.34.1
dependabot[bot] Jun 13, 2025
7207fd2
Update GeoIP DB
yourls-bot[bot] Jun 16, 2025
36ec9a2
Update GeoIP DB
yourls-bot[bot] Jun 23, 2025
f09a784
Update GeoIP DB
yourls-bot[bot] Jun 30, 2025
2d253ec
Update GeoIP DB
yourls-bot[bot] Jul 7, 2025
50e8311
Update GeoIP DB
yourls-bot[bot] Jul 14, 2025
bc7c445
Update certificates
yourls-bot[bot] Jul 21, 2025
96fc3e5
Update GeoIP DB
yourls-bot[bot] Jul 28, 2025
2fbfd87
Bump shivammathur/setup-php from 2.34.1 to 2.35.1
dependabot[bot] Jul 29, 2025
d4f5956
Replace deprecated get_all_options filter with an action
RavanH Dec 12, 2023
dbc5451
Defer loading textdomain after plugins
ozh Dec 3, 2023
96fbdf4
Bump shivammathur/setup-php from 2.35.1 to 2.35.2
dependabot[bot] Jul 30, 2025
9c6153c
Release v1.10.2
LeoColomb Jul 30, 2025
2bcf984
1.10.3-dev
LeoColomb Jul 31, 2025
7b0438c
Update GeoIP DB
yourls-bot[bot] Aug 4, 2025
2cfe96a
Bump actions/download-artifact from 4 to 5
dependabot[bot] Aug 6, 2025
6d9a62d
Bump shivammathur/setup-php from 2.35.2 to 2.35.3
dependabot[bot] Aug 11, 2025
afc4fc5
Update GeoIP DB
yourls-bot[bot] Aug 11, 2025
75428ac
Bump actions/checkout from 4 to 5
dependabot[bot] Aug 12, 2025
17426ec
Update GeoIP DB
yourls-bot[bot] Aug 18, 2025
af99506
Update certificates
yourls-bot[bot] Aug 18, 2025
9816413
Update GeoIP DB
yourls-bot[bot] Aug 25, 2025
9f1bac3
Bump shivammathur/setup-php from 2.35.3 to 2.35.4
dependabot[bot] Aug 26, 2025
9a73c5e
Update GeoIP DB
yourls-bot[bot] Sep 1, 2025
9127c31
Update GeoIP DB
yourls-bot[bot] Sep 8, 2025
4340a65
Fix "show links with more than 0 clicks" (#3977)
ozh Sep 8, 2025
bf96400
Update GeoIP DB
yourls-bot[bot] Sep 15, 2025
61014ed
Update certificates
yourls-bot[bot] Sep 15, 2025
01d8347
Misc unimportant fixes (#3979)
ozh Sep 18, 2025
142abeb
Add `.git-blame-ignore-revs` file (#3984)
LeoColomb Sep 18, 2025
1496f97
Bump shivammathur/setup-php from 2.35.4 to 2.35.5
dependabot[bot] Sep 19, 2025
194696b
Update GeoIP DB
yourls-bot[bot] Sep 22, 2025
029b5fc
Replace tabs (#3988)
ozh Sep 26, 2025
e008fd1
Update GeoIP DB
yourls-bot[bot] Sep 29, 2025
b15e567
Update GeoIP DB
yourls-bot[bot] Oct 6, 2025
fc6de17
Enhance configuration template formatting. (#3994)
ramonfincken Oct 7, 2025
43d39ad
Fix case sensitivity in search (#3997)
ozh Oct 11, 2025
201789f
Add a function to get the reserved url from the global variable. (#3999)
matt-h Oct 11, 2025
7ac0bbb
Update GeoIP DB
yourls-bot[bot] Oct 13, 2025
7bce6fc
Update GeoIP DB
yourls-bot[bot] Oct 20, 2025
781d95d
Update GeoIP DB
yourls-bot[bot] Oct 27, 2025
5045b93
Bump actions/upload-artifact from 4 to 5
dependabot[bot] Oct 27, 2025
e4d47b2
Bump actions/download-artifact from 5 to 6
dependabot[bot] Oct 27, 2025
510820e
hide referrers on public statistics page by default
matt-h Oct 24, 2025
c21c012
Fix handling of invalid charsets on remote sites (#4007)
matt-h Oct 28, 2025
a84a356
Set the infos cache of the keyword after a url is added/updated/delet…
matt-h Oct 30, 2025
c8b5f22
Sanitize: preserve backslashes in URLs (#4000)
ozh Oct 30, 2025
fdc68ef
Update GeoIP DB
yourls-bot[bot] Nov 3, 2025
fefb21e
Update GeoIP DB
yourls-bot[bot] Nov 10, 2025
68507b9
Update certificates
yourls-bot[bot] Nov 10, 2025
e640b08
Update GeoIP DB
yourls-bot[bot] Nov 17, 2025
82e6c59
Update GeoIP DB
yourls-bot[bot] Nov 24, 2025
e7937b3
Bump actions/checkout from 5 to 6
dependabot[bot] Nov 21, 2025
1b4534d
Bump shivammathur/setup-php from 2.35.5 to 2.36.0
dependabot[bot] Nov 27, 2025
745f112
Update GeoIP DB
yourls-bot[bot] Dec 1, 2025
6a29876
Update GeoIP DB
yourls-bot[bot] Dec 8, 2025
9c1a2ce
Update certificates
yourls-bot[bot] Dec 8, 2025
b36a42f
Bump peter-evans/create-pull-request from 7 to 8
dependabot[bot] Dec 10, 2025
cfa6e92
Fix hover to display links in tables for users with screen readers. (…
lilmike Dec 12, 2025
e759613
Update GeoIP DB
yourls-bot[bot] Dec 15, 2025
8c2c1bd
Bump actions/upload-artifact from 5 to 6
dependabot[bot] Dec 15, 2025
ddc41ad
Bump actions/download-artifact from 6 to 7
dependabot[bot] Dec 15, 2025
b1c6100
Validate jsonp callbacks, add unit tests (#4030)
ozh Dec 22, 2025
3a12caf
Update GeoIP DB
yourls-bot[bot] Dec 22, 2025
60a9110
Add a url index for faster SQL lookups with large tables (#4013)
matt-h Dec 22, 2025
2872f99
Replace confirmation dialog with modal dialog. (#3932)
infinitail Dec 24, 2025
f71fc69
Add PHP versions 8.5 and 8.6 (#4036)
ozh Dec 25, 2025
83bb5b2
Update spatie/array-to-xml (#4037)
ozh Dec 26, 2025
3f27382
Update GeoIP DB
yourls-bot[bot] Dec 29, 2025
c648b4e
Update GeoIP DB
yourls-bot[bot] Jan 5, 2026
1c571eb
Add context to `yourls_get_db()` (#4020)
ozh Jan 7, 2026
0d6d497
Update tests (#4042)
ozh Jan 7, 2026
da74bf3
Remove deprecated @tags (#4046)
ozh Jan 11, 2026
e7d9b13
Release v1.10.3 (#4034)
dgw Jan 11, 2026
5db53e5
1.10.4-dev
dgw Jan 11, 2026
b62ba8b
Update GeoIP DB
yourls-bot[bot] Jan 12, 2026
31be27c
Update GeoIP DB
yourls-bot[bot] Jan 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# End of line reformating
3daf6593d89c608a6660a6c0b872eeb2607548ba
# Convert all tabs to spaces
a4cb0561f627c918cf304663fd32fd2b192f1565

5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
# Generate pretty patches for PHP
*.php diff=php

# Do not generate diff for vendored files
includes/vendor/** -diff
includes/vendor/** linguist-generated

# Exclude certain files or directories when generating an archive
assets/less/ export-ignore
/.git* export-ignore
/*.md export-ignore
tests/ export-ignore
Expand Down
22 changes: 1 addition & 21 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ permissions:
jobs:
dependabot:
name: Dependabot
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Approve a PR
if: steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: YOURLS/.github/.github/workflows/auto-merge.yml@main
45 changes: 21 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@ name: CI

on:
push:
pull_request:
branches: [ master ]
pull_request:
workflow_dispatch:

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: PHP
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: ['8.0']
phpunit: ['latest']
php: ['8.1', '8.2', '8.3', '8.4', '8.5', '8.6']
include:
- php: '7.2'
phpunit: '8.5.13'
- php: '7.3'
phpunit: '8.5.13'
- php: '7.4'
phpunit: '8.5.13'
coverage: xdebug
flags: '--coverage-clover clover.xml'
# - php: '8.1'
# experimental: true
- php: '8.1'
coverage: xdebug
flags: '--coverage-clover clover.xml'

continue-on-error: ${{ matrix.php == '8.6' }}

services:
mysql:
Expand All @@ -36,17 +36,19 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: yourls_tests
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
MARIADB_MYSQL_LOCALHOST_USER: 1
MARIADB_MYSQL_LOCALHOST_GRANTS: USAGE
options: --health-cmd="healthcheck.sh --su-mysql --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v6

- name: Use PHP ${{ matrix.php }}
uses: shivammathur/setup-php@2.16.0
uses: shivammathur/setup-php@2.36.0
with:
php-version: ${{ matrix.php }}
extensions: mbstring, curl, zip, dom, simplexml, intl, pdo_mysql
tools: phpunit:${{ matrix.phpunit }}
tools: phpunit
coverage: ${{ matrix.coverage }}

# - name: Validate composer.json and composer.lock
Expand Down Expand Up @@ -77,11 +79,6 @@ jobs:
cp tests/data/config/yourls-tests-config-ci.php user/config.php

- name: Test
run: phpunit --configuration phpunit.xml.dist ${{ matrix.flags }}
run: phpunit --configuration phpunit.xml.dist --display-skipped --display-incomplete --display-deprecations --display-notices --display-warnings --display-errors ${{ matrix.flags }}
env:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}

- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover clover.xml"
57 changes: 0 additions & 57 deletions .github/workflows/release.yml

This file was deleted.

91 changes: 91 additions & 0 deletions .github/workflows/update-certificates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Update certificates

on:
# Run every Monday at 13:37
schedule:
- cron: '37 13 * * 1'
# And manually
workflow_dispatch:

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
certificate-check:
name: "Check for updated certificate bundle"
# Don't run the cron job on forks.
if: ${{ github.event_name != 'schedule' || github.repository == 'YOURLS/YOURLS' }}

runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Generate token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}

- name: Get GitHub App User ID
id: get-user-id
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Get current certificate bundle
working-directory: ./includes/vendor/rmccue/requests/certificates
run: |
curl --remote-name https://curl.se/ca/cacert.pem
curl --remote-name https://curl.se/ca/cacert.pem.sha256

- name: Verify the checksum of the downloaded bundle
working-directory: ./includes/vendor/rmccue/requests/certificates
run: sha256sum --check cacert.pem.sha256

- name: "Debug info: Show git status"
run: git status -vv --untracked=all

- name: "Get date"
id: get-date
run: echo "DATE=$(/bin/date -u "+%F")" >> $GITHUB_OUTPUT

- name: Create pull request
uses: peter-evans/create-pull-request@v8
id: pull-request
with:
token: ${{ steps.app-token.outputs.token }}
author: "${{ steps.app-token.outputs.app-slug }}[bot] <${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>"
base: master
branch: auto-update-cacert
delete-branch: true
commit-message: "Update certificates"
title: "Update certificates"
body: |
Updated certificates, last verified on ${{ steps.get-date.outputs.DATE }}.

Source: https://curl.se/docs/caextract.html
labels: |
dependencies

- name: Approve a PR
if: ${{ steps.pull-request.outputs.pull-request-url && steps.pull-request.outputs.pull-request-operation != 'none' }}
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ steps.pull-request.outputs.pull-request-url }}
GITHUB_TOKEN: ${{ github.token }}

- name: Enable Pull Request Automerge
if: ${{ steps.pull-request.outputs.pull-request-url && steps.pull-request.outputs.pull-request-operation != 'none' }}
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{ steps.pull-request.outputs.pull-request-url }}
GITHUB_TOKEN: ${{ github.token }}
92 changes: 92 additions & 0 deletions .github/workflows/update-geoip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Update GeoIP DB

on:
# Run every Monday at 13:37
schedule:
- cron: '37 13 * * 1'
# Run manually
workflow_dispatch:

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
update-geoip:
name: "Check for updated GeoIP DB"

runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Generate token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}

- name: Get GitHub App User ID
id: get-user-id
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Check if newer GeoIP DB
env:
MAXMIND_API_KEY: ${{ secrets.MAXMIND_API_KEY }}
run: |
URL="https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${MAXMIND_API_KEY}&suffix=tar.gz"
REMOTE_MODIFIED=$(curl --silent --head "$URL" | grep "last-modified" | sed 's/last-modified: //')
REMOTE_CTIME=$(date -d "$REMOTE_MODIFIED" +%s)
LOCAL_MODIFIED=$(curl -fsSL https://api.github.com/repos/YOURLS/YOURLS/commits?path=includes/geo/GeoLite2-Country.mmdb | \
jq -r '.[0]["commit"]["author"]["date"]')
LOCAL_CTIME=$(date -d "$LOCAL_MODIFIED" +%s)
echo "Remote: $REMOTE_CTIME ($(date -d @$REMOTE_CTIME))"
echo "Local: $LOCAL_CTIME ($(date -d @$LOCAL_CTIME))"
if [ $LOCAL_CTIME -lt $REMOTE_CTIME ] ; then curl -fsSL "$URL" | tar -zvx -C includes/geo/ --strip-components 1 -- ; fi

- name: "Debug info: Show git status"
run: git status -vv --untracked=all

- name: "Get date"
id: get-date
run: echo "DATE=$(/bin/date -u "+%F")" >> $GITHUB_OUTPUT

- name: Create pull request
uses: peter-evans/create-pull-request@v8
id: pull-request
with:
token: ${{ steps.app-token.outputs.token }}
author: "${{ steps.app-token.outputs.app-slug }}[bot] <${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>"
base: master
branch: auto-update-geoip
commit-message: "Update GeoIP DB"
title: "Update GeoIP DB"
body: |
Updated GeoIP database, last verified on ${{ steps.get-date.outputs.DATE }}.

Source: https://www.maxmind.com/en/account/login
labels: |
dependencies

- name: Approve a PR
if: ${{ steps.pull-request.outputs.pull-request-url && steps.pull-request.outputs.pull-request-operation != 'none' }}
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ steps.pull-request.outputs.pull-request-url }}
GITHUB_TOKEN: ${{ github.token }}

- name: Enable Pull Request Automerge
if: ${{ steps.pull-request.outputs.pull-request-url && steps.pull-request.outputs.pull-request-operation != 'none' }}
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{ steps.pull-request.outputs.pull-request-url }}
GITHUB_TOKEN: ${{ github.token }}
Loading