Skip to content

Commit

Permalink
chore: replace all instances of "Matt-Gleich" with "gleich"
Browse files Browse the repository at this point in the history
  • Loading branch information
gleich committed Jun 4, 2021
1 parent bfe207a commit 0036fe4
Show file tree
Hide file tree
Showing 20 changed files with 71 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: '🐛 Bug Report'
about: Bug report
title: ''
labels: bug
assignees: '@Matt-Gleich'
assignees: '@gleich'
---

<!--
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: '🚀 Feature request'
about: Request a feature
title: ''
labels: enhancement
assignees: '@Matt-Gleich'
assignees: '@gleich'
---

<!--
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- uses: Matt-Gleich/gh_fsync@master
- uses: gleich/gh_fsync@master
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!-- DO NOT REMOVE - contributor_list:data:start:["Matt-Gleich"]:end -->
<!-- DO NOT REMOVE - contributor_list:data:start:["gleich"]:end -->

# gh_fsync ![Docker Pulls](https://img.shields.io/docker/pulls/mattgleich/gh_fsync)

🔄 GitHub action to sync files across repos in GitHub

![build](https://github.com/Matt-Gleich/gh_fsync/workflows/build/badge.svg)
![test](https://github.com/Matt-Gleich/gh_fsync/workflows/test/badge.svg)
![lint](https://github.com/Matt-Gleich/gh_fsync/workflows/lint/badge.svg)
![release](https://github.com/Matt-Gleich/gh_fsync/workflows/release/badge.svg)
![build](https://github.com/gleich/gh_fsync/workflows/build/badge.svg)
![test](https://github.com/gleich/gh_fsync/workflows/test/badge.svg)
![lint](https://github.com/gleich/gh_fsync/workflows/lint/badge.svg)
![release](https://github.com/gleich/gh_fsync/workflows/release/badge.svg)

## ❓ What is gh_fsync

Expand Down Expand Up @@ -43,15 +43,15 @@ List all of the files you want to sync. `path:` is the file path in your repo an
```yaml
files:
- path: CONTRIBUTING.md
source: https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md
source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md
```

You can even replace values specific to a file. Below is an example:

```yaml
files:
- path: CONTRIBUTING.md
source: https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md
source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md
replace:
- before: project_name
after: gh_fsync2
Expand All @@ -65,7 +65,7 @@ replace:
after: gh_fsync
files:
- path: CONTRIBUTING.md
source: https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md
source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md
replace:
- before: project_name
after: gh_fsync2
Expand All @@ -88,12 +88,12 @@ replace:
after: gh_fsync
files:
- path: CONTRIBUTING.md
source: https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md
source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md
replace:
- before: project_name
after: gh_fsync2
- path: LICENSE.md
source: https://github.com/Matt-Gleich/go_template/blob/master/LICENSE.md
source: https://github.com/gleich/go_template/blob/master/LICENSE.md
ignore_global_replace: true
replace:
- before: author_name
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2
- name: gh_fsync
uses: Matt-Gleich/gh_fsync@master
uses: gleich/gh_fsync@master
```

If you want to sync files from the `.github` folder you need to to create a personal access token with the `read` and `workflows` permissions. Then set a secret for the repo with the value being the personal access token and the name being `PERSONAL_ACCESS_TOKEN`. Finally change your action file to the following:
Expand All @@ -145,17 +145,17 @@ jobs:
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: gh_fsync
uses: Matt-Gleich/gh_fsync@master
uses: gleich/gh_fsync@master
```

## 🙌 Contributing

Before contributing please read the [CONTRIBUTING.md file](https://github.com/Matt-Gleich/gh_fsync/blob/master/CONTRIBUTING.md)
Before contributing please read the [CONTRIBUTING.md file](https://github.com/gleich/gh_fsync/blob/master/CONTRIBUTING.md)

<!-- DO NOT REMOVE - contributor_list:start -->

## 👥 Contributors

- **[@Matt-Gleich](https://github.com/Matt-Gleich)**
- **[@gleich](https://github.com/gleich)**

<!-- DO NOT REMOVE - contributor_list:end -->
4 changes: 2 additions & 2 deletions examples/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ replace:
after: gh_fsync
files:
- path: CONTRIBUTING.md
source: https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md
source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md
replace:
- before: project_name
after: gh_fsync2
- path: LICENSE.md
source: https://github.com/Matt-Gleich/go_template/blob/master/LICENSE.md
source: https://github.com/gleich/go_template/blob/master/LICENSE.md
ignore_global_replace: true
replace:
- before: author_name
Expand Down
20 changes: 10 additions & 10 deletions fsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ replace:
- before: project_description
after: 🔄 GitHub action to sync files across repos in GitHub
- before: github_username
after: Matt-Gleich
after: gleich
- before: project_author_email
after: [email protected]
- before: docker_username
Expand All @@ -14,20 +14,20 @@ replace:
after: Matthew Gleich
files:
- path: .gitignore
source: https://github.com/Matt-Gleich/go_template/blob/master/.gitignore
source: https://github.com/gleich/go_template/blob/master/.gitignore
- path: LICENSE.md
source: https://github.com/Matt-Gleich/Matt-Gleich/blob/master/standard_documents/licenses/MIT_LICENSE.md
source: https://github.com/gleich/gleich/blob/master/standard_documents/licenses/MIT_LICENSE.md
- path: CONTRIBUTING.md
source: https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md
source: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md
- path: CODE_OF_CONDUCT.md
source: https://github.com/Matt-Gleich/Matt-Gleich/blob/master/standard_documents/CODE_OF_CONDUCT.md
source: https://github.com/gleich/gleich/blob/master/standard_documents/CODE_OF_CONDUCT.md
- path: .github/PULL_REQUEST_TEMPLATE.md
source: https://github.com/Matt-Gleich/Matt-Gleich/blob/master/standard_documents/templates/pull_request.md
source: https://github.com/gleich/gleich/blob/master/standard_documents/templates/pull_request.md
- path: .github/ISSUE_TEMPLATE/bug_report.md
source: https://github.com/Matt-Gleich/Matt-Gleich/blob/master/standard_documents/templates/issue_bug.md
source: https://github.com/gleich/gleich/blob/master/standard_documents/templates/issue_bug.md
- path: .github/ISSUE_TEMPLATE/feature_request.md
source: https://github.com/Matt-Gleich/Matt-Gleich/blob/master/standard_documents/templates/issue_feature.md
source: https://github.com/gleich/gleich/blob/master/standard_documents/templates/issue_feature.md
- path: .github/workflows/contributors.yml
source: https://github.com/Matt-Gleich/Matt-Gleich/blob/master/standard_documents/workflows/contributors.yml
source: https://github.com/gleich/gleich/blob/master/standard_documents/workflows/contributors.yml
- path: .github/workflows/fsync.yml
source: https://github.com/Matt-Gleich/Matt-Gleich/blob/master/standard_documents/workflows/fsync.yml
source: https://github.com/gleich/gleich/blob/master/standard_documents/workflows/fsync.yml
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/Matt-Gleich/gh_fsync
module github.com/gleich/gh_fsync

go 1.15

require (
github.com/Matt-Gleich/logoru v0.0.0-20201216171923-6f5b594893b5
github.com/gleich/logoru v0.0.0-20210604030243-2b936140111e
github.com/kr/text v0.2.0 // indirect
github.com/stretchr/testify v1.6.1
github.com/stretchr/testify v1.7.0
golang.org/x/sys v0.0.0-20201223074533-0d417f636930 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
)
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
github.com/Matt-Gleich/logoru v0.0.0-20201216171923-6f5b594893b5 h1:yxVa/pVY5geot9eO4Z52u/gmxjtJsG0M1dNEmRQo2c4=
github.com/Matt-Gleich/logoru v0.0.0-20201216171923-6f5b594893b5/go.mod h1:NSc2QtDOXkSUcHkyRaO8TUpQonmG79zq5OZ0PIGZ3IQ=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg=
github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM=
github.com/gleich/logoru v0.0.0-20210604030243-2b936140111e h1:FPgs1T5xYBvb1dl8lzQPcI5oP8Ebsfvjmh+1ZvsCdu0=
github.com/gleich/logoru v0.0.0-20210604030243-2b936140111e/go.mod h1:sGBOiXpXj5KPWwXHhzyGJBe4+UC8NpIfQf7pTlTwMYI=
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
Expand All @@ -19,8 +19,8 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand All @@ -30,5 +30,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"github.com/Matt-Gleich/gh_fsync/pkg/config"
"github.com/Matt-Gleich/gh_fsync/pkg/git"
"github.com/Matt-Gleich/gh_fsync/pkg/source"
"github.com/Matt-Gleich/gh_fsync/pkg/write"
"github.com/gleich/gh_fsync/pkg/config"
"github.com/gleich/gh_fsync/pkg/git"
"github.com/gleich/gh_fsync/pkg/source"
"github.com/gleich/gh_fsync/pkg/write"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"strings"

"github.com/Matt-Gleich/gh_fsync/pkg/utils"
"github.com/Matt-Gleich/logoru"
"github.com/gleich/gh_fsync/pkg/utils"
"github.com/gleich/logoru"
"gopkg.in/yaml.v3"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package config
import (
"testing"

"github.com/Matt-Gleich/gh_fsync/pkg/utils"
"github.com/gleich/gh_fsync/pkg/utils"
"github.com/stretchr/testify/assert"
)

Expand All @@ -18,15 +18,15 @@ func TestRawRead(t *testing.T) {
Files: []FileOutline{
{
Path: "CONTRIBUTING.md",
Source: "https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md",
Source: "https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md",
LocalReplace: []ReplaceOutline{
{Before: "project_name", After: "gh_fsync2"},
},
IgnoreGlobalReplace: false,
},
{
Path: "LICENSE.md",
Source: "https://github.com/Matt-Gleich/go_template/blob/master/LICENSE.md",
Source: "https://github.com/gleich/go_template/blob/master/LICENSE.md",
LocalReplace: []ReplaceOutline{
{Before: "author_name", After: "Matthew Gleich"},
},
Expand Down
6 changes: 3 additions & 3 deletions pkg/git/commit.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package git

import (
"github.com/Matt-Gleich/gh_fsync/pkg/config"
"github.com/Matt-Gleich/gh_fsync/pkg/utils"
"github.com/Matt-Gleich/logoru"
"github.com/gleich/gh_fsync/pkg/config"
"github.com/gleich/gh_fsync/pkg/utils"
"github.com/gleich/logoru"
)

// Commit the changes
Expand Down
4 changes: 2 additions & 2 deletions pkg/git/push.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package git

import (
"github.com/Matt-Gleich/gh_fsync/pkg/utils"
"github.com/Matt-Gleich/logoru"
"github.com/gleich/gh_fsync/pkg/utils"
"github.com/gleich/logoru"
)

// Push changes
Expand Down
2 changes: 1 addition & 1 deletion pkg/source/current.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package source
import (
"os"

"github.com/Matt-Gleich/logoru"
"github.com/gleich/logoru"
)

// Prod version of rawGetChanges
Expand Down
10 changes: 5 additions & 5 deletions pkg/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"strings"

"github.com/Matt-Gleich/gh_fsync/pkg/config"
"github.com/Matt-Gleich/gh_fsync/pkg/utils"
"github.com/Matt-Gleich/logoru"
"github.com/gleich/gh_fsync/pkg/config"
"github.com/gleich/gh_fsync/pkg/utils"
"github.com/gleich/logoru"
)

// A file entry
Expand Down Expand Up @@ -90,8 +90,8 @@ func getSourceContent(url string) string {
}

// Replace the github view of a url to a raw text view
// From: https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md
// To: https://raw.githubusercontent.com/Matt-Gleich/go_template/master/CONTRIBUTING.md
// From: https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md
// To: https://raw.githubusercontent.com/gleich/go_template/master/CONTRIBUTING.md
func rawURL(url string) string {
chunks := strings.Split(url, "/")
blobRemoved := strings.Join(append(chunks[:5], chunks[6:]...), "/")
Expand Down
14 changes: 7 additions & 7 deletions pkg/source/source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package source
import (
"testing"

"github.com/Matt-Gleich/gh_fsync/pkg/config"
"github.com/gleich/gh_fsync/pkg/config"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -34,15 +34,15 @@ func TestReplace(t *testing.T) {

func TestGetContent(t *testing.T) {
instance1 := getSourceContent(
"https://raw.githubusercontent.com/Matt-Gleich/jsx/master/public/robots.txt",
"https://raw.githubusercontent.com/gleich/jsx/master/public/robots.txt",
)
assert.Equal(
t,
"# https://www.robotstxt.org/robotstxt.html\nUser-agent: *\nDisallow:\n",
instance1,
)
instance2 := getSourceContent(
"https://raw.githubusercontent.com/Matt-Gleich/CongressPresenation/master/.metadata",
"https://raw.githubusercontent.com/gleich/CongressPresenation/master/.metadata",
)
assert.Equal(
t,
Expand All @@ -52,16 +52,16 @@ func TestGetContent(t *testing.T) {
}

func TestRawURL(t *testing.T) {
instance1 := rawURL("https://github.com/Matt-Gleich/go_template/blob/master/CONTRIBUTING.md")
instance1 := rawURL("https://github.com/gleich/go_template/blob/master/CONTRIBUTING.md")
assert.Equal(
t,
"https://raw.githubusercontent.com/Matt-Gleich/go_template/master/CONTRIBUTING.md",
"https://raw.githubusercontent.com/gleich/go_template/master/CONTRIBUTING.md",
instance1,
)
instance2 := rawURL("https://github.com/Matt-Gleich/Dot-Files/blob/master/LICENSE.md")
instance2 := rawURL("https://github.com/gleich/Dot-Files/blob/master/LICENSE.md")
assert.Equal(
t,
"https://raw.githubusercontent.com/Matt-Gleich/Dot-Files/master/LICENSE.md",
"https://raw.githubusercontent.com/gleich/Dot-Files/master/LICENSE.md",
instance2,
)
}
2 changes: 1 addition & 1 deletion pkg/utils/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.com/Matt-Gleich/logoru"
"github.com/gleich/logoru"
)

// Check an error in one line
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io/ioutil"
"os"

"github.com/Matt-Gleich/logoru"
"github.com/gleich/logoru"
)

// Read a file and check for an error beforehand
Expand Down
Loading

0 comments on commit 0036fe4

Please sign in to comment.