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

refactor function to get pr number #21

Merged
merged 2 commits into from
Mar 20, 2024
Merged

refactor function to get pr number #21

merged 2 commits into from
Mar 20, 2024

Conversation

tnyo43
Copy link
Owner

@tnyo43 tnyo43 commented Mar 20, 2024

update getting pr number logic.

  • issue_comment event ... context.payload.issue.number
  • pull_request_review_comment event ... context.payload.pull_request.number

I checked it works on tnyo43/github-action-take-issue-number-on-issue-comment#3

@@ -7,12 +7,6 @@ inputs:
description: 'a github access token'
required: true
default: ${{ github.token }}
pr_url:
Copy link
Owner Author

Choose a reason for hiding this comment

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

test comment

Copy link
Owner Author

Choose a reason for hiding this comment

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

test comment 2

Copy link
Owner Author

Choose a reason for hiding this comment

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

test comment 3

Copy link
Owner Author

Choose a reason for hiding this comment

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

test comment 4

Copy link

Hey @tnyo43!

It seems the discussion is dragging on. Perhaps instead of text communication, you could try having a conversation via face-to-face or video call, or even try mob programming?

number of comments the number of the comments is 4 threshold: 4

@tnyo43 tnyo43 merged commit 324fcec into main Mar 20, 2024
7 checks passed
@tnyo43
Copy link
Owner Author

tnyo43 commented Mar 20, 2024

test comment

getting pr number works fine 👍

******* DEBUG is ENABLED *******
option {
token: '***',
prNumber: 21,
threshold: 4,
debug: true
}
https://github.com/tnyo43/recommend-mobpro-action/actions/runs/8360396745/job/22885973952

@tnyo43 tnyo43 deleted the refactor-get-pr-number branch March 20, 2024 14:11
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.

1 participant