Skip to content

Commit e56ae80

Browse files
Merge pull request #202 from alma/release/v2.6.0
Release v2.6.0
2 parents 353fade + 98d8f98 commit e56ae80

22 files changed

Lines changed: 526 additions & 33 deletions

.github/workflows/aqua.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ jobs:
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
with:
2222
show-progress: false
2323

2424
- name: Authenticate to Google Cloud
2525
id: gcloud-auth
26-
uses: google-github-actions/auth@v2
26+
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
2727
with:
2828
token_format: access_token
2929
workload_identity_provider: projects/699052769907/locations/global/workloadIdentityPools/github-identity-pool-shared/providers/github-identity-provider-shared # yamllint disable-line
3030
service_account: github-gar-alma-php-client@lyrical-carver-335213.iam.gserviceaccount.com
3131

3232
- name: Authenticate to Artifact Registry
33-
uses: docker/login-action@v3
33+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
3434
with:
3535
registry: europe-docker.pkg.dev
3636
username: oauth2accesstoken

.github/workflows/backport-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919

20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
with:
2222
ref: develop
2323

@@ -28,7 +28,7 @@ jobs:
2828
git reset --hard main
2929
3030
- name: Create Pull Request
31-
uses: peter-evans/create-pull-request@v7
31+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
3232
with:
3333
commit-message: 'chore: backport main to develop'
3434
title: Backport main to develop

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3939
with:
4040
persist-credentials: false
4141

4242
- name: Setup PHP
43-
uses: shivammathur/setup-php@v2
43+
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # 2.35.4
4444
with:
4545
php-version: ${{ matrix.php }}
4646
tools: composer:v2

.github/workflows/hotfix-pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ jobs:
1515

1616
steps:
1717

18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919
with:
2020
ref: main
2121

2222
- name: Release drafter
23-
uses: release-drafter/release-drafter@v6
23+
uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
2424
id: release-drafter
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727

2828
- name: Update release draft
29-
uses: actions/github-script@v7
29+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
3030
with:
3131
script: |
3232
const { owner, repo } = context.repo;
@@ -39,7 +39,7 @@ jobs:
3939
});
4040
4141
- name: Update CHANGELOG.md file
42-
uses: stefanzweifel/changelog-updater-action@v1
42+
uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1.12.0
4343
with:
4444
latest-version: ${{ steps.release-drafter.outputs.tag_name }}
4545
release-notes: "### 🐛 Bug Fixes\n ${{ inputs.changelog-message }}\n"
@@ -49,7 +49,7 @@ jobs:
4949
./scripts/update-files-with-release-version.sh ${{ steps.release-drafter.outputs.tag_name }}
5050
5151
- name: Create Pull Request
52-
uses: peter-evans/create-pull-request@v7
52+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
5353
with:
5454
commit-message: 'chore: update version'
5555
title: Release ${{ steps.release-drafter.outputs.tag_name }}

.github/workflows/pr-labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111

1212
runs-on: ubuntu-24.04
1313
steps:
14-
- uses: TimonVS/pr-labeler-action@v5
14+
- uses: TimonVS/pr-labeler-action@f9c084306ce8b3f488a8f3ee1ccedc6da131d1af # v5
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717

18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919

2020
- name: Install taskfile.dev
2121
uses: arduino/setup-task@v2
@@ -85,7 +85,7 @@ jobs:
8585
https://uploads.github.com/repos/${{ github.repository }}/releases/${{ steps.fetch-release-draft.outputs.id }}/assets?name=alma-php-client.zip
8686
8787
- name: Publish Github release
88-
uses: actions/github-script@v7
88+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
8989
with:
9090
# target_commitish is set to refs/heads/develop by release-drafter as we need to retrieve pull requests merged into develop
9191
# We need to override it to refs/heads/main to point to the last commit of main branch instead of develop branch
@@ -102,18 +102,18 @@ jobs:
102102
});
103103
104104
- name: Format release notes for Slack
105-
uses: LoveToKnow/slackify-markdown-action@v1.1.1
105+
uses: LoveToKnow/slackify-markdown-action@698a1d4d0ff1794152a93c03ee8ca5e03a310d4e # v1.1.1
106106
id: slack-markdown-release-notes
107107
with:
108108
text: |
109109
New release of ${{ github.repository }}, **[${{ steps.fetch-release-draft.outputs.name }}](https://github.com/${{ github.repository }}/releases/tag/${{ steps.fetch-release-draft.outputs.name }})**:
110110
111111
${{ steps.fetch-release-draft.outputs.body }}
112112
113-
cc <@france.berut> <@khadija.cherif>
113+
cc <@khadija.cherif>
114114
115115
- name: Send changelog to Slack
116-
uses: slackapi/slack-github-action@v2.0.0
116+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
117117
with:
118118
method: chat.postMessage
119119
token: ${{ secrets.SLACK_RELEASE_CHANGELOG_BOT_TOKEN }}

.github/workflows/release-pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212

13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1414
with:
1515
ref: main
1616
persist-credentials: false
@@ -24,7 +24,7 @@ jobs:
2424
git reset --hard develop
2525
2626
- name: Create release draft
27-
uses: release-drafter/release-drafter@v6
27+
uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
2828
id: release-drafter
2929
with:
3030
# release-drafter should be based on develop to get the correct content as pull requests are merged into develop
@@ -35,7 +35,7 @@ jobs:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636

3737
- name: Update CHANGELOG.md
38-
uses: stefanzweifel/changelog-updater-action@v1
38+
uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1.12.0
3939
with:
4040
latest-version: ${{ steps.release-drafter.outputs.tag_name }}
4141
release-notes: ${{ steps.release-drafter.outputs.body }}
@@ -47,15 +47,15 @@ jobs:
4747
# If using default Github token, the created pull request won't trigger workflows with pull_request event
4848
# See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
4949
- name: Generate Github token to create PR
50-
uses: actions/create-github-app-token@v1
50+
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
5151
id: github-token
5252
with:
5353
app-id: ${{ secrets.ALMA_CREATE_TEAM_PRS_APP_ID }}
5454
private-key: ${{ secrets.ALMA_CREATE_TEAM_PRS_APP_PEM }}
5555
repositories: alma-php-client
5656

5757
- name: Create Pull Request
58-
uses: peter-evans/create-pull-request@v7
58+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
5959
with:
6060
token: ${{ steps.github-token.outputs.token }}
6161
commit-message: 'chore: update version'

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# CHANGELOG
22

3+
## v2.6.0 - 2025-09-18
4+
5+
### Changes
6+
7+
### 🚀 New Features
8+
9+
- Add payment methods list in cms_feature (#200)
10+
- Add DataExports endpoints (#137)
11+
12+
#### Contributors
13+
14+
@Benjamin-Freoua-Alma, @Francois-Gomis, @alma-renovate-bot[bot], @carine-bonnafous, @joyet-simon, @martinfobian, @remi-zuffinetti, @webaaz, [alma-renovate-bot[bot]](https://github.com/apps/alma-renovate-bot) and [github-actions[bot]](https://github.com/apps/github-actions)
15+
316
## v2.5.0 - 2025-01-30
417

518
### Changes
@@ -220,6 +233,7 @@
220233

221234

222235

236+
223237
```
224238
* Add fields and docs to the Payment entity
225239
* Add a Refund entity and extract refunds data within the Payment entity constructor

Taskfile.php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 3
22

33
vars:
44
# Required variables
5-
PHP_VERSION: '{{ .PHP_VERSION }}'
5+
PHP_VERSION: '{{ .PHP_VERSION}}'
66
PHPUNIT_VERSION: '{{ .PHPUNIT_VERSION }}'
77
# Defaulted variable
88
COMPOSER_VERSION: '{{ .COMPOSER_VERSION | default "2" }}'

Taskfile.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,31 +87,43 @@ tasks:
8787
cmds:
8888
- pre-commit install --hook-type pre-commit --hook-type commit-msg
8989

90+
lint:build:
91+
desc: Build lint container (php-cs-fixer)
92+
cmds:
93+
- docker build -t lint:ps -f lint.Dockerfile .
94+
9095
lint:
9196
desc: Lint the php code
9297
deps:
93-
- 8.3:docker:build
98+
- lint:build
9499
cmds:
95100
- docker compose run --rm -T php composer exec phpcs -- src/
96101

97102
lint:fix:
98103
desc: Lint fix the php code
99104
deps:
100-
- 8.3:docker:build
105+
- lint:build
101106
cmds:
102107
- docker compose run --rm -T php composer exec phpcbf -- src/ tests/
103108

109+
php-compatibility:build:
110+
desc: Build php-compatibility container (phpcs)
111+
cmds:
112+
- docker build -t php-compatibility:ps -f php-compatibility.Dockerfile .
113+
104114
dist:
105115
desc: Build zip dist package using Docker
106116
deps:
107-
- 8.3:docker:build
117+
- php-compatibility:build
108118
cmds:
109119
- docker compose run --rm php ./scripts/build.sh
110120

111121
php-compatibility:
112122
desc: Check compatibility code
123+
deps:
124+
- php-compatibility:build
113125
cmds:
114-
- docker compose run --rm -T php composer exec phpcs -- -p src --standard=PHPCompatibility -s --runtime-set testVersion 5.6-8.1 --ignore=\*/vendor/\*
126+
- docker compose run --rm -T php composer exec phpcs -- -p src --standard=PHPCompatibility -s --runtime-set testVersion 5.6-8.3 --ignore=\*/vendor/\*
115127

116128
gh-cli:
117129
internal: true

0 commit comments

Comments
 (0)