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

fix(actions): doc labeler needs all clause instead of default any #5568

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

blackboxsw
Copy link
Collaborator

@blackboxsw blackboxsw commented Jul 29, 2024

Proposed Commit Message

fix(actions): doc labeler needs all clause instead of default any

Unspecified base match in labeler assumes 'any' for each match
clause. When specifying base-branch and --any-glob-to-any-file either
one of these cases would result in a successful match which would label
all PRs again main as documentation. We need to explicitly specify
'all:' in our labeler match config to ensure BOTH:

- matching file paths related to documentation
      -AND-
- targeting a merge against 'main' branch

Additional Context

Test Steps

labeler github action appears to have when being triggered by 'old' repo .github/workflow state which results in this PR's documentation label being added. To test this without concern for interaction with prior .github/workflow state, I was able to change the documentation: label in .github/labeler.yml to some other label invalid: and put up a pull request again my local repo's main to ensure invalid was only added when my PR also included a change to cloudinit/config/schemas/schema-cloud-config-v1.json.

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

Unspecified base match in labeler assumes 'any' for each match
clause. When specifying base-branch and --any-glob-to-any-file either
one of these cases would result in a successful match which would label
all PRs again main as documentation. We need to explicitly specify
'all:' in our labeler match config to ensure BOTH
- matching file paths related to documentation
-AND-
- targeting a merge against 'main' branch
@github-actions github-actions bot added the documentation This Pull Request changes documentation label Jul 29, 2024
@blackboxsw blackboxsw added documentation This Pull Request changes documentation and removed documentation This Pull Request changes documentation labels Jul 29, 2024
@blackboxsw
Copy link
Collaborator Author

Adding documentation label here as this is a docs-related fix

Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

Thanks!

@blackboxsw blackboxsw merged commit f8c1b51 into canonical:main Jul 29, 2024
24 checks passed
holmanb pushed a commit to holmanb/cloud-init that referenced this pull request Aug 2, 2024
…nonical#5568)

Unspecified base match in labeler assumes 'any' for each match
clause. When specifying base-branch and --any-glob-to-any-file either
one of these cases would result in a successful match which would label
all PRs again main as documentation. We need to explicitly specify
'all:' in our labeler match config to ensure BOTH:

 * matching file paths related to documentation
         -AND-
 * targeting a merge against 'main' branch
holmanb pushed a commit that referenced this pull request Aug 6, 2024
)

Unspecified base match in labeler assumes 'any' for each match
clause. When specifying base-branch and --any-glob-to-any-file either
one of these cases would result in a successful match which would label
all PRs again main as documentation. We need to explicitly specify
'all:' in our labeler match config to ensure BOTH:

 * matching file paths related to documentation
         -AND-
 * targeting a merge against 'main' branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This Pull Request changes documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants