Commit
87f922aa712857b5c259eeef90746a6ea4581ca2
by noreplyopt(prow-jobs): skip triggering CI jobs for changes on git ignore file (#3515)
This pull request makes changes to the `skip_if_only_changed`
configuration across multiple Prow job configuration files. The primary
update adds `.gitignore` files to the list of file types that, when
modified, will not trigger specific CI jobs. Additionally, the changes
introduce YAML anchors and references to reduce redundancy in some
configurations.
### Updates to `skip_if_only_changed`:
* Added `.gitignore` to the `skip_if_only_changed` regex pattern in
multiple files, including `prow-jobs/pingcap-inc/tici/presubmits.yaml`,
`prow-jobs/pingcap/community/presubmits.yaml`, and others. This ensures
that changes to `.gitignore` files do not trigger unnecessary CI jobs.
[[1]](diffhunk://#diff-3c1db7bcdc72f49245c498a5dbe018a2355b56a3bbf4672768743c419486c3aeL7-R7)
[[2]](diffhunk://#diff-201e72a2e194854030a794a5b8bbf9cbf0464c4ea4dfc225871c70eb822a4f23L5-R5)
[[3]](diffhunk://#diff-000c3f36021710d47fe46c91d7b91db19662fe6508c646c8d9315bc79e642fecL8-R8)
[[4]](diffhunk://#diff-6d136e7cf0b5751935f337e8b7065f23f4f547f7f85072637dbab6476832439eL5-R5)
[[5]](diffhunk://#diff-35ccc0efb0c9d75d84787908ce4f772045178169d13836c8b429bfed39b986d6L8-R8)
[[6]](diffhunk://#diff-6425cb5000ad825d1594ec6a5e4840caf8b29cbec0d199622f04544b5d6cc38fL9-R9)
[[7]](diffhunk://#diff-30ab0438808b8b152ea23af14f48aaa5ef79bcdb57e58c78fd96573a7f82246aL5-R5)
[[8]](diffhunk://#diff-d18d99f05cada8eed7f9813fa3a56557537ae467e4a0a8ac435946c92164eb8dL8-R8)
[[9]](diffhunk://#diff-6c81344ec8a5b734e763b2af216a06208bbe6d47e818337978e601ac7db5b5f5R1-R3)
[[10]](diffhunk://#diff-fa6da1100af298a0c51accb5df3a37f116a276b92ca404779fd5d7aa381b776aL9-R9)
### Configuration Simplification:
* Introduced YAML anchors (`&brancher` and `&skip_if_only_changed`) and
references (`*brancher`, `*skip_if_only_changed`) in
`prow-jobs/pingcap/tidb/latest-postsubmits.yaml` to avoid duplication of
branch definitions and `skip_if_only_changed` logic across multiple job
entries.
(commit: 87f922a)