Skip to content
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

ci(Mergify): configuration update #221

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

reisene
Copy link
Owner

@reisene reisene commented Jan 15, 2025

reisene Powered by Pull Request Badge

This change has been made by @reisene from the Mergify workflow automation editor.

Podsumowanie przez Sourcery

Usunięcie reguły priorytetu threattrix i dodanie etykiety dla PR-ów ze stosu Mergify.

CI:

  • Oznaczanie pull requestów, które są częścią stosu Mergify etykietą.
  • Usunięcie reguły wysokiego priorytetu scalania threattrix.
Original summary in English

Summary by Sourcery

Remove the threattrix priority rule and add a label for Mergify stack PRs.

CI:

  • Label pull requests that are part of a Mergify stack.
  • Remove the threattrix high priority merge rule.

Signed-off-by: DraugSköll <kprinny@gmail.com>
Copy link

vercel bot commented Jan 15, 2025

Deployment failed with the following error:

Resource is limited - try again in 11 seconds (more than 100, code: "api-deployments-free-per-day").

Copy link

vercel bot commented Jan 15, 2025

Deployment failed with the following error:

Resource is limited - try again in 10 seconds (more than 100, code: "api-deployments-free-per-day").

Copy link

Review changes with  SemanticDiff

Copy link
Contributor

aviator-app bot commented Jan 15, 2025

Aviator Changeset actions:

Copy link
Contributor

aviator-app bot commented Jan 15, 2025

PR has been added to the changeset: 2: https://app.aviator.co/changeset/2

Copy link
Contributor

aviator-app bot commented Jan 15, 2025

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged manually (without Aviator). Merging manually can negatively impact the performance of the queue. Consider using Aviator next time.

Change Sets


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

Copy link

vercel bot commented Jan 15, 2025

Deployment failed with the following error:

Resource is limited - try again in 7 seconds (more than 100, code: "api-deployments-free-per-day").

Copy link

Please follow naming conventions! 😿

Copy link
Contributor

coderabbitai bot commented Jan 15, 2025

Important

Review skipped

Auto reviews are limited to specific labels.

🏷️ Labels to auto review (2)
  • depencies
  • dependencies

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

sourcery-ai bot commented Jan 15, 2025

Przewodnik Recenzenta przez Sourcery

Ten pull request aktualizuje konfigurację Mergify, aby oznaczyć pull requesty, które są częścią stosu Mergify, oraz usuwa regułę priorytetu dla threattrix.

Diagram przepływu zaktualizowanego przetwarzania PR Mergify

flowchart TD
    PR[Nowy Pull Request] --> CheckCommit{Sprawdź pierwszą wiadomość commit}
    CheckCommit -->|Zawiera 'Change-Id:'| AddLabel[Dodaj etykietę 'stack']
    CheckCommit -->|Brak 'Change-Id:'| SkipLabel[Pomiń etykietowanie]
    AddLabel --> AutoMergeCheck{Sprawdź warunki automerge}
    SkipLabel --> AutoMergeCheck
    AutoMergeCheck -->|Warunki spełnione| Merge[Scal PR]
    AutoMergeCheck -->|Warunki niespełnione| Wait[Czekaj na warunki]
Loading

Zmiany na Poziomie Plików

Zmiana Szczegóły Pliki
Oznacz PR-y stosów Mergify
  • Dodano regułę oznaczania pull requestów etykietą "stack", jeśli są częścią stosu Mergify.
.mergify.yml
Usuń regułę priorytetu dla threattrix
  • Usunięto regułę priorytetu dla gałęzi trx.
.mergify.yml

Porady i polecenia

Interakcja z Sourcery

  • Wywołaj nową recenzję: Skomentuj @sourcery-ai review w pull requeście.
  • Kontynuuj dyskusje: Odpowiedz bezpośrednio na komentarze recenzji Sourcery.
  • Wygeneruj issue GitHub z komentarza recenzji: Poproś Sourcery o utworzenie issue z komentarza recenzji, odpowiadając na niego.
  • Wygeneruj tytuł pull requesta: Napisz @sourcery-ai w dowolnym miejscu tytułu pull requesta, aby wygenerować tytuł w dowolnym momencie.
  • Wygeneruj podsumowanie pull requesta: Napisz @sourcery-ai summary w dowolnym miejscu treści pull requesta, aby wygenerować podsumowanie PR w dowolnym momencie. Możesz również użyć tego polecenia, aby określić, gdzie podsumowanie ma zostać wstawione.

Dostosowywanie Twojego Doświadczenia

Uzyskaj dostęp do pulpitu nawigacyjnego, aby:

  • Włączać lub wyłączać funkcje recenzji, takie jak podsumowanie pull requesta generowane przez Sourcery, przewodnik recenzenta i inne.
  • Zmienić język recenzji.
  • Dodawać, usuwać lub edytować niestandardowe instrukcje recenzji.
  • Dostosowywać inne ustawienia recenzji.

Uzyskiwanie Pomocy

Original review guide in English

Reviewer's Guide by Sourcery

This pull request updates the Mergify configuration to label pull requests that are part of a Mergify stack and removes the priority rule for threattrix.

Flow diagram of updated Mergify PR processing

flowchart TD
    PR[New Pull Request] --> CheckCommit{Check first commit message}
    CheckCommit -->|Contains 'Change-Id:'| AddLabel[Add 'stack' label]
    CheckCommit -->|No 'Change-Id:'| SkipLabel[Skip labeling]
    AddLabel --> AutoMergeCheck{Check automerge conditions}
    SkipLabel --> AutoMergeCheck
    AutoMergeCheck -->|Conditions met| Merge[Merge PR]
    AutoMergeCheck -->|Conditions not met| Wait[Wait for conditions]
Loading

File-Level Changes

Change Details Files
Label Mergify Stacks PRs
  • Added a rule to label pull requests with "stack" if they are part of a Mergify stack.
.mergify.yml
Remove priority rule for threattrix
  • Removed the priority rule for the trx branch.
.mergify.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

deepsource-io bot commented Jan 15, 2025

Here's the code health analysis summary for commits 91d737d..322eff4. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource PHP LogoPHP✅ SuccessView Check ↗
DeepSource Test coverage LogoTest coverage⚠️ Artifact not reportedTimed out: Artifact was never reportedView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link
Contributor

mergify bot commented Jan 15, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Do not merge outdated PRs

Wonderful, this rule succeeded.

Make sure PRs are almost up to date before merging

  • #commits-behind <= 10

@reisene
Copy link
Owner Author

reisene commented Jan 15, 2025

@mergify queue

Copy link
Contributor

mergify bot commented Jan 15, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 200bb1a

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Cześć @reisene - przejrzałem Twoje zmiany i wyglądają świetnie!\n\n

\nOto, co sprawdziłem podczas przeglądu\n\n- 🟡 Problemy ogólne: znaleziono 1 problem\n- 🟢 Bezpieczeństwo: wszystko wygląda dobrze\n- 🟢 Testy: wszystko wygląda dobrze\n- 🟢 Złożoność: wszystko wygląda dobrze\n- 🟢 Dokumentacja: wszystko wygląda dobrze\n
\n\n***\n\n
\nSourcery jest darmowy dla projektów open source - jeśli podobają Ci się nasze recenzje, rozważ ich udostępnienie ✨\n\n- X\n- Mastodon\n- LinkedIn\n- Facebook\n\n
\n\n\nPomóż mi być bardziej użytecznym! Proszę kliknij 👍 lub 👎 przy każdym komentarzu, a ja wykorzystam tę opinię do poprawy recenzji.\n

Original comment in English

Hey @reisene - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

- name: Label Mergify Stacks PRs
description: Pull requests that are part of a Mergify stack should be labeled as such
conditions:
- "commits[0].commit_message ~= (?m)Change-Id:"
Copy link
Contributor

Choose a reason for hiding this comment

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

sugestia: Rozważ sprawdzenie Change-Id we wszystkich commitach, a nie tylko w pierwszym

Użycie 'commits[].commit_message' zamiast 'commits[0].commit_message' zapewniłoby wykrycie stosu nawet wtedy, gdy Change-Id pojawia się w późniejszych commitach stosu.

Suggested change
- "commits[0].commit_message ~= (?m)Change-Id:"
- "commits[].commit_message ~= (?m)Change-Id:"
Original comment in English

suggestion: Consider checking all commits for Change-Id instead of just the first one

Using 'commits[].commit_message' instead of 'commits[0].commit_message' would ensure the stack is detected even when the Change-Id appears in later commits of the stack.

Suggested change
- "commits[0].commit_message ~= (?m)Change-Id:"
- "commits[].commit_message ~= (?m)Change-Id:"

Copy link

Click here to review and test in web IDE: Contribute

Copy link
Contributor

aviator-app bot commented Jan 15, 2025

Skipping bot pull request creation because the queue is empty and this pull request is up to date with main.

Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Code review by ChatGPT

@reisene reisene added the automerge Mergify label label Jan 15, 2025
@mergify mergify bot merged commit 200bb1a into main Jan 15, 2025
29 of 40 checks passed
Copy link
Contributor

mergify bot commented Jan 15, 2025

This pull request has been removed from the queue for the following reason: pull request dequeued.

Pull request #221 has been dequeued. Pull request automatically merged by a merge action

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.

If you want to requeue this pull request, you need to post a comment with the text: @mergifyio requeue

@mergify mergify bot deleted the mergify/reisene/config-update branch January 15, 2025 18:25
@reisene reisene added merge when passing Merge the PR automatically once all status checks have passed mergequeue labels Jan 15, 2025
Copy link
Contributor

mergify bot commented Jan 15, 2025

Hey @reisene, your pull request has been dequeued due to the following reason: PR_DEQUEUED.
Sorry about that, but you can requeue the PR by using @mergifyio requeue if you think this was a mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AnyChange automerge Mergify label merge when passing Merge the PR automatically once all status checks have passed mergequeue release root size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant