Skip to content

Add milestone to metadata#5174

Merged
6543 merged 18 commits into
woodpecker-ci:mainfrom
6543-forks:add-milestone-to-metadata
Sep 1, 2025
Merged

Add milestone to metadata#5174
6543 merged 18 commits into
woodpecker-ci:mainfrom
6543-forks:add-milestone-to-metadata

Conversation

@6543

@6543 6543 commented May 13, 2025

Copy link
Copy Markdown
Member

closes #3285


Sponsored by Kithara Software GmbH

Comment thread server/forge/forgejo/helper.go Outdated
Comment thread server/forge/gitea/helper.go Outdated
@xoxys xoxys added feature add new functionality server labels May 14, 2025
@woodpecker-bot

woodpecker-bot commented May 15, 2025

Copy link
Copy Markdown
Contributor

Surge PR preview deployment was removed

@codecov

codecov Bot commented May 15, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 65.11628% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.44%. Comparing base (2349ee1) to head (d26c092).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
server/forge/gitlab/gitlab.go 20.00% 7 Missing and 1 partial ⚠️
server/forge/gitlab/convert.go 50.00% 4 Missing ⚠️
pipeline/frontend/metadata/environment.go 0.00% 1 Missing ⚠️
server/forge/forgejo/helper.go 87.50% 1 Missing ⚠️
server/forge/gitea/helper.go 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5174      +/-   ##
==========================================
+ Coverage   26.42%   26.44%   +0.02%     
==========================================
  Files         403      403              
  Lines       28789    28811      +22     
==========================================
+ Hits         7607     7620      +13     
- Misses      20487    20496       +9     
  Partials      695      695              

☔ 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.

@6543

6543 commented May 15, 2025

Copy link
Copy Markdown
Member Author

image

Comment thread server/forge/gitlab/convert.go Outdated
Comment thread server/forge/gitlab/gitlab.go Outdated
Comment thread server/forge/github/parse.go
@6543

6543 commented May 19, 2025

Copy link
Copy Markdown
Member Author

done

@qwerty287

Copy link
Copy Markdown
Contributor

I think it would be nice to get #4626 in first because it simplifies the structure of the pipeline model a lot.

@6543

6543 commented May 27, 2025

Copy link
Copy Markdown
Member Author

I think it would be nice to get #4626 in first because it simplifies the structure of the pipeline model a lot.

I personally thing that this pr should be merged and I can also resolve the conflicts in #4626 if you want ... because it does not look like the dessision of releaseing a new majour version is not started at all ... else of course it would make sense to wait ?

@xoxys

xoxys commented May 27, 2025

Copy link
Copy Markdown
Member

Well... please dont rush on this one as well just because you are interested in this particular one.

@6543

6543 commented May 27, 2025

Copy link
Copy Markdown
Member Author

fair point ;) - as per disclaimer that one is for my dayjob and I can atm run this patch by compiling my version

@6543

6543 commented May 27, 2025

Copy link
Copy Markdown
Member Author

one thing to clarify would be if the milestone is ok to be exposted as env var at some point or not.
in that case it would be future prove for me to do an API call instead etc...

@xoxys

xoxys commented Jul 23, 2025

Copy link
Copy Markdown
Member

Isnt this PR already exposing CI_COMMIT_PULL_REQUEST_MILESTONE as env var or what do you mean?

@6543

6543 commented Jul 23, 2025

Copy link
Copy Markdown
Member Author

It's all fine with this PR... yes, it does exactly as mentioned.

The workaround if this won't land is to let tools who need it query the milestone on their own, which makes it quite complicated... that's all what I meant.

@xoxys

xoxys commented Jul 23, 2025

Copy link
Copy Markdown
Member

Got it. Fine for me to expose this env var in general.

@qwerty287

Copy link
Copy Markdown
Contributor

I'd still prefer getting #4626 merged first, but as this will likely take more time it's probably better to start here.

Just the usual question: What about bitbucket? Does it support milestones?

For datacenter cc @langecode

@6543

6543 commented Aug 29, 2025

Copy link
Copy Markdown
Member Author

sadly i dont think so as bb forwards all tiket/issue like handling into a other product atlasian jira? witch is independent from bb managed and you just track things there and ref only in bb ...

... correct me if i'm wrong - dont do dev work with bb myselfe

@langecode

langecode commented Aug 29, 2025 via email

Copy link
Copy Markdown
Contributor

@6543 6543 merged commit c5a5bbe into woodpecker-ci:main Sep 1, 2025
9 checks passed
@6543 6543 deleted the add-milestone-to-metadata branch September 1, 2025 14:13
@woodpecker-bot woodpecker-bot mentioned this pull request Sep 1, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature add new functionality server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buildin Environment variable which hold the milestone

7 participants