From a24415515fa60a22f71f9d9d00e36ca82660cde9 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Wed, 27 Sep 2023 20:07:56 -0700 Subject: [PATCH] fix: use html_url as default, not url (#4) --- add-item/README.md | 2 +- add-item/action.yml | 2 +- archive-item/README.md | 2 +- archive-item/action.yml | 2 +- delete-item/README.md | 2 +- delete-item/action.yml | 2 +- edit-item/README.md | 2 +- edit-item/action.yml | 2 +- get-item/README.md | 2 +- get-item/action.yml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/add-item/README.md b/add-item/README.md index e7f6483..4dc2cc8 100644 --- a/add-item/README.md +++ b/add-item/README.md @@ -11,7 +11,7 @@ Add an issue or pull request to a GitHub project | `token` | A GitHub access token - either a classic PAT or a GitHub app installation token. | Yes | | | `owner` | The owner of the project - either an organization or a user. If not provided, it defaults to the repository owner. | No | `${{ github.repository_owner }}` | | `project-number` | The project number from the project's URL. | Yes | | -| `content-url` | The URL for the issue or pull request to add to the project. If not provided, it defaults to the URL of the triggering issue or pull request. | No | `${{ github.event.pull_request.url \|\| github.event.issue.url }}` | +| `content-url` | The URL for the issue or pull request to add to the project. If not provided, it defaults to the URL of the triggering issue or pull request. | No | `${{ github.event.pull_request.html_url \|\| github.event.issue.html_url }}` | | `field` | Project field to set after adding the item. | No | | | `field-value` | Value to set the project field to. | No | | diff --git a/add-item/action.yml b/add-item/action.yml index 4871091..7083fba 100644 --- a/add-item/action.yml +++ b/add-item/action.yml @@ -16,7 +16,7 @@ inputs: content-url: description: The URL for the issue or pull request to add to the project required: false - default: ${{ github.event.pull_request.url || github.event.issue.url }} + default: ${{ github.event.pull_request.html_url || github.event.issue.html_url }} field: description: Project field to set after adding item required: false diff --git a/archive-item/README.md b/archive-item/README.md index 192c73b..a796f89 100644 --- a/archive-item/README.md +++ b/archive-item/README.md @@ -15,7 +15,7 @@ Can not unarchive items due to a bug in the GitHub GraphQL API, see