-
Notifications
You must be signed in to change notification settings - Fork 169
Fix custom jobs persisting in final repositories when removed from templates #1830
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
Closed
Closed
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3c7d0ba
Initial plan
Copilot 7e72f93
Implement fix for custom job removal issue
Copilot 01b2812
Update documentation to reflect custom job behavior changes
Copilot f371a41
Remove all trailing whitespaces from PowerShell files
Copilot d487821
Add allowCustomJobsInEndRepos setting to control custom job behavior …
Copilot e7a40d0
Merge branch 'main' into copilot/fix-1829
mazhelez 990ed65
Fix final repository detection logic to use standard AL-Go repositories
Copilot ed35ddc
Fix repository type detection to use GitHub template repository API
Copilot 6fe9a7b
Merge branch 'main' of https://github.com/microsoft/AL-Go into copilo…
mazhelez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct. Final repo is a repo where the template URL doesn't point to
microsoft/AL-Go-PTEormicrosoft/AL-Go-AppSourceormicrosoft/AL-Go.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, that's also not correct.
I don't think there's a mechanism currently to differentiate between final and template repos.
Maybe the template repos should be marked as template? (as in GitHub template repo).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the final repository detection logic. The logic now correctly identifies final repositories as those where templateUrl doesn't point to the standard AL-Go repositories (microsoft/AL-Go-PTE, microsoft/AL-Go-AppSource, microsoft/AL-Go). Also removed the unused variable and added comprehensive tests. Commit 990ed65.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the repository detection logic to use GitHub's template repository API instead of templateUrl analysis. The new approach checks the
is_templateproperty from the GitHub API to properly distinguish between template and final repositories. This correctly addresses the issue that there was no reliable mechanism to differentiate repository types. Template repositories (marked as GitHub templates) always allow custom jobs, while final repositories respect theallowCustomJobsInEndRepossetting. Implemented in commit ed35ddc.