Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change access_token to optional #72

Merged
merged 6 commits into from
Sep 30, 2022
Merged

Conversation

MichaelDeBoey
Copy link
Contributor

No description provided.

@@ -15,10 +15,10 @@ inputs:
access_token:
description: 'Your GitHub Access Token, defaults to: {{ github.token }}'
default: '${{ github.token }}'
required: true
required: false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has a default value

Copy link
Owner

@styfle styfle Apr 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the required prop in index.ts?

const token = core.getInput('access_token', { required: true });

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@styfle Should it be deleted?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure. Are either of these required props causing problems?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're not causing any problems to me, but I saw it's set to required although it has a default value so that's why I created this PR

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If its not causing problems, lets not change it 🙂

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would argue that it also implies that the docs can be simplified, if this works without passing the default.

action.yml Outdated Show resolved Hide resolved
@MichaelDeBoey MichaelDeBoey requested a review from styfle April 14, 2021 10:30
action.yml Outdated Show resolved Hide resolved
@MichaelDeBoey
Copy link
Contributor Author

@styfle Is there anything I can do to get this one merged?

@lukasz-mitka
Copy link

@styfle This is valuable PR since it simplifies action usage. Please consider merging it.

@styfle styfle changed the title chore: update action.yml chore: change access_token to optional Sep 30, 2022
@styfle styfle merged commit 7472485 into styfle:main Sep 30, 2022
@MichaelDeBoey MichaelDeBoey deleted the patch-1 branch October 1, 2022 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants