diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 0000000..34bcf0e --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,20 @@ +name: Auto-merge dev→main + +on: + pull_request: + types: [opened, reopened, synchronize] + branches: [main] + +jobs: + enable-auto-merge: + runs-on: ubuntu-latest + if: github.head_ref == 'dev' + permissions: + pull-requests: write + contents: write + steps: + - name: Enable auto-merge + run: gh pr merge --auto --merge "${{ github.event.pull_request.number }}" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a904aa..24d3518 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,9 @@ name: Go on: push: - branches: [ "main"] + branches: [ "main", "dev" ] pull_request: - branches: [ "main"] + branches: [ "main" ] jobs: test: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6b5c166 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +ROADMAP.md diff --git a/appconfig.go b/appconfig.go index 6f98627..2c9c70a 100644 --- a/appconfig.go +++ b/appconfig.go @@ -12,6 +12,7 @@ import ( // AppName identifies a supported application for WriteAppConfig. type AppName string +// Supported application names for WriteAppConfig and ClearAppConfig. const ( AppCurl AppName = "curl" // ~/.curlrc AppGit AppName = "git" // git config --global