Skip to content

Commit

Permalink
fix: use html_url as default, not url (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Sep 28, 2023
1 parent 39f9122 commit a244155
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion add-item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |

Expand Down
2 changes: 1 addition & 1 deletion add-item/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion archive-item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Can not unarchive items due to a bug in the GitHub GraphQL API, see <https://git
| `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 | |
| `item` | The item to archive - may be the global ID for the item, the content ID, or the content URL. | No | `${{ github.event.pull_request.url \|\| github.event.issue.url }}` |
| `item` | The item to archive - may be the global ID for the item, the content ID, or the content URL. | No | `${{ github.event.pull_request.html_url \|\| github.event.issue.html_url }}` |
| `archived` | Archived state of the item - set false to unarchive an archived item | No | `true` |
| `fail-if-item-not-found` | Should the action fail if the item is not found on the project | No | `true` |

Expand Down
2 changes: 1 addition & 1 deletion archive-item/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
item:
description: The item to archive - may be the global ID for the item, the content ID, or the content URL
required: false
default: ${{ github.event.pull_request.url || github.event.issue.url }}
default: ${{ github.event.pull_request.html_url || github.event.issue.html_url }}
archived:
description: Archived state of the item - set false to unarchive an archived item
required: false
Expand Down
2 changes: 1 addition & 1 deletion delete-item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Can not delete archived items due to a bug in the GitHub GraphQL API, see <https
| `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 | |
| `item` | The item to delete - may be the global ID for the item, the content ID, or the content URL. | No | `${{ github.event.pull_request.url \|\| github.event.issue.url }}` |
| `item` | The item to delete - may be the global ID for the item, the content ID, or the content URL. | No | `${{ github.event.pull_request.html_url \|\| github.event.issue.html_url }}` |

## Outputs

Expand Down
2 changes: 1 addition & 1 deletion delete-item/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
item:
description: The item to delete - may be the global ID for the item, the content ID, or the content URL
required: false
default: ${{ github.event.pull_request.url || github.event.issue.url }}
default: ${{ github.event.pull_request.html_url || github.event.issue.html_url }}

runs:
using: node20
Expand Down
2 changes: 1 addition & 1 deletion edit-item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Can not edit archived items due to a bug in the GitHub GraphQL API, see <https:/
| `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 | |
| `item` | The item to edit - may be the global ID for the item, the content ID, or the content URL. | No | `${{ github.event.pull_request.url \|\| github.event.issue.url }}` |
| `item` | The item to edit - may be the global ID for the item, the content ID, or the content URL. | No | `${{ github.event.pull_request.html_url \|\| github.event.issue.html_url }}` |
| `title` | Title for the item - can only be set for draft issues. | No | |
| `body` | Body for the item - can only be set for draft issues. | No | |
| `field` | Project field to set on the item. | No | |
Expand Down
2 changes: 1 addition & 1 deletion edit-item/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
item:
description: The item to edit - may be the global ID for the item, the content ID, or the content URL
required: false
default: ${{ github.event.pull_request.url || github.event.issue.url }}
default: ${{ github.event.pull_request.html_url || github.event.issue.html_url }}
title:
description: Title for the item - can only be set for draft issues
required: false
Expand Down
2 changes: 1 addition & 1 deletion get-item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Can not get archived items due to a bug in the GitHub GraphQL API, see <https://
| `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 | |
| `item` | The item to get - may be the global ID for the item, the content ID, or the content URL. | No | `${{ github.event.pull_request.url \|\| github.event.issue.url }}` |
| `item` | The item to get - may be the global ID for the item, the content ID, or the content URL. | No | `${{ github.event.pull_request.html_url \|\| github.event.issue.html_url }}` |
| `field` | Project field to get on the item. | No | |

## Outputs
Expand Down
2 changes: 1 addition & 1 deletion get-item/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
item:
description: The item to get - may be the global ID for the item, the content ID, or the content URL
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 get on the item
required: false
Expand Down

0 comments on commit a244155

Please sign in to comment.