Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
fix(multiple): required action inputs #25
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Sep 6, 2020
1 parent 92e711c commit e9c34e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/welcome/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ inputs:
github-token:
description: 'GitHub token for repo'
required: true
issue-message:
description: 'Message to reply to new issue as a comment'
required: true
default: 'Thank you for creating an Issue and contributing to our community project :tada:. Someone from the community will get back to you soon, usually within 24 hours'
pr-message:
description: 'Message to reply to new pull request as a comment'
required: true
default: 'Thank you for creating a Pull Request and contributing to our community project :tada:. Someone from the community will get back to you soon, usually within 24 hours'
runs:
using: 'node12'
main: 'index.js'
2 changes: 1 addition & 1 deletion src/welcome/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const github = require('@actions/github');

// add a comment to the issue or pull request
// @TODO: with a markdown sheild / badge
const client = new github.GitHub(githubToken);
const client = github.getOctokit(githubToken);
const context = github.context;

if (context.payload.action !== 'opened') {
Expand Down

0 comments on commit e9c34e0

Please sign in to comment.