-
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, Documentation
Description
Add workflow for repository settings.
Configure branch protection rules.
Enable auto-delete head branches.
Set GitHub Pages source.
Diagram Walkthrough
flowchart LR A[Trigger: PR, Schedule, Manual] --> B{Repository Settings Workflow} B --> C[Job: Delete Branch] B --> D[Job: Configure GitHub Pages] B --> E[Job: Apply Branch Protection] C -- "Enables auto-delete" --> F[Repository Settings] D -- "Sets gh-pages source" --> F E -- "Applies rules from protection.json" --> FFile Walkthrough
protection.json
Define branch protection rules for the main branch.github/protection.json
mainbranch, including requiring one approvingreview.
setting.yml
Implement GitHub Actions workflow for repository settings.github/workflows/setting.yml
settings.
dispatch.
delete-branchjob to enable auto-deletion of head branches onmerge.
pagesjob to set GitHub Pages source togh-pagesbranch androot path.
protectionjob to apply branch protection rules from.github/protection.json.actions/create-github-app-token@v2for secure tokengeneration.