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

feat(1082): [13] [small] fix to enable branch specific pr trigger #13

Merged
merged 3 commits into from
Jul 19, 2018

Conversation

yokawara
Copy link
Contributor

Context

The branch specific trigger for ~pr is not implemented yet.

Objective

  • Fix trigger checking logic for branch specific ~pr jobs

References

const triggerBranch = config.trigger.match(triggerBranchRegExp);

if (triggerBranch) {
if (triggerBranch[1].match(edgeSrcBranch[1])) {
if (triggerBranch && triggerBranch[1] === edgeSrcBranch[1]) {
Copy link
Member

Choose a reason for hiding this comment

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

These looks magic number so I think we should add some comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I added some comments.

Copy link
Member

@tk3fftk tk3fftk left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@yuichi10 yuichi10 left a comment

Choose a reason for hiding this comment

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

LGTM

@tkyi tkyi merged commit a652efe into screwdriver-cd:master Jul 19, 2018
@tk3fftk tk3fftk deleted the pr-branch-filter branch July 19, 2018 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants