-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -16,11 +16,11 @@ jobs: | |
uses: ./ | ||
id: linked-issues | ||
with: | ||
access-token: "${{ secrets.GITHUB_TOKEN }}" | ||
access-token: "${{ secrets.CROSS_REPO_TOKEN }}" | ||
- name: Move to Ready for QA | ||
uses: kin/[email protected] | ||
with: | ||
access-token: "${{ secrets.GITHUB_TOKEN }}" | ||
access-token: "${{ secrets.CROSS_REPO_TOKEN }}" | ||
project-name: "My Project" | ||
target-column: "In progress" | ||
issues: ${{ steps.linked-issues.outputs.issues }} | ||
|
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 |
---|---|---|
|
@@ -25,27 +25,27 @@ jobs: | |
uses: kin/[email protected] | ||
id: linked-issues | ||
with: | ||
# Required: personal access token with permissions to archive cards | ||
access-token: "${{ secrets.GITHUB_TOKEN }}" | ||
# Required: personal access token with permissions to archive cards. This needs to be set in Settings -> Secrets with a token that has permissions for all repos the issues are linked in for cross-repo functionality | ||
access-token: "${{ secrets.CROSS_REPO_TOKEN }}" | ||
- name: Move Issues to Ready for Review Column | ||
uses: kin/[email protected] | ||
with: | ||
access-token: "${{ secrets.GITHUB_TOKEN }}" | ||
access-token: "${{ secrets.CROSS_REPO_TOKEN }}" | ||
target-column: "Ready for Review" | ||
issues: ${{ steps.linked-issues.outputs.issues }} | ||
``` | ||
|
||
## Inputs | ||
- `access-token`: Access token for repository. Use `"{{ secrets.GITHUB_TOKEN }}"` to prevent leaking secrets. | ||
- `access-token`: Access token for repository. Using `"{{ secrets.GITHUB_TOKEN }}"` will work for same-repo use. For multi-repo use, this needs to be set in Settings -> Secrets with a token that has permissions for all repos the issues are linked to. Set it to a different variable name and use this variable instead of `GITHUB_TOKEN` (e.g. `${{ secrets.CROSS_REPO_TOKEN }}` | ||
- It is important to note that this action requires that the workflow trigger event is of the `pull_request` or `pull_request_target` type. | ||
|
||
## Outputs | ||
- `issues`: A stringified array of [issue payloads](https://docs.github.com/en/free-pro-team@latest/rest/reference/issues#get-an-issue) with each issue payload formatted as `{ issue: { <payload> } }` | ||
|
||
## Known Issues | ||
This will not find issues that are linked through the UI, nor will it find issues linked in repos outside of the one the PR is in. There is a planned fix for both of these issues. | ||
This will not find issues that are linked through the UI. A future release is planned to find these too. | ||
|
||
## Contribution | ||
To cotnribute, please open an Issue on the action repo: https://github.com/kin/gh-action-autoarchive-issues-for-column to discuss bugs/modifications. |
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