Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit ba77ea6

Browse files
authored
Merge pull request #4 from jonabc/link-columns
Mirror columns between project boards
2 parents ca4f179 + ac057ad commit ba77ea6

12 files changed

Lines changed: 7162 additions & 348 deletions

File tree

.eslintrc.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818
"@typescript-eslint/await-thenable": "error",
1919
"@typescript-eslint/ban-ts-ignore": "error",
2020
"camelcase": "off",
21-
"@typescript-eslint/camelcase": "error",
21+
"@typescript-eslint/camelcase": ["error", { "properties": "never" }],
2222
"@typescript-eslint/class-name-casing": "error",
2323
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
2424
"@typescript-eslint/func-call-spacing": ["error", "never"],
2525
"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
2626
"@typescript-eslint/no-array-constructor": "error",
2727
"@typescript-eslint/no-empty-interface": "error",
28-
"@typescript-eslint/no-explicit-any": "error",
2928
"@typescript-eslint/no-extraneous-class": "error",
3029
"@typescript-eslint/no-for-in-array": "error",
3130
"@typescript-eslint/no-inferrable-types": "error",
@@ -55,4 +54,4 @@
5554
"es6": true,
5655
"jest/globals": true
5756
}
58-
}
57+
}

.github/workflows/mirror.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "mirror repo projects"
2+
on: # run this on a cron schedule
3+
schedule:
4+
- cron: '*/3 * * * *'
5+
push:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: ./
13+
with:
14+
sourceColumnId: MDEzOlByb2plY3RDb2x1bW44NTA2NzUz
15+
targetColumnId: MDEzOlByb2plY3RDb2x1bW44NTA2NzYw
16+
github_token: ${{ secrets.TEST_SECRET }}

.github/workflows/test.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,3 @@ jobs:
1414
- run: |
1515
npm install
1616
npm run all
17-
test: # make sure the action works on a clean machine without building
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v1
21-
- uses: ./
22-
with:
23-
milliseconds: 1000

__tests__/main.test.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

action.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
name: 'Your name here'
2-
description: 'Provide a description here'
3-
author: 'Your name or organization here'
1+
name: 'GitHub Projects Column Mirror'
2+
description: 'Reflects all changes to a source project column in a target project column'
3+
author: 'Jon Ruskin'
44
inputs:
5-
myInput: # change this
6-
description: 'input description here'
7-
default: 'default value if applicable'
5+
sourceColumnId:
6+
description: "Id of the source project column"
7+
required: true
8+
targetColumnId:
9+
description: "Id of the target project column"
10+
required: true
11+
github_token:
12+
description: "GitHub token to use for authenticated API calls"
13+
required: false
14+
default: ${{ github.token }}
815
runs:
916
using: 'node12'
1017
main: 'dist/index.js'

0 commit comments

Comments
 (0)