Skip to content

docs: add comment to IsAllowed function in bitbucketdatacenter#2060

Closed
chmouel wants to merge 2 commits intomainfrom
startpaac2
Closed

docs: add comment to IsAllowed function in bitbucketdatacenter#2060
chmouel wants to merge 2 commits intomainfrom
startpaac2

Conversation

@chmouel
Copy link
Copy Markdown
Member

@chmouel chmouel commented Apr 18, 2025

  • really to test CI
  • Added explanatory comment to clarify the purpose of IsAllowed function
  • Improved code documentation for better readability and maintenance

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.

  • 🔎 Address any CI test flakiness before merging, or provide a valid reason to bypass it (e.g., token rate limitations).

  • 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)

- really to test CI
- Added explanatory comment to clarify the purpose of IsAllowed function
- Improved code documentation for better readability and maintenance

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
Copilot AI review requested due to automatic review settings April 18, 2025 09:20
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 18, 2025

Deploying pipelines-as-code with  Cloudflare Pages  Cloudflare Pages

Latest commit: d1db8eb
Status: ✅  Deploy successful!
Preview URL: https://59b563dd.pipelines-as-code.pages.dev
Branch Preview URL: https://startpaac2.pipelines-as-code.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A PR that improves code documentation by adding an explanatory comment to the IsAllowed function in the Bitbucket Data Center provider.

  • Added a documentation comment for the IsAllowed function to clarify its purpose.
  • Improved overall readability of the code comments.


type activitiesTypes struct{ Values []*bbv1.Activity }

// IsAllowed check if the user is allowed to trigger the pipeline.
Copy link

Copilot AI Apr 18, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider updating the comment for correct grammar. For example, change 'check' to 'checks' to read: '// IsAllowed checks if the user is allowed to trigger the pipeline.'

Suggested change
// IsAllowed check if the user is allowed to trigger the pipeline.
// IsAllowed checks if the user is allowed to trigger the pipeline.

Copilot uses AI. Check for mistakes.
@chmouel chmouel force-pushed the startpaac2 branch 8 times, most recently from 47c1900 to 93ac044 Compare April 21, 2025 19:08
various ci fixes since we moved to stratpaac
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
@chmouel chmouel closed this Apr 22, 2025
@chmouel chmouel deleted the startpaac2 branch April 22, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants