Skip to content

Commit 8211ce2

Browse files
committed
Refine check if PR can be updated in version increments workflow
Maintainers and consequently the organization's Eclipse Bot can always modify a PR from a branch in the same repository, even if edit's by maintainers are not (explicitly) enabled. This avoids a false positive warning that a required version-increment cannot be pushed, if for example a Bot has created a PR from a branch within the target repository. Follow-up on - #3136
1 parent a9bd5d9 commit 8211ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publishVersionCheckResults.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
pull_number: prNumber,
119119
...context.repo
120120
})
121-
const applyChangeMessagePart = pr.data.maintainer_can_modify
121+
const applyChangeMessagePart = pr.data.maintainer_can_modify || pr.data.base.repo.full_name == pr.data.head.repo.full_name
122122
? "An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the _git patch_."
123123
: "> [!WARNING]\n> :construction: **This PR cannot be modified by maintainers** because edits are disabled or it is created from an organization repository. To obtain the required changes apply the _git patch_ manually as an additional commit."
124124
const commentBody = `

0 commit comments

Comments
 (0)