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

remove additional fields on warning/error command issues #137

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

thboop
Copy link
Collaborator

@thboop thboop commented Oct 21, 2019

Removes the ability for a user to pass through fields to the issue object. We still populate the logFileLineNumber field, but users should not be able to manually set other fields using these commands. Eventually they will be pushed towards using the add-annotation field for that behavior.

https://github.com/github/pe-actions-runtime/issues/148

Comment on lines -488 to -491
foreach (var property in command.Properties)
{
issue.Data[property.Key] = property.Value;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any other properties in command here that arent given by the user and would be lost?

Otherwise lgtm

Copy link
Collaborator Author

@thboop thboop Oct 21, 2019

Choose a reason for hiding this comment

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

We write log line number but otherwise we don't want to pass anything else along.

See the addissue code below

issue.Data["logFileLineNumber"] = logLineNumber.ToString();

@thboop thboop changed the title remove issue generation on warning/error commands remove additional fields on warning/error command issues Oct 21, 2019
@thboop thboop merged commit 53da198 into master Oct 21, 2019
@thboop thboop deleted the users/thboop/removeErrorWarningFields branch October 22, 2019 17:15
thboop added a commit that referenced this pull request Oct 28, 2019
thboop added a commit that referenced this pull request Oct 28, 2019
* Revert "remove issue generation on warning/error commands (#137)"

This reverts commit 53da198.

* Updated Release notes
thboop added a commit that referenced this pull request Oct 28, 2019
* Revert "remove issue generation on warning/error commands (#137)"

This reverts commit 53da198.

* Updated Release notes
thboop added a commit that referenced this pull request Oct 28, 2019
* Update to Version 2.160.0 (#144)

* Revert "remove issue generation on warning/error commands (#137)" (#147)

* Revert "remove issue generation on warning/error commands (#137)"

This reverts commit 53da198.

* Updated Release notes

* Users/thboop/port directory changes (#152)

* Clear action cache for local runner

* update release notes for actions directory cache changes
AdamOlech pushed a commit to antmicro/runner that referenced this pull request Jan 28, 2021
AdamOlech pushed a commit to antmicro/runner that referenced this pull request Jan 28, 2021
* Update to Version 2.160.0 (actions#144)

* Revert "remove issue generation on warning/error commands (actions#137)" (actions#147)

* Revert "remove issue generation on warning/error commands (actions#137)"

This reverts commit 53da198.

* Updated Release notes

* Users/thboop/port directory changes (actions#152)

* Clear action cache for local runner

* update release notes for actions directory cache changes
volker-raschek pushed a commit to dedalus-cis4u/github-runner-role that referenced this pull request Jul 25, 2022
…mit-action-3.x

Update pre-commit/action action to v3
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.

None yet

3 participants