Closed
Conversation
Member
|
This does not seems like it is addressing any specific issue. Please file a bug or refer a issue that you are addressing. Closing this. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
e30cbda# Creating a pull request Create a pull request to propose and collaborate on changes to a repository. These changes are proposed in a branch, which ensures that the default branch only contains finished and approved work. If you want to create a new branch for your pull request and do not have write permissions to the repository, you can fork the repository first. For more information, see Creating a pull request from a fork and About forks. You can specify which branch you'd like to merge your changes into when you create your pull request. Pull requests can only be opened between two branches that are different. > [!NOTE] > To open a pull request in a public repository, you must have write access to the head or the source branch or, for organization-owned repositories, you must be a member of the organization that owns the repository to open a pull request. You can link a pull request to an issue to show that a fix is in progress and automatically close the issue when the pull request is merged. For more information, see Linking a pull request to an issue. ## Changing the branch range and destination repository By default, pull requests are based on the parent repository's default branch. For more information, see About branches. If the default parent repository isn't correct, you can change both the parent repository and the branch with the drop-down lists. You can also swap your head and base branches with the drop-down lists to establish diffs between reference points. References here must be branch names in your GitHub repository.
When thinking about branches, remember that the base branch is where changes should be applied, the head branch contains what you would like to be applied. When you change the base repository, you also change notifications for the pull request. Everyone that can push to the base repository will receive an email notification and see the new pull request in their dashboard the next time they sign in. When you change any of the information in the branch range, the Commit and Files changed preview areas will update to show your new range. > [!TIP] > > * Using the compare view, you can set up comparisons across any timeframe. For more information, see Comparing commits. > * Project maintainers can add a pull request template for a repository. Templates include prompts for information in the body of a pull request. For more information, see About issue and pull request templates. ## Creating the pull request
gh pr createsubcommand.shell gh pr createTo assign a pull request to an individual, use the--assigneeor-aflags. You can use@meto self-assign the pull request.shell gh pr create --assignee "@octocat"To specify the branch into which you want the pull request merged, use the--baseor-Bflags. To specify the branch that contains commits for your pull request, use the--heador-Hflags.shell gh pr create --base my-base-branch --head my-changed-branchTo include a title and body for the new pull request, use the--titleand--bodyflags.shell gh pr create --title "The bug is fixed" --body "Everything works again"To mark a pull request as a draft, use the--draftflag.shell gh pr create --draftTo add a labels or milestones to the new pull request, use the--labeland--milestoneflags.shell gh pr create --label "bug,help wanted" --milestone octocat-milestoneTo add the new pull request to a specific project, use the--projectflag.shell gh pr create --project octocat-projectTo assign an individual or team as reviewers, use the--reviewerflag.shell gh pr create --reviewer monalisa,hubot --reviewer myorg/team-nameTo create the pull request in your default web browser, use the--webflag.shell gh pr create --webuses: mikefarah/yq@v4.9.4curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -v -b /usr/local/bincurl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bingit clone https://github.com/trufflesecurity/trufflehog.git
cd trufflehog; go installDownload and unpack from https://github.com/trufflesecurity/trufflehog/releasesdocker run --platform linux/arm64 --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --repo https://github.com/trufflesecurity/test_keysdocker run --rm -it -v "${PWD}:/pwd" trufflesecurity/trufflehog github --repo https://github.com/trufflesecurity/test_keysdocker run --rm -it -v "%cd:/=%:/pwd" trufflesecurity/trufflehog:latest github --repo https://github.com/trufflesecurity/test_keys- uses: actions/upload-artifact@v4
with:
# Name of the artifact to upload.
# Optional. Default is 'artifact'
name:
with:
name: my-artifact
path: path/to/artifact/world.txt- uses: actions/upload-artifact@v4
with:
name: my-artifact
path: path/to/artifact/ # or path/to/artifact- uses: actions/upload-artifact@v4
with:
name: my-artifact
path: path//[abc]rtifac?/*- uses: actions/upload-artifact@v4
with:
name: my-artifact
path: |
path/output/bin/
path/output/test-results
!path//*.tmp - name: Upload a Build Artifact
uses: actions/upload-artifact@v6.0.0
with:
Artifact name
name: # optional, default is artifactA file, directory or wildcard pattern that describes what to upload
path:The desired behavior if no files are found using the provided path.
Available Options:
warn: Output a warning but do not fail the action
error: Fail the action with an error message
ignore: Do not output any warnings or errors, the action does not fail
Minimum 1 day. Maximum 90 days unless changed from the repository settings page.