Merge pull request #18 from waja/issue_branches
Adding automated issue branches
This commit is contained in:
		
						commit
						306c791445
					
				
					 2 changed files with 45 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								.github/issue-branch.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.github/issue-branch.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
mode: chatops
 | 
			
		||||
branchName: '${issue.number}-${issue.title[0,40]}'
 | 
			
		||||
gitSafeReplacementChar: '-'
 | 
			
		||||
branches:
 | 
			
		||||
  - label: question
 | 
			
		||||
    skip: true
 | 
			
		||||
  - label: feature
 | 
			
		||||
    prefix: feature/
 | 
			
		||||
  - label: bug
 | 
			
		||||
    prefix: bugfix/
 | 
			
		||||
  - label: security
 | 
			
		||||
    prefix: security/
 | 
			
		||||
  - label: automation
 | 
			
		||||
    prefix: automation/
 | 
			
		||||
openDraftPR: true
 | 
			
		||||
copyIssueDescriptionToPR: false
 | 
			
		||||
copyIssueLabelsToPR: true
 | 
			
		||||
copyIssueAssigneeToPR: true
 | 
			
		||||
copyIssueProjectsToPR: false
 | 
			
		||||
copyIssueMilestoneToPR: true
 | 
			
		||||
							
								
								
									
										25
									
								
								.github/workflows/automate-issue-branch.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/automate-issue-branch.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,25 @@
 | 
			
		|||
name: Tools - Automate Issue Branch
 | 
			
		||||
on:
 | 
			
		||||
  issues:
 | 
			
		||||
    types: [ assigned ]
 | 
			
		||||
  issue_comment:
 | 
			
		||||
    types: [ created ]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  create_issue_branch_job:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    permissions:
 | 
			
		||||
      actions: read
 | 
			
		||||
      checks: write
 | 
			
		||||
      contents: write
 | 
			
		||||
      deployments: none
 | 
			
		||||
      issues: write
 | 
			
		||||
      packages: none
 | 
			
		||||
      pull-requests: write
 | 
			
		||||
      repository-projects: none
 | 
			
		||||
      security-events: none
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Create Issue Branch
 | 
			
		||||
        uses: robvanderleek/create-issue-branch@main
 | 
			
		||||
        env:
 | 
			
		||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue