Skip to content

Show Woodpecker version on pipeline details#6316

Merged
6543 merged 12 commits into
woodpecker-ci:mainfrom
Sim-hu:feat/pipeline-version
Mar 29, 2026
Merged

Show Woodpecker version on pipeline details#6316
6543 merged 12 commits into
woodpecker-ci:mainfrom
Sim-hu:feat/pipeline-version

Conversation

@Sim-hu
Copy link
Copy Markdown
Contributor

@Sim-hu Sim-hu commented Mar 24, 2026

Stores the server version at pipeline creation time so that historical pipelines show the version they were actually run on, rather than the current server version.

Changes:

  • Add version field to the Pipeline model (xorm auto-syncs the new column)
  • Set version in both Create() and Restart() pipeline flows
  • Display the version in the debug Tab
  • Add TypeScript type and i18n string
image

Closes #4204

Store the server version at pipeline creation time so that historical
pipelines show the version they were actually run on. The version is
displayed in the pipeline header next to duration and created time.

Closes woodpecker-ci#4204
@woodpecker-bot
Copy link
Copy Markdown
Contributor

woodpecker-bot commented Mar 24, 2026

Account with automation patterns detected 🤖

@Sim-hu

We analyzed recent public events and found several patterns that are frequently associated with automated scripts or AI agents.

Human? 49% likely to be a human.

Signal Points Detail
Many recent forks +51 10 repos forked within 24 hours

Have thoughts about this account? Let the community know.

🕵🏽 Analyzed 189 public events via AgentScan

Comment thread web/src/lib/api/types/pipeline.ts Outdated
@6543 6543 added server enhancement improve existing features labels Mar 24, 2026
Sim-hu and others added 2 commits March 25, 2026 13:32
Show empty string for older pipelines without version info
instead of omitting the field entirely.
@qwerty287
Copy link
Copy Markdown
Contributor

Please run make generate-openapi: https://ci.woodpecker-ci.org/repos/3780/pipeline/32731/32

Comment thread web/src/views/repo/pipeline/PipelineWrapper.vue Outdated
Comment thread web/src/views/repo/pipeline/PipelineWrapper.vue Outdated
Comment thread web/src/views/repo/pipeline/PipelineWrapper.vue Outdated
@qwerty287
Copy link
Copy Markdown
Contributor

@Sim-hu could you post a screenshot of this new feature?

@Sim-hu
Copy link
Copy Markdown
Contributor Author

Sim-hu commented Mar 25, 2026

image

@qwerty287
Copy link
Copy Markdown
Contributor

Thanks. Please move that info to the debug tab.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 33.31%. Comparing base (26a01ec) to head (33265d5).
⚠️ Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
server/pipeline/create.go 0.00% 1 Missing ⚠️
server/pipeline/restart.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6316      +/-   ##
==========================================
- Coverage   33.32%   33.31%   -0.01%     
==========================================
  Files         420      420              
  Lines       28333    28335       +2     
==========================================
  Hits         9441     9441              
- Misses      18014    18016       +2     
  Partials      878      878              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@qwerty287
Copy link
Copy Markdown
Contributor

qwerty287 commented Mar 26, 2026

Thanks, wouldn't put it into it's own Panel. We usually only have one panel.

With a proper header ("Woodpecker version") and then just the version without translated string below is what I'd do.

@6543
Copy link
Copy Markdown
Member

6543 commented Mar 26, 2026

old pipelines:
image
new pipelines:
image

PS: screenshot updates are always welcome on UI changes ;)

Comment thread web/src/assets/locales/en.json Outdated
Address review feedback: remove separate Panel for version info,
integrate into existing debug Panel using InputField with header.
Use i18n-t component to bold the version string.
@qwerty287
Copy link
Copy Markdown
Contributor

qwerty287 commented Mar 26, 2026

It now looks like this.
grafik

Some more padding to the top would be good.

And not sure, but do others think the size is fine? Because in my opinion the text is a bit too small.

What do you think about something like this? With a code block.
grafik

Corresponding code would be

      <InputField v-if="pipeline.version" :label="$t('repo.pipeline.version_header')" class="pt-4">
        <p class="text-wp-text-alt-100 mb-2 text-sm">{{ $t('repo.pipeline.version') }}</p>
        <pre class="code-box">{{ pipeline.version }}</pre>
      </InputField>

and you have to change the translation string.

Address review feedback: show version in a code-box for easy copying,
add description text, and add top padding to the InputField.
Comment thread web/src/views/repo/pipeline/PipelineDebug.vue Outdated
Comment thread web/src/assets/locales/en.json Outdated
@6543
Copy link
Copy Markdown
Member

6543 commented Mar 29, 2026

image

@6543 6543 merged commit 4b4ef5e into woodpecker-ci:main Mar 29, 2026
8 of 9 checks passed
@6543
Copy link
Copy Markdown
Member

6543 commented Mar 29, 2026

thanks 🚀

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

Labels

enhancement improve existing features server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show WP version pipeline was run on

4 participants