Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f55505

Browse files
committed
Update Git triggers
Added description and screenshot of PR comment trigger options
1 parent6ebb88c commit9f55505

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

‎_docs/configure-ci-cd-pipeline/triggers/git-triggers.md‎

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,23 @@ Therefore, all tags like `tag1`, `tag-X` **won't** trigger the pipeline.
111111

112112
###Support for building pull requests from forks
113113

114-
By default, thegit triggerwill only work for events coming from your personal repository. You can also use triggers from events that are coming from forks. This is a very useful feature for open source projects, as it allows you to run your own unit tests and other checks against a new feature*before* actually merging it in your repo.
114+
By default, theGit triggerworks for events coming from your personal repository. You can also use triggers from events that are coming from forks. This is a very useful feature for open source projects, as it allows you to run your own unit tests and other checks against a new feature*before* actually merging it in your repo.
115115

116116
To enable this behavior:
117117

118118
* Toggle the*support pull request events from forks* switch
119-
* Check the*Pull request comment added* checkbox
119+
* According to the restrictions to enforce based on the type of user who made the PR comment, select either:
120+
**Pull request comment added (restricted)*: For all Git providers. To trigger only when the PR comments are made by repository owners or collaborators.
121+
**Pull request comment added*: For GitHub only. To trigger when PR comments are made by any user, regardless of their permissions. We strongly recommend selecting this option only for_private repositories_.
122+
123+
{% include image.html
124+
lightbox="true"
125+
file="/images/pipeline/triggers/pr-comment-trigger-options.png"
126+
url="/images/pipeline/triggers/pr-comment-trigger-options.png"
127+
alt="Trigger options for PR comments"
128+
caption="Trigger options for PR comments"
129+
max-width="50%"
130+
%}
120131
* In the*pr comment* field enter a custom string (accepts regex)
121132

122133
Then once a contributor creates a fork of your repository and submits a pull request, you can review the code and then add a comment on your own that matches the PR comment expression.
@@ -134,12 +145,23 @@ Once that is done, Codefresh will launch your pipeline against the Pull Request.
134145

135146
When supporting building of pull requests from forks there are a few "gotchas" to look out for:
136147

148+
149+
150+
**Pull request comment added (restricted)**
151+
152+
This is the default option for triggers based on PR comments, for all Git providers.
153+
137154
* Only comments made by repository owners and[collaborators](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/adding-outside-collaborators-to-repositories-in-your-organization) will result in the pipeline being triggered
138155
* Only git pushes by collaborators within the GitHub organization will result in the pipeline being triggered
139156
* If the repository is in a GitHub organization, comments made by private members of the organization will not activate the trigger, even if they are set as an owner or collaborator. Private members means that they need to be explicitly added to the repository.
140157
Access cannot be "inherited" by the GitHub team. Currently, only comments from Admins, or Collaborators (directly added, not via teams) are allowed, in order to be caught by this filter.
141158
* The*Pull request comment added* checkbox should likely be the only one checked, or your pipeline may trigger on other events that you don't anticipate.
142159

160+
**Pull request comment added**
161+
This option is recommended only for GitHub, as the default behavior does not trigger build when comments are made by users in GitHub teams, even Admin users.
162+
163+
>Select this only for private GitHub repositories.
164+
143165
###Monorepo support (Modified files)
144166

145167
The*modified files* field is a very powerful Codefresh feature that allows you to trigger a build only if the
36.1 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp