Skip to content

Conversation

aThorp96
Copy link
Member

@aThorp96 aThorp96 commented Oct 7, 2025

📝 Description of the Change

  • Since "repo" is somewhat overloaded, clarify that it refers to the owner of the repository in the git forge.
  • Describe behavior of the repo_owner param in Gitlab's hierarchical ownership
  • Fix bug in examples for params repo_url and source_url

👨🏻‍ Linked Jira

None

🔗 Linked GitHub Issue

Fixes #

🚀 Type of Change

  • 🐛 Bug fix (fix:)
  • ✨ New feature (feat:)
  • 💥 Breaking change (feat!:, fix!:)
  • 📚 Documentation update (docs:)
  • ⚙️ Chore (chore:)
  • 💅 Refactor (refactor:)
  • 🔧 Enhancement (enhance:)
  • 📦 Dependency update (deps:)

🧪 Testing Strategy

  • Unit tests
  • Integration tests
  • End-to-end tests
  • Manual testing
  • Not Applicable

🤖 AI Assistance

  • I have not used any AI assistance for this PR.
  • I have used AI assistance for this PR.

If you have used AI assistance, please provide the following details:

Which LLM was used?

  • GitHub Copilot
  • ChatGPT (OpenAI)
  • Claude (Anthropic)
  • Cursor
  • Gemini (Google)
  • Other: ____________

Extent of AI Assistance:

  • Documentation and research only
  • Unit tests or E2E tests only
  • Code generation (parts of the code)
  • Full code generation (most of the PR)
  • PR description and comments
  • Commit message(s)

Important

If the majority of the code in this PR was generated by an AI, please add a Co-authored-by trailer to your commit message.
For example:

Co-authored-by: Gemini gemini@google.com
Co-authored-by: ChatGPT noreply@chatgpt.com
Co-authored-by: Claude noreply@anthropic.com
Co-authored-by: Cursor noreply@cursor.com
Co-authored-by: Copilot Copilot@users.noreply.github.com

**💡You can use the script ./hack/add-llm-coauthor.sh to automatically add
these co-author trailers to your commits.

✅ Submitter Checklist

  • 📝 My commit messages are clear, informative, and follow the project's How to write a git commit message guide. The Gitlint linter ensures in CI it's properly validated
  • ✨ I have ensured my commit message prefix (e.g., fix:, feat:) matches the "Type of Change" I selected above.
  • ♽ I have run make test and make lint locally to check for and fix any
    issues. For an efficient workflow, I have considered installing
    pre-commit and running pre-commit install to
    automate these checks.
  • 📖 I have added or updated documentation for any user-facing changes.
  • 🧪 I have added sufficient unit tests for my code changes.
  • 🎁 I have added end-to-end tests where feasible. See README for more details.
  • 🔎 I have addressed any CI test flakiness or provided a clear reason to bypass it.
  • If adding a provider feature, I have filled in the following and updated the provider documentation:
    • GitHub App
    • GitHub Webhook
    • Gitea/Forgejo
    • GitLab
    • Bitbucket Cloud
    • Bitbucket Data Center

@aThorp96 aThorp96 requested a review from chmouel October 7, 2025 16:06
Copy link

Summary of Changes

Hello @aThorp96, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the documentation by providing clearer definitions and accurate examples for key repository parameters. It aims to resolve ambiguities around the repo_owner parameter, especially concerning its usage in complex VCS hierarchies, and rectifies incorrect example URLs for repo_url and source_url, thereby improving the overall precision and helpfulness of the guide for users.

Highlights

  • Documentation Clarity for repo_owner: The description for the repo_owner parameter has been clarified to specify that it refers to the repository owner within the git provider, explicitly mentioning its behavior for hierarchical VCS providers like GitLab (e.g., orgs, namespaces, groups, subgroups).
  • Correction of Example URLs: The example values for repo_url and source_url parameters have been corrected to use a more accurate and specific repository path, moving from a generic https:/github.com/repo/owner to https:/github.com/openshift-pipelines/pipelines-as-code.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

pipelines-as-code bot commented Oct 7, 2025

🔍 PR Lint Feedback

Note: This automated check helps ensure your PR follows our contribution guidelines.

⚠️ Items that need attention:

🎫 Jira reference

Add a Jira reference in the description using one of the following formats:

  • https://issues.redhat.com/browse/SRVKP-<number>

If no SRVKP ticket exists yet, link a GitHub issue instead (e.g., Fixes #123).
Minor housekeeping PRs without Jira coverage can skip this after confirming with reviewers.


🤖 AI attribution

The following commits lack an explicit AI attribution footer:

  • 33b900d docs: clarify repo_owner parameter semantics
  • dd2f793 docs: add missing slashes to url in authoringprs

If no AI assistance was used for a commit, you can ignore this warning.
Otherwise add an Assisted-by: or Co-authored-by: footer referencing the AI used.


ℹ️ Next Steps

  • Review and address the items above
  • Push new commits to update this PR
  • This comment will be automatically updated when issues are resolved
🔧 Admin Tools (click to expand)

Automated Issue/Ticket Creation:

  • /issue-create - Generate a GitHub issue from this PR content using AI
  • /jira-create - Create a SRVKP Jira ticket from this PR content using AI

⚠️ Important: Always review and edit generated content before finalizing tickets/issues.
The AI-generated content should be used as a starting point and may need adjustments.

These commands are available to maintainers and will post the generated content as PR comments for review.

🤖 This feedback was generated automatically by the PR CI system

@pipelines-as-code pipelines-as-code bot added the documentation Improvements or additions to documentation label Oct 7, 2025
- Since "repo" is somewhat overloaded, clarify that it refers to the
  owner of the repository in the git forge.
- Describe behavior of the `repo_owner` param in Gitlab's hierarchical ownership
- Fix bug in examples for params `repo_url` and `source_url`
Copy link

@gemini-code-assist gemini-code-assist 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

This pull request clarifies the semantics of the repo_owner parameter in the documentation and fixes incorrect example URLs for repo_url and source_url. The changes are clear and improve the documentation. I've found a small typo in the updated example URLs and provided a suggestion to fix it.

Comment on lines 59 to 64
| repo_url | The repository full URL. | `{{repo_url}}` | https:/github.com/openshift-pipelines/pipelines-as-code |
| revision | The commit full sha revision. | `{{revision}}` | 1234567890abcdef |
| sender | The sender username (or account ID on some providers) of the commit. | `{{sender}}` | johndoe |
| source_branch | The branch name where the event comes from. | `{{source_branch}}` | main |
| git_tag | The Git tag pushed (only available for tag push events; otherwise empty `""`). | `{{git_tag}}` | v1.0 |
| source_url | The source repository URL from where the event comes (same as the value `repo_url` for push events). | `{{source_url}}` | https:/github.com/repo/owner |
| source_url | The source repository URL from where the event comes (same as the value `repo_url` for push events). | `{{source_url}}` | https:/github.com/openshift-pipelines/pipelines-as-code |

Choose a reason for hiding this comment

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

medium

There's a small typo in the example URLs for repo_url and source_url. They are missing a slash in https://.

Suggested change
| repo_url | The repository full URL. | `{{repo_url}}` | https:/github.com/openshift-pipelines/pipelines-as-code |
| revision | The commit full sha revision. | `{{revision}}` | 1234567890abcdef |
| sender | The sender username (or account ID on some providers) of the commit. | `{{sender}}` | johndoe |
| source_branch | The branch name where the event comes from. | `{{source_branch}}` | main |
| git_tag | The Git tag pushed (only available for tag push events; otherwise empty `""`). | `{{git_tag}}` | v1.0 |
| source_url | The source repository URL from where the event comes (same as the value `repo_url` for push events). | `{{source_url}}` | https:/github.com/repo/owner |
| source_url | The source repository URL from where the event comes (same as the value `repo_url` for push events). | `{{source_url}}` | https:/github.com/openshift-pipelines/pipelines-as-code |
| repo_url | The repository full URL. | `{{repo_url}}` | https://github.com/openshift-pipelines/pipelines-as-code |
| revision | The commit full sha revision. | `{{revision}}` | 1234567890abcdef |
| sender | The sender username (or account ID on some providers) of the commit. | `{{sender}}` | johndoe |
| source_branch | The branch name where the event comes from. | `{{source_branch}}` | main |
| git_tag | The Git tag pushed (only available for tag push events; otherwise empty `""`). | `{{git_tag}}` | v1.0 |
| source_url | The source repository URL from where the event comes (same as the value `repo_url` for push events). | `{{source_url}}` | https://github.com/openshift-pipelines/pipelines-as-code |

Copy link
Member

Choose a reason for hiding this comment

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

the gemini review was accurate, i pushed the fix to your branch in dd2f793 (#2279) so we can move forward

@aThorp96 aThorp96 force-pushed the repo-owner-docs-clarification branch from 6ebaea6 to 33b900d Compare October 7, 2025 16:08
Changed `repo_url` and `source_url` documentation in the pull request
authoring guide to use proper URLs, aligning with
documentation standards.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
@chmouel chmouel merged commit 756efe9 into openshift-pipelines:main Oct 9, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Development

Successfully merging this pull request may close these issues.

2 participants