-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: [#1] Disable or enable wiki tab. * feat: [#17] Add a description to a GitHub repo. * feat: [#3][#4][#10] disable merge commits, rebase merging and delete branch on merge.
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,40 @@ | ||
# settings-action | ||
|
||
Settings Action that will configure the settings of a GitHub repository. | ||
|
||
## usage | ||
|
||
| Option | Description | | ||
| --------------------- | --------------------------------------------- | | ||
| description | Change the description of a GitHub repository | | ||
| project | The owner/repo | | ||
| settings_discussions | Enable the discussions tab or not | | ||
| settings_merge_rebase | Enable merge request rebase | | ||
| settings_merge_squash | Enable merge request squash | | ||
| settings_projects | Whether the project tab should be enabled | | ||
| settings_wiki | Wiki enabled or not | | ||
|
||
```bash | ||
--- | ||
name: settings-guard | ||
'on': | ||
schedule: | ||
- cron: '42 6 * * *' | ||
permissions: {} | ||
jobs: | ||
settings-action: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: 030/settings-action@v0.2.0 | ||
env: | ||
GH_TOKEN: ${{ secrets.SETTINGS_GUARD }} | ||
with: | ||
project: 030/settings-guard | ||
description: "Settings Action configures the settings of a GitHub repository." | ||
settings_delete_branch_on_merge: true | ||
settings_discussions: false | ||
settings_merge_rebase: false | ||
settings_merge_squash: false | ||
settings_projects: false | ||
settings_wiki: false | ||
``` |
This file contains 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