Skip to content

WIP: New event pull request metadata #5214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

6543
Copy link
Member

@6543 6543 commented May 28, 2025

start implementing metadata event

  • forges
    • gitea
      • parse
      • tests
    • forgejo
      • parse
      • tests
    • github
      • parse
      • tests
    • gitlab
      • parse
      • tests
    • bitbucket - not jet :/
  • extend metatata for event reason
    • impl.
    • tests
  • docs

Sponsored by Kithara Software GmbH

@6543 6543 added feature add new functionality highlight labels May 28, 2025
@6543
Copy link
Member Author

6543 commented May 28, 2025

as alternative to #5155 ... for now i try to implement the gitea part only and then we can decide if we wana have a meta event or single events for each ...

@6543 6543 mentioned this pull request May 28, 2025
@6543
Copy link
Member Author

6543 commented May 28, 2025

I will now stop working on it till it was decided to go with option B ... or if with A ... we can close this here

ref: #5155 (comment)

Asap B was elected I'll finish this work as high priority ...

| `CI_PIPELINE_NUMBER` | pipeline number | `8` |
| `CI_PIPELINE_PARENT` | number of parent pipeline | `0` |
| `CI_PIPELINE_EVENT` | pipeline event (see [`event`](../20-usage/20-workflow-syntax.md#event)) | `push`, `pull_request`, `pull_request_closed`, `pull_request_metadata`, `tag`, `release`, `manual`, `cron` |
| `CI_PIPELINE_EVENT_REASON` | exact reason `pull_request_metadata` event was send. it is forge instance specific and can change | `label_updated`, `milestoned`, `demilestoned`, `assigned`, `edited`, ... |
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the nice part with this is, that we can adjust per forge independently on what a forge support and if it changes it is as per documentation adjustable :)

in short terms we try to pass through what the forge reports in the webhook what event type it was ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... we might document this future in the forge specific doc parts ... 👁️

@anbraten anbraten marked this pull request as draft June 1, 2025 21:19
@woodpecker-bot
Copy link
Contributor

Deploying preview to https://woodpecker-ci-woodpecker-pr-5214.surge.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature add new functionality highlight
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants