mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-26 12:34:11 +02:00
Compare commits
4 commits
348fb6fb10
...
8b50ec0c40
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b50ec0c40 | ||
|
|
5a9f3c3bca | ||
|
|
a6fb075d92 | ||
|
|
064e8f1411 |
45
.github/workflows/main.yml
vendored
45
.github/workflows/main.yml
vendored
|
|
@ -243,6 +243,14 @@ jobs:
|
||||||
name: "🔎 Validate generated HTML"
|
name: "🔎 Validate generated HTML"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [calculate-baseurl, build-spec]
|
needs: [calculate-baseurl, build-spec]
|
||||||
|
# Run even if `generate-changelog` was skipped.
|
||||||
|
#
|
||||||
|
# `build-spec` has a dependency on `generate-changelog` to ensure order of execution
|
||||||
|
# and to access `needs.generate-changelog.result`. However, `generate-changelog` is
|
||||||
|
# skipped on tag builds; even a transient dependency on `generate-changelog` is then
|
||||||
|
# enough for this step to also be skipped by default on tag builds. Hence the need for
|
||||||
|
# this explicit `if`.
|
||||||
|
if: ${{ !failure() && !cancelled() }}
|
||||||
steps:
|
steps:
|
||||||
- name: "📥 Source checkout"
|
- name: "📥 Source checkout"
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -305,8 +313,45 @@ jobs:
|
||||||
|
|
||||||
- name: "📦 Tarball creation"
|
- name: "📦 Tarball creation"
|
||||||
run: tar -czf spec-historical.tar.gz spec
|
run: tar -czf spec-historical.tar.gz spec
|
||||||
|
|
||||||
- name: "📤 Artifact upload"
|
- name: "📤 Artifact upload"
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: spec-historical-artifact
|
name: spec-historical-artifact
|
||||||
path: spec-historical.tar.gz
|
path: spec-historical.tar.gz
|
||||||
|
|
||||||
|
# If we're building a tag, create a release and publish the artifacts
|
||||||
|
create_release:
|
||||||
|
name: "Create release"
|
||||||
|
if: ${{ !failure() && !cancelled() && startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
needs:
|
||||||
|
- build-spec
|
||||||
|
- build-historical-spec
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "📥 Check out changelogs"
|
||||||
|
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
content/changelog
|
||||||
|
- name: "📥 Download built spec"
|
||||||
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
||||||
|
with:
|
||||||
|
name: spec-artifact
|
||||||
|
- name: "📥 Download historical spec artifact"
|
||||||
|
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
|
||||||
|
with:
|
||||||
|
name: spec-historical-artifact
|
||||||
|
- name: "✨ Create draft release"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
# Remove front-matter from changelog
|
||||||
|
sed '1,/^---$/d' "content/changelog/${{ github.ref_name }}.md" > changelog.md
|
||||||
|
|
||||||
|
# Create a draft release, using the changelog as release notes, and attaching the spec artifacts.
|
||||||
|
gh release create -d -t "${{ github.ref_name }}" \
|
||||||
|
-F "changelog.md" \
|
||||||
|
"${{ github.ref_name }}" \
|
||||||
|
spec.tar.gz \
|
||||||
|
spec-historical.tar.gz
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
The optional `submit_url` response parameter of the `/requestToken` endpoints uses the same request
|
||||||
|
and response parameters and error codes as the Identity Service API's `POST /_matrix/identity/v2/validate/email/submitToken`,
|
||||||
|
as per [MSC4183](https://github.com/matrix-org/matrix-spec-proposals/pull/4183).
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
Clarify the error codes that can be returned with a 400 HTTP status code by the `POST /_matrix/identity/v2/validate/email/submitToken`
|
||||||
|
and `POST /_matrix/identity/v2/validate/msisdn/submitToken` endpoints, introducing the `M_TOKEN_INCORRECT`
|
||||||
|
error code, as per [MSC4183](https://github.com/matrix-org/matrix-spec-proposals/pull/4183).
|
||||||
1
changelogs/internal/newsfragments/2275.clarification
Normal file
1
changelogs/internal/newsfragments/2275.clarification
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Auto-create draft releases when building release tags.
|
||||||
|
|
@ -24,16 +24,22 @@ properties:
|
||||||
submit_url:
|
submit_url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
x-changedInMatrixVersion:
|
||||||
|
"1.18": |-
|
||||||
|
The URL has the same request and response parameters and error codes as
|
||||||
|
the Identity Service API's endpoint.
|
||||||
description: |-
|
description: |-
|
||||||
An optional field containing a URL where the client must submit the
|
An optional field containing a URL where the client must submit the
|
||||||
validation token to, with identical parameters to the Identity Service
|
validation token, with identical request and response parameters and error
|
||||||
API's `POST /validate/email/submitToken` endpoint (without the requirement
|
codes to the Identity Service API's
|
||||||
for an access token). The homeserver must send this token to the user (if
|
[`POST /_matrix/identity/v2/validate/email/submitToken`](/identity-service-api/#post_matrixidentityv2validateemailsubmittoken)
|
||||||
applicable), who should then be prompted to provide it to the client.
|
endpoint (without the requirement for an access token). The homeserver
|
||||||
|
must send this token to the user (if applicable), who should then be
|
||||||
|
prompted to provide it to the client.
|
||||||
|
|
||||||
If this field is not present, the client can assume that verification
|
If this field is not present, the client can assume that verification
|
||||||
will happen without the client's involvement provided the homeserver
|
will happen without the client's involvement provided the homeserver
|
||||||
advertises this specification version in the `/versions` response
|
advertises this specification version in the [`GET /versions`](/client-server-api/#get_matrixclientversions)
|
||||||
(ie: r0.5.0).
|
response (ie: r0.5.0).
|
||||||
example: "https://example.org/path/to/submitToken"
|
example: "https://example.org/path/to/submitToken"
|
||||||
required: ['sid']
|
required: ['sid']
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,25 @@ paths:
|
||||||
value: {
|
value: {
|
||||||
"success": true
|
"success": true
|
||||||
}
|
}
|
||||||
|
"400":
|
||||||
|
x-addedInMatrixVersion: "1.18"
|
||||||
|
description: |
|
||||||
|
An error occurred. Some possible errors are:
|
||||||
|
|
||||||
|
- `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
|
||||||
|
incorrect.
|
||||||
|
- `M_INVALID_PARAM`: One of the supplied parameters is not valid.
|
||||||
|
- `M_SESSION_EXPIRED`: The validation session in question has expired.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: ../client-server/definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
response:
|
||||||
|
value: {
|
||||||
|
"errcode": "M_TOKEN_INCORRECT",
|
||||||
|
"error": "The token is incorrect"
|
||||||
|
}
|
||||||
"403":
|
"403":
|
||||||
description: |
|
description: |
|
||||||
The user must do something in order to use this endpoint. One example
|
The user must do something in order to use this endpoint. One example
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,25 @@ paths:
|
||||||
value: {
|
value: {
|
||||||
"success": true
|
"success": true
|
||||||
}
|
}
|
||||||
|
"400":
|
||||||
|
x-addedInMatrixVersion: "1.18"
|
||||||
|
description: |
|
||||||
|
An error occurred. Some possible errors are:
|
||||||
|
|
||||||
|
- `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
|
||||||
|
incorrect.
|
||||||
|
- `M_INVALID_PARAM`: One of the supplied parameters is not valid.
|
||||||
|
- `M_SESSION_EXPIRED`: The validation session in question has expired.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: ../client-server/definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
response:
|
||||||
|
value: {
|
||||||
|
"errcode": "M_TOKEN_INCORRECT",
|
||||||
|
"error": "The token is incorrect"
|
||||||
|
}
|
||||||
"403":
|
"403":
|
||||||
description: |
|
description: |
|
||||||
The user must do something in order to use this endpoint. One example
|
The user must do something in order to use this endpoint. One example
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue