-
Notifications
You must be signed in to change notification settings - Fork 69
Add setting workflow #168
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
base: main
Are you sure you want to change the base?
Add setting workflow #168
Conversation
|
/review |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/improve |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
User description
Type of Change
Related Issues
Breaking Changes
Checklist
Additional Context
PR Type
Enhancement
Description
Introduce a new workflow for repository settings.
Automate branch protection rules from
protection.json.Enable auto-deletion of head branches on merge.
Configure GitHub Pages source branch and path.
Diagram Walkthrough
flowchart LR A[Trigger: PR, Schedule, Dispatch] --> B{setting.yml Workflow}; B --> C[Job: delete-branch]; B --> D[Job: pages]; B --> E[Job: protection]; C -- "Enables" --> F[Auto-delete Head Branches]; D -- "Sets" --> G[GitHub Pages Source]; E -- "Reads" --> H[.github/protection.json]; E -- "Applies" --> I[Branch Protection Rules];File Walkthrough
CODEOWNERS
Update CODEOWNERS configuration.github/CODEOWNERS
.github/from the CODEOWNERS list.protection.json
Define branch protection rules for main and gh-pages.github/protection.json
mainbranch to require 1 approving review and code ownerreviews.
mainbranch.gh-pagesbranch to allow force pushes..sqlfluffignore
Ignore target directory in SQLFluff.sqlfluffignore
target/to the ignore list for SQLFluff linting.gh-deploy.yml
Add manual trigger for gh-deploy workflow.github/workflows/gh-deploy.yml
workflow_dispatchto allow manual triggering of the workflow.setting.yml
New workflow for automated repository settings and branch protection.github/workflows/setting.yml
dispatch.
delete-branchto enable auto-deletion of head branches onmerge.
pagesto set the GitHub Pages source branch and path.protectionjob to apply branch protection rules definedin
.github/protection.json.