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

feat: add support for workflow_dispatch event #51

Merged
merged 29 commits into from
Aug 10, 2021
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0f45911
feat: support workflow dispatch trigger
jhoffmcd Jul 5, 2021
dfb2c6b
feat: return json instead of text in fetch
jhoffmcd Jul 5, 2021
cfed977
feat: add PR_NUMBER to inputs
jhoffmcd Jul 5, 2021
c755248
chore: add logging for troubleshooting
jhoffmcd Jul 5, 2021
6f88a38
fix: wrong headers on get PR
jhoffmcd Jul 5, 2021
6cb66ee
chore: remove some logs
jhoffmcd Jul 5, 2021
368b327
chore: update logs again
jhoffmcd Jul 5, 2021
845957e
fix: broken url formatting
jhoffmcd Jul 5, 2021
8dfd403
chore: build fix to url
jhoffmcd Jul 5, 2021
5438ef4
chore: remove logs and cleanup
jhoffmcd Jul 5, 2021
ea01dd1
docs: add workflow docs to readme file
jhoffmcd Jul 5, 2021
f123b54
chore: change back to v1 lockfile
jhoffmcd Jul 9, 2021
58fc09a
feat: use octokit instead of node-fetch
jhoffmcd Jul 9, 2021
39de057
chore: retur error if no PR number is present
jhoffmcd Jul 9, 2021
20c39d4
chore: finish unfinished error message
jhoffmcd Jul 9, 2021
76ed400
chore: update dist from build
jhoffmcd Jul 11, 2021
e7b8ba4
chore: add better conditionals and checks for user input
jhoffmcd Jul 11, 2021
0ae082f
chore: consolidate getter for PR
jhoffmcd Jul 24, 2021
e8d4ef5
fix: add missing await keyword
jhoffmcd Jul 24, 2021
1b0e367
chore: reduce logic and update pull request function
jhoffmcd Aug 5, 2021
287b10d
chroe: update pr number check logic
jhoffmcd Aug 5, 2021
a64acf4
chore: test output
jhoffmcd Aug 5, 2021
552a813
chore: log more output
jhoffmcd Aug 5, 2021
f86e518
chore: remove output logging and change PR number checks
jhoffmcd Aug 5, 2021
5bc196f
chore: test PR number input
jhoffmcd Aug 5, 2021
804cf47
chore: log additional data
jhoffmcd Aug 5, 2021
641f3c5
chore: use proper condition for check for PR
jhoffmcd Aug 6, 2021
8938e24
Update README.md
jhoffmcd Aug 9, 2021
bb64d45
docs: update parameter for pr number
jhoffmcd Aug 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: test output
jhoffmcd committed Aug 5, 2021
commit a64acf4cf583e47733031487410b458ae66344fc
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -6989,6 +6989,8 @@ async function run() {
const { pull_request } = github.context.payload

const hasPullRequestNumber = PR_NUMBER && isNaN(PR_NUMBER)
console.log(pull_request)
console.log(hasPullRequestNumber)

if (!pull_request || !hasPullRequestNumber) {
return logError(
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -27,6 +27,8 @@ async function run() {
const { pull_request } = github.context.payload

const hasPullRequestNumber = PR_NUMBER && isNaN(PR_NUMBER)
console.log(pull_request)
console.log(hasPullRequestNumber)

if (!pull_request || !hasPullRequestNumber) {
return logError(