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

Output the entire pull request payload #117

Open
suzuki-shunsuke opened this issue Jun 18, 2024 · 1 comment · May be fixed by #118
Open

Output the entire pull request payload #117

suzuki-shunsuke opened this issue Jun 18, 2024 · 1 comment · May be fixed by #118

Comments

@suzuki-shunsuke
Copy link

suzuki-shunsuke commented Jun 18, 2024

Currently, this action outputs only specific values such as title, number, and so on.

core.info(`Setting output: draft: ${(pr && pr.draft) || ''}`);
core.setOutput('draft', (pr && pr.draft) || '');
core.info(`Setting output: pr: ${(pr && pr.number) || ''}`);
core.setOutput('pr', (pr && pr.number) || '');
core.info(`Setting output: number: ${(pr && pr.number) || ''}`);
core.setOutput('number', (pr && pr.number) || '');
core.info(`Setting output: title: ${(pr && pr.title) || ''}`);
core.setOutput('title', (pr && pr.title) || '');
core.setOutput('body', (pr && pr.body) || '');

If this action outputs the entire pull request payload, we can use all pull request attributes.
We can output the entire pull request payload as a JSON string, then we can get each attribute by fromJson.

@suzuki-shunsuke
Copy link
Author

suzuki-shunsuke commented Jun 18, 2024

✅ I'll send a pull request soon.

@suzuki-shunsuke suzuki-shunsuke linked a pull request Jun 18, 2024 that will close this issue
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 a pull request may close this issue.

1 participant