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 addition override parameters #86

Merged
merged 4 commits into from Jul 6, 2021

Conversation

mad-it
Copy link
Contributor

@mad-it mad-it commented May 21, 2021

This PR allows users to override both the commit and the branch name if they wish to do so.

In our use-case this allows us to use pull_request_target as a trigger for GH actions.

process.env.COVERALLS_GIT_BRANCH = gitBranch;
}

if (process.env.GITHUB_EVENT_NAME == 'pull_request' || process.env.GITHUB_EVENT_NAME == 'pull_request_target') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both pull_request and pull_request_trigger contain this information. However I did not want to add explicit support for pull_request_trigger in the docs as this might confuse users.

Choose a reason for hiding this comment

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

@mad-it We just stumbled over, that using pull_request_target does not work out of the box with coveralls.

As I know now, we need to provide git-commit as a parameter to the step.

I would suggest to mention this in the documentation, because I think with the switch to native-dependabot some other people will also stumble over this problem.

@nickmerwin nickmerwin merged commit 1301fde into coverallsapp:master Jul 6, 2021
@nickmerwin
Copy link
Member

Thank you @mad-it!

eyal0 pushed a commit to eyal0/github-action that referenced this pull request Dec 8, 2022
eyal0 pushed a commit to eyal0/github-action that referenced this pull request Dec 8, 2022
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