Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
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
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
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

23 changes: 11 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.0', '8.1', '8.2']
phpunit: ['9']
php: ['8.1', '8.2', '8.3', '8.4']
include:
- php: '7.4'
phpunit: '8'
coverage: xdebug
flags: '--coverage-clover clover.xml'
- php: '8.1'
coverage: xdebug
flags: '--coverage-clover clover.xml'

services:
mysql:
Expand All @@ -30,17 +28,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@v3
- uses: actions/checkout@v5

- name: Use PHP ${{ matrix.php }}
uses: shivammathur/setup-php@2.24.0
uses: shivammathur/setup-php@2.35.5
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 @@ -71,7 +71,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 --testdox --display-deprecations --display-notices --display-warnings --display-errors ${{ matrix.flags }}
env:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}

42 changes: 36 additions & 6 deletions .github/workflows/update-certificates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
certificate-check:
name: "Check for updated certificate bundle"
Expand All @@ -22,7 +26,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v5

- 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
Expand All @@ -42,8 +59,11 @@ jobs:
run: echo "DATE=$(/bin/date -u "+%F")" >> $GITHUB_OUTPUT

- name: Create pull request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v7
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
Expand All @@ -55,7 +75,17 @@ jobs:
Source: https://curl.se/docs/caextract.html
labels: |
dependencies
reviewers: |
ozh
LeoColomb
dgw

- 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 }}
44 changes: 35 additions & 9 deletions .github/workflows/update-geoip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,31 @@ concurrency:
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@v3
uses: actions/checkout@v5

- name: Generate token
uses: tibdex/github-app-token@v1
id: generate-token
uses: actions/create-github-app-token@v2
id: app-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
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:
Expand All @@ -36,12 +46,12 @@ jobs:
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 -sL https://api.github.com/repos/YOURLS/YOURLS/commits?path=includes/geo/GeoLite2-Country.mmdb | \
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 -s "$URL" | tar -zvx -C includes/geo/ --strip-components 1 -- ; fi
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
Expand All @@ -51,9 +61,11 @@ jobs:
run: echo "DATE=$(/bin/date -u "+%F")" >> $GITHUB_OUTPUT

- name: Create pull request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v7
id: pull-request
with:
token: ${{ steps.generate-token.outputs.token }}
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"
Expand All @@ -64,3 +76,17 @@ jobs:
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 }}
115 changes: 115 additions & 0 deletions .github/workflows/update-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Update translations

on:
push:
tags:
- '*'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
translations-check:
name: Check for updated translations
if: ${{ github.event_name != 'schedule' || github.repository == 'YOURLS/YOURLS' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Install GNU gettext
run: sudo apt-get install gettext

- name: Get version
id: get-version
run: echo "yourls-version=$(php -r 'require "includes/version.php"; echo YOURLS_VERSION;')" >> $GITHUB_OUTPUT

- name: Extract translations
env:
YOURLS_VERSION: ${{ steps.get-version.outputs.yourls-version }}
run: |
find . -name "*.php" ! -path "./user/*" ! -path "./tests/*" ! -path "./includes/vendor/*" \
| xargs xgettext \
--output=YOURLS.pot --package-name=YOURLS --package-version=$YOURLS_VERSION --foreign-user \
--add-location --language=PHP --from-code=UTF-8 --sort-by-file \
--keyword=yourls__ \
--keyword=yourls_e \
--keyword=yourls_s \
--keyword=yourls_se \
--keyword=yourls_esc_attr__ \
--keyword=yourls_esc_html__ \
--keyword=yourls_x \
--keyword=yourls_ex \
--keyword=yourls_esc_attr_x \
--keyword=yourls_esc_html_x \
--keyword=yourls_n:1,2 \
--keyword=yourls_nx:1,2 \
--keyword=yourls_n_noop:1,2 \
--keyword=yourls_nx_noop:1,2

- uses: actions/upload-artifact@v4
with:
name: YOURLS-pot
path: YOURLS.pot

translations-submit:
name: Submit updated translations
if: ${{ github.event_name == 'workflow_dispatch' && github.repository == 'YOURLS/YOURLS' }}
runs-on: ubuntu-latest
needs:
- translations-check
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
repository: YOURLS/YOURLS.pot

- uses: actions/download-artifact@v5
with:
name: YOURLS-pot

- 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 }}
owner: ${{ github.repository_owner }}

- 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: 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@v7
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: main
branch: auto-update-translations
delete-branch: true
commit-message: "Update translations"
title: "Update translations"
body: |
Updated translations, last verified on ${{ steps.get-date.outputs.DATE }}.
labels: |
dependencies

- 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: ${{ steps.app-token.outputs.token }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Thumbs.db
Desktop.ini
# Mac crap
.DS_Store
# NetBeans files
# IDE files
/nbproject/
.idea
.vs
.vscode
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@ YOURLS Changelog
_This file lists the main changes through all versions of YOURLS.
For a much more detailed list, simply refer to [commit messages](https://github.com/YOURLS/YOURLS/commits/master)._

1.10.2
---
- fixed: `admin/tools.php` now uses `yourls_get_nonce_life()` (#3906)
- fixed: "Display 1 to 0 of 0 URLs" on admin list page (#3910)
- fixed: replace deprecated `get_all_options` filter with an action (#3683)
- fixed: defer loading text domain after plugins (#3679)
- removed: Gandi references (#3929)

1.10.1
---
- fixed: sandbox exceptions when disabling plugins (#3893)
- fixed: stats date calculation are now correct (#3895)
- fixed: unexpected warning raised on login page
- removed: unsupported installation cases with Composer

1.10.0
---
- added: Support PHP 8.3 & 8.4
- removed: Support for PHP prior to 8.1 which is now minimal requirement
- changed: Ensure all `statusCode`/`errorCode` API values are strings (#3756)
- fixed: Results with 0 clicks on search (#3589)
- fixed: Upgrade Aura.SQL to fix PHP 8.4 compatibility (#3852)
- fixed: login page accessibility (#3660)
- fixed: MySQL 8+ compatibility (#3828)
- changed: Upgrade dependencies
- changed: Update GeoIP DB
- changed: Update certificates

1.9.2
---
- added: Support PHP 8.2 (#3474)
Expand Down
Loading
Loading