Commit 6d78c3e7 authored by Thomas Boni's avatar Thomas Boni
Browse files

Merge branch '82-fix-version-order' into 'latest'

Resolve "fix version order"

Closes #82

See merge request go2scale/hub!39
parents 9a9edb76 63f087e3
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -59,15 +59,14 @@ def get_description(job_path):
        return readme_file.read()

def get_changelogs(job_path, job_name):

    versions = listdir(job_path + "/" + JOB_CHANGELOG_DIR)
    versions.reverse()
    latest = {
      "version": listdir(job_path + "/" + JOB_CHANGELOG_DIR)[0][0:-3],
      "version": versions[0][0:-3],
      "url": GO2SCALE_URL + job_name + ".yml"
    }

    changelogs = []

    for version in listdir(job_path + "/" + JOB_CHANGELOG_DIR):
    for version in versions:
        with open(job_path + "/" + JOB_CHANGELOG_DIR + "/" + version) as changelog_file:
            changelogs.append({
                "version": version[0:-3],

jobs/coala/job.yml

deleted100644 → 0
+0 −6
Original line number Diff line number Diff line
name: coala
description: A ready-to-use coala job to fix your source code
default_stage: static_tests
icon: 🐨
maintainer: thomasboni
license: MIT
 No newline at end of file