Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Go

on:
push:
branches: [ "main"]
branches: [ "main", "dev" ]
pull_request:
branches: [ "main"]
branches: [ "main" ]

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ROADMAP.md
1 change: 1 addition & 0 deletions appconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading