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(log): added github actions properties from event file #4

Merged
merged 19 commits into from
Jan 9, 2024

Conversation

miguelangaranocurrents
Copy link

@miguelangaranocurrents miguelangaranocurrents commented Jan 5, 2024

We need to get information about event data file when the git info is gathered in a GitHub actions environment.
A new property is added in the commit info function called ghaEventData that contains the previously mentioned information:

{
    headRef: 'commit-info-branch',
    headhSha: '0cad5944f0b6dfa94cec2afd3366bb6a93131beb',
    baseRef: 'main',
    baseSha: '1822449d2b96f901312748e518ba129a22e9ae69',
    issueUrl: 'https://api.github.com/repos/miguelangarano/currents-playwright-ex/issues/1',
    htmlUrl: 'https://github.com/miguelangarano/currents-playwright-ex/pull/1',
    prTitle: 'test',
    senderAvatarUrl: 'https://avatars.githubusercontent.com/u/26367577?v=4',
    senderHtmlUrl: 'https://github.com/miguelangarano'
  }

This image refers to a screenshot of a GitHub action executed with the new implementation.

image

@miguelangaranocurrents miguelangaranocurrents marked this pull request as ready for review January 5, 2024 23:04
Copy link

Copy link

Commit-info PR Review

src/utils.js Show resolved Hide resolved
@agoldis agoldis merged commit c14f140 into master Jan 9, 2024
2 checks passed
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.

3 participants