Skip to content

Commit 9a398a4

Browse files
committed
[master]: refactor
1 parent 506a4d3 commit 9a398a4

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

demo/Blackholio/.github/workflows/repo-migration-notice.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
env:
1717
migrated_repo: https://github.com/ClockworkLabs/SpacetimeDB
1818
migrated_path: demo/Blackholio
19+
default_branch: master
1920
with:
2021
script: |
2122
const isPR = context.eventName === 'pull_request';
@@ -26,7 +27,7 @@ jobs:
2627
message = `
2728
Thank you for submitting this!
2829
29-
We are in the process of migrating this repository (see [DEVELOP.md](../blob/master/DEVELOP.md)).
30+
We are in the process of migrating this repository (see [DEVELOP.md](../blob/${process.env.default_branch}/DEVELOP.md)).
3031
3132
To make sure we see your PR, please open it in the [SpacetimeDB](${process.env.migrated_repo}) repo, under [${process.env.migrated_path}](${process.env.migrated_repo}/tree/master/${process.env.migrated_path}).
3233
@@ -36,7 +37,7 @@ jobs:
3637
message = `
3738
Thank you for submitting this!
3839
39-
We are in the process of migrating this repository (see [DEVELOP.md](../blob/master/DEVELOP.md)).
40+
We are in the process of migrating this repository (see [DEVELOP.md](../blob/${process.env.default_branch}/DEVELOP.md)).
4041
4142
To make sure we actually see your issue, please open it here: [SpacetimeDB/issues/new](${process.env.migrated_repo}/issues/new).
4243

docs/.github/workflows/repo-migration-notice.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
env:
1717
migrated_repo: https://github.com/ClockworkLabs/SpacetimeDB
1818
migrated_path: docs
19+
default_branch: master
1920
with:
2021
script: |
2122
const isPR = context.eventName === 'pull_request';
@@ -26,7 +27,7 @@ jobs:
2627
message = `
2728
Thank you for submitting this!
2829
29-
We are in the process of migrating this repository (see [README.md](../blob/master/README.md)).
30+
We are in the process of migrating this repository (see [DEVELOP.md](../blob/${process.env.default_branch}/DEVELOP.md)).
3031
3132
To make sure we see your PR, please open it in the [SpacetimeDB](${process.env.migrated_repo}) repo, under [${process.env.migrated_path}](${process.env.migrated_repo}/tree/master/${process.env.migrated_path}).
3233
@@ -36,7 +37,7 @@ jobs:
3637
message = `
3738
Thank you for submitting this!
3839
39-
We are in the process of migrating this repository (see [README.md](../blob/master/README.md)).
40+
We are in the process of migrating this repository (see [DEVELOP.md](../blob/${process.env.default_branch}/DEVELOP.md)).
4041
4142
To make sure we actually see your issue, please open it here: [SpacetimeDB/issues/new](${process.env.migrated_repo}/issues/new).
4243

sdks/csharp/.github/workflows/repo-migration-notice.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
env:
1717
migrated_repo: https://github.com/ClockworkLabs/SpacetimeDB
1818
migrated_path: sdks/csharp
19+
default_branch: release/latest
1920
with:
2021
script: |
2122
const isPR = context.eventName === 'pull_request';
@@ -26,7 +27,7 @@ jobs:
2627
message = `
2728
Thank you for submitting this!
2829
29-
We are in the process of migrating this repository (see [DEVELOP.md](../blob/release/latest/DEVELOP.md)).
30+
We are in the process of migrating this repository (see [DEVELOP.md](../blob/${process.env.default_branch}/DEVELOP.md)).
3031
3132
To make sure we see your PR, please open it in the [SpacetimeDB](${process.env.migrated_repo}) repo, under [${process.env.migrated_path}](${process.env.migrated_repo}/tree/master/${process.env.migrated_path}).
3233
@@ -36,7 +37,7 @@ jobs:
3637
message = `
3738
Thank you for submitting this!
3839
39-
We are in the process of migrating this repository (see [DEVELOP.md](../blob/release/latest/DEVELOP.md)).
40+
We are in the process of migrating this repository (see [DEVELOP.md](../blob/${process.env.default_branch}/DEVELOP.md)).
4041
4142
To make sure we actually see your issue, please open it here: [SpacetimeDB/issues/new](${process.env.migrated_repo}/issues/new).
4243

sdks/typescript/.github/workflows/repo-migration-notice.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
env:
1717
migrated_repo: https://github.com/ClockworkLabs/SpacetimeDB
1818
migrated_path: sdks/typescript
19+
default_branch: main
1920
with:
2021
script: |
2122
const isPR = context.eventName === 'pull_request';
@@ -26,7 +27,7 @@ jobs:
2627
message = `
2728
Thank you for submitting this!
2829
29-
We are in the process of migrating this repository (see [DEVELOP.md](../blob/main/DEVELOP.md)).
30+
We are in the process of migrating this repository (see [DEVELOP.md](../blob/${process.env.default_branch}/DEVELOP.md)).
3031
3132
To make sure we see your PR, please open it in the [SpacetimeDB](${process.env.migrated_repo}) repo, under [${process.env.migrated_path}](${process.env.migrated_repo}/tree/master/${process.env.migrated_path}).
3233
@@ -36,7 +37,7 @@ jobs:
3637
message = `
3738
Thank you for submitting this!
3839
39-
We are in the process of migrating this repository (see [DEVELOP.md](../blob/main/DEVELOP.md)).
40+
We are in the process of migrating this repository (see [DEVELOP.md](../blob/${process.env.default_branch}/DEVELOP.md)).
4041
4142
To make sure we actually see your issue, please open it here: [SpacetimeDB/issues/new](${process.env.migrated_repo}/issues/new).
4243

0 commit comments

Comments
 (0)