Skip to content

Commit

Permalink
Fix autofixes for python and ruby
Browse files Browse the repository at this point in the history
Since the end of life version data format changed (see endoflife-date/release-data#51), we need to adapt for our autofix to keep working.
  • Loading branch information
filiptronicek committed Feb 11, 2024
1 parent a8edeaa commit 8cf6e03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .autofix/fixers/update-lang-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports.register = async (fixers) => {
const response = await fetch("https://raw.githubusercontent.com/endoflife-date/release-data/main/releases/python.json");
const data = await response.json();

const versions = sortVersions(Object.keys(data));
const versions = sortVersions(Object.keys(data.versions));

const patchVersionReplacements = {};
for (const version of versions) {
Expand Down
2 changes: 1 addition & 1 deletion .autofix/fixers/update-lang-ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.register = async (fixers) => {
const response = await fetch("https://raw.githubusercontent.com/endoflife-date/release-data/main/releases/ruby.json");
const data = await response.json();

const versions = Object.keys(data);
const versions = Object.keys(data.versions);

const patchVersionReplacements = {};
for (const version of versions) {
Expand Down

0 comments on commit 8cf6e03

Please sign in to comment.