-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Another try at getting the action to work locally
- Loading branch information
Showing
22 changed files
with
25,521 additions
and
5,329 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Maximilian Schirm | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# issue-sync-action | ||
Used to sync issues and comments from one repository to another, for example for use in internal roadmap publication. | ||
**Please note: you need to set a GITHUB_TOKEN environmental variable that is authorized to read from the source repository as well as write new issues to the target repository. It is recommended to use the integrated GitHub Actions secrets vault for managing this secret.** | ||
|
||
This supports different options: | ||
```yml | ||
only_sync_on_label: | ||
description: 'If set, will only sync on issues with a label of this text' | ||
required: false | ||
repo_source: | ||
description: 'Org/Repo slug for the source repository. Will default to action launch repo if not set.' | ||
required: false | ||
repo_target: | ||
description: 'Org/repo slug for the target repository.' | ||
required: true | ||
only_sync_main_issue: | ||
description: 'Will exclude the syncing of comments.' | ||
required: false | ||
default: "false" | ||
``` | ||
Here is a usage example: | ||
```yml | ||
|
||
on: | ||
issues: | ||
issue_comment: | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_BOTH_REPOS }} | ||
|
||
- name: Run the typescript action | ||
uses: Maximisch/issue-sync-action | ||
with: | ||
repo_target: "MyOrg/public-roadmap" # The target repository | ||
only_sync_on_label: "publicise" # Only syncs issues with this label set | ||
only_sync_main_issue: true # Excludes comments | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: 'Issue sync action' | ||
description: 'Sync issues from one repository to another.' | ||
branding: | ||
icon: repeat | ||
color: red | ||
author: Maximisch | ||
inputs: | ||
only_sync_on_label: | ||
description: 'If set, will only sync on issues with a label of this text' | ||
required: false | ||
repo_source: | ||
description: 'Org/Repo slug for the source repository. Will default to action launch repo if not set.' | ||
required: false | ||
repo_target: | ||
description: 'Org/repo slug for the target repository.' | ||
required: true | ||
only_sync_main_issue: | ||
description: 'Will exclude the syncing of comments.' | ||
required: false | ||
default: "false" | ||
runs: | ||
using: 'node16' | ||
main: 'dist/index.js' |
Oops, something went wrong.