- 
                Notifications
    
You must be signed in to change notification settings  - Fork 23
 
          feat: [PIPE-5019] Handle no-op, approval, and release job types
          #358
        
          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
          
     Merged
      
      
    Conversation
  
    
      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
    
  
  
    
    …han approval under workflows:
…der workflows: section
…oth with steps and without
no-op, approval, and release job typesno-op, approval, and release job types
      no-op, approval, and release job typesno-op, approval, and release job types
      
              
                    meeech
  
              
              reviewed
              
                  
                    Sep 25, 2025 
                  
              
              
            
            
              
                    SashaLsnko
  
              
              reviewed
              
                  
                    Sep 25, 2025 
                  
              
              
            
            
              
                    meeech
  
              
              approved these changes
              
                  
                    Sep 25, 2025 
                  
              
              
            
            
f2c8bcb    to
    a836855      
    Compare
  
    Co-authored-by: Sasha Lysenko <[email protected]>
a836855    to
    455b9a6      
    Compare
  
    
              
                    SashaLsnko
  
              
              approved these changes
              
                  
                    Sep 26, 2025 
                  
              
              
            
            
  This was referenced Sep 26, 2025 
      
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  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.
  
    
  
    
Jira
Description
Overview
This PR adds missing validations for specifying job types both within
workflows:andjobs:. It also adds tests for new validations!Users can define the job type under the
jobs:section with the following format:Here are the job types allowed to be specified under the
jobs: type:key:no-opbuild(this is the default if type is left unspecifiedapprovalreleaseIt is also possible to specify
type:under theworkflows:section. However, according to this ticket, we should only allowtypeto be specified inline in workflow config forapprovaljobs. This is more for backwards-compatability; and the recommendation is to puttype: approvalunder thejobs:section like all the other job types.Added Hovers
Two hovers were added to
publicschema.jsonthat the Red Hat Yaml Language Server will display for the user:type:specified underworkflows:When hovering over
type:, the user will see:type:specified underjobs:When hovering over
type:under thejobs:section, it will link to documentation and list some examples of possible values.New JSON schema validation
Modified
schema.json(which is what schemastore points to) to allow users to specify type under thejobs:section.The following two forms are now valid:
no-opfor example). Before it would yell at you that you need stepstype: buildtype: approvalwith steps defined, we just ignore the stepsGo/language server based validations
user specifies a type other than
approvalunderworkflows:now gives the following dynamic error:
Validate the allowed types under the
jobs:section.Adds an error if you try to use a type that isn't valid:
Throw a warning if the user tries to use
steps:in a job marked asapproval,no-oporreleaseHow to validate
Follow the steps in
HACKING.mdto use the changes in VScode locally.Other info
Taskfile.yaml's reference to Husky in the init step as we weren't using it