Skip to content

Conversation

@kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Oct 15, 2025

All the new code appears in main (not in the release branches), and we only want extra linter rules to apply to new code.

Disable lint-extra job if the PR is not to the main branch.

Inspired by lint-extra warnings in release-1.x PRs.

All the new code appears in main (not in the release branches),
and we only want extra linter rules to apply to new code.

Disable lint-extra job if the PR is not to the main branch.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR restricts the lint-extra job to only run on pull requests targeting the main branch, preventing extra linter rules from being applied to release branch PRs where they may not be relevant.

  • Updated the condition for the lint-extra step to check both that it's a pull request and that the base ref is 'main'
  • Updated the comment to clarify the new behavior

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cyphar cyphar added backport/1.2-todo A PR in main branch which needs to be backported to release-1.2 backport/1.3-todo A PR in main branch which needs to be backported to release-1.3 backport/1.4-todo A PR in main branch which needs to backported to release-1.4 labels Oct 16, 2025
@lifubang lifubang merged commit d34ea2b into opencontainers:main Oct 16, 2025
36 checks passed
@lifubang lifubang added backport/1.2-done A PR in main branch which has been backported to release-1.2 backport/1.3-done A PR in main branch which has been backported to release-1.3 backport/1.4-done A PR in main branch which has been backported to release-1.4 and removed backport/1.2-todo A PR in main branch which needs to be backported to release-1.2 backport/1.3-todo A PR in main branch which needs to be backported to release-1.3 backport/1.4-todo A PR in main branch which needs to backported to release-1.4 labels Oct 16, 2025
kolyshkin added a commit that referenced this pull request Oct 16, 2025
kolyshkin added a commit that referenced this pull request Oct 16, 2025
kolyshkin added a commit that referenced this pull request Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci backport/1.2-done A PR in main branch which has been backported to release-1.2 backport/1.3-done A PR in main branch which has been backported to release-1.3 backport/1.4-done A PR in main branch which has been backported to release-1.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants