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

checkcommits: allow subsystem to overide need for "Fixes #XXX" #861

Merged

Conversation

jodh-intel
Copy link
Contributor

Add a new --ignore-fixes-for-subsystem= option that if specified will
disable the effect of --need-fixes for those branches containing atleast one
commit with the specified subsystem.

The most useful scenario for this option being to allow a release PR
(subsystem "release: ...") to not require an issue to be raised for it.

Fixes #820.

Signed-off-by: James O. D. Hunt james.o.hunt@intel.com

@clearcontainersbot
Copy link

kubernetes qa-passed 👍

1 similar comment
@clearcontainersbot
Copy link

kubernetes qa-passed 👍

Copy link
Contributor

@jcvenegas jcvenegas left a comment

Choose a reason for hiding this comment

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

thanks for adding this !looks good , just one question...

}

// match 1 is the entire matching string
// match 2 is the subsystem name (without the colon)
subsystem = matches[1]
Copy link
Contributor

Choose a reason for hiding this comment

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

accorinding to the comment, dont you need matches[2]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. Those comments were supposed to refer to "1st" and "2nd", but I've changed it to make it clearer. Thanks!

Fixed a comment error and updated copyright year.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Move the cli action code to a separate function to make the code cleaner.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Reworked to retrieve the commit details from `git(1)` before applying checks
to the commit details.

Previously, the "get" and "check" code was somewhat intermingled meaning it
was not possible to apply tests to the overall commit (for example a check
that spanned a commit subject *and* commit body).

Initialised vendoring for assert package.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add a new `--ignore-fixes-for-subsystem=` option that if specified will
disable the effect of `--need-fixes` for those branches containing atleast one
commit with the specified subsystem.

The most useful scenario for this option being to allow a release PR
(subsystem "`release: ...`") to not require an issue to be raised for it.

Fixes clearcontainers#820.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
@jodh-intel jodh-intel force-pushed the checkcommits-ignore-release-prs branch from 87808ba to e7d09b9 Compare January 22, 2018 08:26
@clearcontainersbot
Copy link

kubernetes qa-passed 👍

@devimc
Copy link

devimc commented Jan 22, 2018

would be nice to have support for fixes ORG/PROJECT#NUM
for example fixes clearcontainers/agent#198 to make refence to an issue that is not part of this repository, but is part of the same organization

@jodh-intel
Copy link
Contributor Author

@devimc - I like it. I've raised #864 to handle that as a separate feature.

@devimc
Copy link

devimc commented Jan 22, 2018

lgtm

Approved with PullApprove Approved with PullApprove

@devimc devimc merged commit db64919 into clearcontainers:master Jan 22, 2018
mcastelino pushed a commit to mcastelino/tests that referenced this pull request Jan 23, 2019
Now that kata-containers/runtime#852 has been merged,
we need to test docker integration tests with ipvlan driver with l2 and l3 mode.

Fixes clearcontainers#861

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

checkcommits: allow a release PR to not require a "Fixes" comment
4 participants