Skip to content

Commit

Permalink
Changed pull request to use html url
Browse files Browse the repository at this point in the history
  • Loading branch information
dalezak committed May 3, 2021
1 parent 54ded9d commit e6a5ecb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# GitHub-Commit-To-Trello-Card
### GitHub Action to attach GitHub commits and pull requests to a Trello card

#### Action Marketplace
[https://github.com/marketplace/actions/github-commit-to-trello-card](https://github.com/marketplace/actions/github-commit-to-trello-card)

#### Action Variables
- **trello-api-key** - Trello API key, visit https://trello.com/app-key for key
- **trello-auth-token** - Trello auth token, visit https://trello.com/app-key then click generate a token
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8853,7 +8853,7 @@ async function handleHeadCommit(data) {

async function handlePullRequest(data) {
console.log("handlePullRequest", data);
let url = data.url;
let url = data.html_url || data.url;
let message = data.title;
let user = data.user.name;
let card = await getCardOnBoard(trelloBoardId, message);
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async function handleHeadCommit(data) {

async function handlePullRequest(data) {
console.log("handlePullRequest", data);
let url = data.url;
let url = data.html_url || data.url;
let message = data.title;
let user = data.user.name;
let card = await getCardOnBoard(trelloBoardId, message);
Expand Down

0 comments on commit e6a5ecb

Please sign in to comment.