Skip to content

feat(collectives-publish) static site update endpoint - #2830

Draft
kjoscha wants to merge 18 commits into
feature/collectives-publishfrom
publish-feature/static-site-update-endpoint
Draft

kjoscha wants to merge 18 commits into
feature/collectives-publishfrom
publish-feature/static-site-update-endpoint

Conversation

@kjoscha

@kjoscha kjoscha commented Sep 30, 2026 •

Copy link
Copy Markdown

📝 Summary

The external build service of the publish feature sends back a success (or error) message to Collectives after a build ran or failed. The payload is expected as the following:

{ "status": "published",
  "data": {
    "publish_url": "https://publish.schnubbel.com/publish/<static_site_id>"
  }
}

or in case of failure

{ "status": "failed",
  "data": {
    "error_message": "<some error message>"
  }
}

🏁 Checklist

  • API endpoint exist and is tested

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

Testing manually

You can tiun a manually update from the terminal via curl like this (replace the static site id):

curl -X PATCH "http://localhost/ocs/v2.php/apps/collectives/api/v1.0/p/static-sites/01a1112f-7cb5-747a-be61-07c74093449a" \
  -H "Host: nextcloud.local" \
  -H "OCS-APIREQUEST: true" \
  -H "Content-Type: application/json" \
  -d '{"status": "published", "data": {"publish_url": "https://example.com/site"}}'

Melpo and others added 14 commits September 22, 2026 14:39
Signed-off-by: kayoshi <jo5cha@web.de>
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: kayoshi <jo5cha@web.de>
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: kayoshi <jo5cha@web.de>
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
…json

Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
@kjoscha kjoscha changed the title Publish feature/static site update endpoint feat(collectives-publish) static site update endpoint Sep 30, 2026
Melpo and others added 3 commits September 30, 2026 10:51
…h restriction

Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Melpo <melpomene@posteo.net>
Assisted-by: ClaudeCode:claude-sonnet-5
…and-start

feat(collectives-publish) select pages and start publish
@kjoscha
kjoscha force-pushed the publish-feature/static-site-update-endpoint branch 2 times, most recently from 25e91c6 to ce0e101 Compare October 6, 2026 11:45
    Signed-off-by: kayoshi <jo5cha@web.de>
    Assisted-by: ClaudeCode:claude-sonnet-5
@kjoscha
kjoscha force-pushed the publish-feature/static-site-update-endpoint branch from ce0e101 to 7ec2f7d Compare October 6, 2026 11:57
@code4candy
code4candy force-pushed the feature/collectives-publish branch from 9ca1098 to 37ee4ef Compare October 7, 2026 21:03
Comment thread openapi.json
"properties": {
"publish_url": {
"type": "string",
"description": "URL the static site was published to"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description seams to be added manually - this file gets created automatically by executing:
composer run openapi
--> related test in CI pipeline also failed

@code4candy code4candy Oct 7, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz fix ci tests:

  • Lint php-cs / php-cs
  • OpenAPI / openapi (see above)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit-Message:
Betreff und Trailer sind mit 4 Leerzeichen eingerückt ( feat(publish): …). Damit erkennen commitlint und Changelog-Tools den Conventional-Commit-Typ nicht, und die Trailer werden möglicherweise nicht als Trailer erkannt

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants