Skip to content

Commit

Permalink
UPDATE README
Browse files Browse the repository at this point in the history
  • Loading branch information
John Ouellet committed Oct 14, 2021
1 parent d3d2ff2 commit 0d68625
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
github_token: ${{ secrets.TRANSFER_ISSUE_TOKEN }}
labels_file_path: '.github/transfer-issue-labels.yml'
map_repo_labels_file_path: '.github/transfer-issue-map-repo-labels.yml'
- name: echo transferred issue number
- name: Echo Output Data
if: steps.run_action.outputs.transferred_issue_number != ''
run: echo ${{steps.run_action.outputs.transferred_issue_number}}
run: |
echo ${{steps.run_action.outputs.transferred_issue_number}}
echo ${{steps.run_action.outputs.transferred_issue_url}}
echo ${{steps.run_action.outputs.transferred_repo}}
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ trill: tronic

## Advanced Example

This will use our yml file to check tags to dtermine which repos to send them to. Useful if you have a more complex use case.
In this example, we are not creating a stub and just updating the tranferred issue via [https://github.com/actions/github-script](https://github.com/actions/github-script).

```
- name: Transfer Issue & Create Stub
Expand All @@ -99,12 +99,11 @@ This will use our yml file to check tags to dtermine which repos to send them to
uses: actions/github-script@v5
if: steps.transfer-issue.outputs.transferred_issue_number != ''
script: |
let transferredId = steps.transfer-issue.outputs.transferred_issue_number;
await github.rest.issues.createComment({
issue_number: transferredId,
issue_number: `${{ steps.transfer-issue.outputs.transferred_issue_number}}`,
owner: context.repo.owner,
repo: context.repo.repo,
body: body
repo: `${{ steps.transfer-issue.outputs.transferred_repo }}`,
body: `@${ context.payload.issue.user.login } your issue is over here now!`
});
```
Expand Down

0 comments on commit 0d68625

Please sign in to comment.