Repository navigation
ci: add group for core docs to pullapprove - #40225
jessicajaniuk wants to merge 2 commits into
Conversation
gkalpak
left a comment
There was a problem hiding this comment.
I am a little confused:
- What aboud groups other than
core? - Shouldn't the files be part of one group only? (Currently they are part of both
fw-coreanddocs-core. Is that intentional? How does PullApprove handle that?)
Initially I thought exactly like you, @gkalpak. I thought there'd be one config for |
|
Also to answer your question of how does PullApprove handle that, in the case that a code path exists in two groups, both configs apply. So it applies both labels. We have this situation already in a couple of our PullApprove group configs here. We could remove the aio content from |
Yes, I know that there are multiple blocks containing docs-related files 馃榿 Currently, we distinguish docs into two main categories: API docs and non-API docs (i.e. guides, tutorials, marketing pages, etc.) The way we have these different types of docs assigned to groups currently is this:
So, what this PR currently does is create a new group
(That was my first question.)
馃帀
I think this is worth investigating. It would be better if we could keep files in one group. For example, if we want to add a new guide in the future, we would only need to add it in one place to get the correct labels. By referencing the files in two groups (e.g. To summarize, I think breaking up the "package" groups ( If possible, it would be preferable imo to only reference files in one group (instead of having them in both |
There was a problem hiding this comment.
I think it is worth adding a note at the top of the file (maybe under configuration nuances) mentioning that we should ensure that fw-* and docs-* groups always have the same reviewers.
There was a problem hiding this comment.
I've added a comment to each block that has a matching docs-* section and also the same comment to the docs section pointing back to the fw-* regarding keeping each section in sync. Let me know if that works for you.
One group is just not possible for fw-core or any group that requires docs. The labeling system for PullApprove applies to the entire group and cannot conditionally apply labels to specific sub paths within that group. fw-core includes paths that are not docs. So in using only one singular group with multiple labels, all code within that group would get both comp: core and comp: docs, which is incorrect. Two groups for each block are required.
Yeah I was looking at that. I'm happy to create subsequent PRs for each of these blocks to ensure we have clear documentation of all of these section changes. |
jessicajaniuk
left a comment
There was a problem hiding this comment.
/pullapprove-test
version: 3
groups:
code-ownership:
conditions:
- >
contains_any_globs(files, [
'.pullapprove.yml'
])
labels:
pending:
- "comp: build & ci"
- "comp: core"
approved: "comp: build & ci"
rejected: "comp: build & ci"
reviewers:
users:
- jessicajaniuk|
Verified that PullApprove does not support multiple labels at a time. So separate sections and duplication of paths are unfortunately required. Labels must be a single string. |
|
I just added all the new sections as a separate commit to this PR. This should now cover all docs paths for every component we have. |
e5934af to
87e880b
Compare
gkalpak
left a comment
There was a problem hiding this comment.
A couple of minor comments (nothing blocking). Otherwise lgtm 馃殌
BTW, you could also add a comment in fw-compiler > users:
- users:
+ users: # Keep list in sync with Docs: Compiler87e880b to
5a11160
Compare
|
Possibly simpler alternative approach: #40273 |
Oh, I hadn't realized there was already work being done here; I was just trying to fix the config for my PR that pullapprove removed I don't think |
|
I hadn't even thought of that! I'll remove all the reviewers blocks from the new sections. Thanks! |
This adds a second pullapprove group to just include the aio content for core. It ensures that the comp: docs label gets applied properly
5a11160 to
b0ef5f1
Compare
|
Closing this PR as we're going to rollback auto-labeling for now. I've got a design doc to discuss a better approach. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This adds a second pullapprove group to just include the aio content for core.
It ensures that the comp: docs label gets applied properly
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Any docs content in the angular.io code will not have
core: docsapplied to it properly.PullApprove auto removes the
core: docsif it's manually added, since paths don't line upto any docs config.
Issue Number: N/A
What is the new behavior?
Core will have its own docs config, and the docs label will be automatically added by PullApprove
going forward for any aio content added matching core paths.
Does this PR introduce a breaking change?
Other information