Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Use category to distinguish between changes #70

Closed
kszucs opened this issue May 14, 2019 · 1 comment
Closed

Use category to distinguish between changes #70

kszucs opened this issue May 14, 2019 · 1 comment

Comments

@kszucs
Copy link
Contributor

kszucs commented May 14, 2019

ChangeSource.category
ChangeFilter.category_fn
Builder.category

Github hook creates 3 kinds of changes, distinguishable by their category field:

    None: This change is a push to a branch.

        Use util.ChangeFilter(category=None, repository="http://github.com/<org>/<project>")

    'tag': This change is a push to a tag.

        Use util.ChangeFilter(category='tag', repository="http://github.com/<org>/<project>")

    'pull': This change is from a pull-request creation or update.

        Use util.ChangeFilter(category='pull', repository="http://github.com/<org>/<project>") In this case, the GitHub step must be used instead of the standard Git in order to be able to pull GitHub’s magic refs. With this method, the GitHub step will always checkout the branch merged with latest master. This allows to test the result of the merge instead of just the source branch. Note that you can use the GitHub for all categories of event.

@kszucs
Copy link
Contributor Author

kszucs commented May 16, 2019

resolved via 4176633

@kszucs kszucs closed this as completed May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant