-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update example hooks to be remote aware
Update example hooks to be remote aware so that they work with people that are using multiple patch stacks related to multiple remotes. skip_ticket_id_check <!-- ps-id: dbda2455-2d35-4713-8670-3c68a74d02b9 -->
- Loading branch information
1 parent
9c1535b
commit f21d306
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# isolate_post_checkout hook using GitHub CLI (https://cli.github.com) | ||
# | ||
# This hook handles verifying a patch is isolated after checking out the | ||
# temporary ps/tmp/isolate branch. | ||
# | ||
# gps exposes the remote name and remote url respective as arg 1 and 2 | ||
# | ||
# Generally you want this script to verify that your code builds, | ||
# your tests pass, and any other constraints you want to add here | ||
# to make sure your code is good prior to integration. People often add linting | ||
|
||
remote_name=$1 # string of the remote name (e.g. origin) | ||
remote_url=$2 # string of the remote url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters