question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Only check the HEAD commit of a PR

See original GitHub issue

Could we add a flag that only checks the head commit of the feature branch on PR?

If I have a branch like this

TICKET-123 Do some work
fix x
fix y
add unit test

I want this to only run on TICKET-123 Do some work

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
jdbruijncommented, Apr 7, 2022

Yeah I think we should name it commit-depth or something like that to avoid confusion with the checkout parameter.

2reactions
sonrohancommented, Apr 1, 2022

Thanks! If you need someone to contribute this to the codebase I’m happy to take a crack at it. Just let me know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Find a Pull Request on GitHub where a commit was originally ...
You can just go to GitHub and enter the SHA into the search bar, make sure you select the "Issues" link on the...
Read more >
What does "Checkout pull request HEAD commit instead of ...
Hi there! The README has a section saying how to "[c]heckout pull request HEAD commit instead of merge commit". It isn't really clear...
Read more >
A Git command to jump from a commit SHA to the PR on GitHub
I wanted a quick way to jump straight to a PR from a commit SHA by running a single command. Something like git...
Read more >
What is Git HEAD? | The Concept of HEAD in Git - Explained
In Git, a head is a ref that points to the tip (latest commit) of a branch. You can view your repository's heads...
Read more >
Recovering from the Git detached HEAD state - CircleCI
In this image, the HEAD points to the latest commit and current checked-out branch on every commit in the current branch. HEAD is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found