Skip to content

Disable Github comments for pipeline start/end events to reduce PR noise #2110

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

Conversation

PuneetPunamiya
Copy link
Contributor

  • The Github webhook integration was previously generating a comment on every pipeline start and end filling pull requests with redundant updates

  • Hence this patch introduces a new setting to completely disable comment creation

  • By using comment_strategy: disable_all, no comments will be added for either pipeline start or completion

  • Also includes e2e tests to validate the new behavior

Changes

Submitter Checklist

  • 📝 Ensure your commit message is clear and informative. Refer to the How to write a git commit message guide. Include the commit message in the PR body rather than linking to an external site (e.g., Jira ticket).

  • ♽ Run make test lint before submitting a PR to avoid unnecessary CI processing. Consider installing pre-commit and running pre-commit install in the repository root for an efficient workflow.

  • ✨ We use linters to maintain clean and consistent code. Run make lint before submitting a PR. Some linters offer a --fix mode, executable with make fix-linters (ensure markdownlint and golangci-lint are installed).

  • 📖 Document any user-facing features or changes in behavior.

  • 🧪 While 100% coverage isn't required, we encourage unit tests for code changes where possible.

  • 🎁 If feasible, add an end-to-end test. See README for details.

  • If adding a provider feature, fill in the following details:

    • GitHub App
    • GitHub Webhook
    • Gitea/Forgejo
    • GitLab
    • Bitbucket Cloud
    • Bitbucket Data Center

    (update the provider documentation accordingly)

@PuneetPunamiya PuneetPunamiya force-pushed the fix-too-many-comments-grom-github-integration branch 2 times, most recently from 68c63e5 to 1e10453 Compare May 30, 2025 12:23
@PuneetPunamiya PuneetPunamiya force-pushed the fix-too-many-comments-grom-github-integration branch from 1e10453 to c921094 Compare June 3, 2025 07:53
@zakisk zakisk force-pushed the fix-too-many-comments-grom-github-integration branch from c921094 to a4137fc Compare June 3, 2025 09:31
@PuneetPunamiya PuneetPunamiya force-pushed the fix-too-many-comments-grom-github-integration branch 2 times, most recently from d8735bb to d1bc877 Compare June 3, 2025 10:59
The Github webhook integration was previously generating a comment on every
pipeline start and end filling pull requests with redundant updates

Hence this patch introduces a new setting to completely disable
comment creation

By using `comment_strategy: disable_all`, no comments will be added
for either pipeline start or completion

Also includes e2e tests to validate the new behavior

Signed-off-by: PuneetPunamiya <ppunamiy@redhat.com>
@zakisk zakisk force-pushed the fix-too-many-comments-grom-github-integration branch from d1bc877 to 82930ff Compare June 3, 2025 11:07
@zakisk
Copy link
Contributor

zakisk commented Jun 3, 2025

/lgtm

Copy link

@pipelines-as-code pipelines-as-code bot left a comment

Choose a reason for hiding this comment

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

Congrats @PuneetPunamiya your PR Has been approved 🎉

✅ Pull Request Approved

Approval Status:

  • Required Approvals: 1
  • Current Approvals: 1

👥 Reviewers Who Approved:

Reviewer Permission Level Approval Status
@zakisk admin

📝 Next Steps

  • Ensure all required checks pass
  • Comply with branch protection rules
  • Request a maintainer to merge using the /merge command (or merge it
    directly if you have repository permission).

Automated by the PAC Boussole 🧭

@zakisk
Copy link
Contributor

zakisk commented Jun 3, 2025

/merge

@pipelines-as-code pipelines-as-code bot merged commit 608c97b into openshift-pipelines:main Jun 3, 2025
7 checks passed
Copy link

✅ PR Successfully Merged

  • Merge method: rebase
  • Merged by: @zakisk
  • Total approvals: 1/1

Approvals Summary:

Reviewer Permission Status
@zakisk admin

Thank you @PuneetPunamiya for your valuable contribution! 🎉

Automated by the PAC Boussole 🧭

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

Successfully merging this pull request may close these issues.

2 participants