Skip to content

feat: add addition override parameters#86

Merged
nickmerwin merged 4 commits intocoverallsapp:masterfrom
mad-it:master
Jul 6, 2021
Merged

feat: add addition override parameters#86
nickmerwin merged 4 commits intocoverallsapp:masterfrom
mad-it:master

Conversation

@mad-it
Copy link
Copy Markdown
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.

Comment thread src/run.ts
process.env.COVERALLS_GIT_BRANCH = gitBranch;
}

if (process.env.GITHUB_EVENT_NAME == 'pull_request' || process.env.GITHUB_EVENT_NAME == 'pull_request_target') {
Copy link
Copy Markdown
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.

Copy link
Copy Markdown

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
Copy Markdown
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.

3 participants