renovate icon indicating copy to clipboard operation
renovate copied to clipboard

Source changelogs from composer type:wordpress-plugin / wpackagist

Open rarkins opened this issue 1 year ago • 1 comments

Discussed in https://github.com/renovatebot/renovate/discussions/24072

Originally posted by chrillep August 24, 2023

Tell us more.

id love if renovate could source changelogs for packages installed from https://wpackagist.org/

partial composer.lock

{
  "name": "wpackagist-plugin/wordpress-seo",
  "version": "20.6",
  "source": {
      "type": "svn",
      "url": "https://plugins.svn.wordpress.org/wordpress-seo/",
      "reference": "tags/20.6"
  },
  "dist": {
      "type": "zip",
      "url": "https://downloads.wordpress.org/plugin/wordpress-seo.20.6.zip"
  },
  "require": {
      "composer/installers": "^1.0 || ^2.0"
  },
  "type": "wordpress-plugin",
  "homepage": "https://wordpress.org/plugins/wordpress-seo/"
},

example API urls

  • https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&slug=wordpress-seo
  • https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&slug=contact-form-7
  • https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&slug=redirection
fetch("https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&slug=redirection")
  .then(response => response.json())
  .then(data => console.log(data.sections.changelog))
  .catch(error => console.log(error))

example SVN urls release notes are in blocks in readme.txt per tag/version https://plugins.svn.wordpress.org/{pluginName}/tags/{tag}/readme.txt

  • https://plugins.svn.wordpress.org/wordpress-seo/tags/20.6/readme.txt
  • https://plugins.svn.wordpress.org/contact-form-7/tags/5.8/readme.txt
  • http://plugins.svn.wordpress.org/redirection/tags/5.3.9/readme.txt

refs

  • https://github.com/roots/wordpress/issues/47
  • https://dd32.id.au/projects/wordpressorg-plugin-information-api-docs/
  • https://github.com/outlandishideas/wpackagist/issues/430

rarkins avatar Aug 27 '23 06:08 rarkins