Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omkarkhatavkar/search-github-prs
GitHub Action for searching and filtering Pull Requests based on specified criteria.
https://github.com/omkarkhatavkar/search-github-prs
github-actions github-api pull-requests
Last synced: 6 days ago
JSON representation
GitHub Action for searching and filtering Pull Requests based on specified criteria.
- Host: GitHub
- URL: https://github.com/omkarkhatavkar/search-github-prs
- Owner: omkarkhatavkar
- License: mit
- Created: 2024-01-22T11:55:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-08T10:49:52.000Z (11 months ago)
- Last Synced: 2024-11-09T10:52:58.407Z (2 months ago)
- Topics: github-actions, github-api, pull-requests
- Language: Python
- Homepage: https://github.com/marketplace/actions/search-github-prs
- Size: 1.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# search-github-prs
GitHub Action for searching and filtering Pull Requests based on specified criteria. This action is designed to retrieve a list of Pull Requests from a GitHub repository and filter them based on user-defined criteria, providing a customizable and efficient way to manage and analyze your Pull Requests.## Inputs
| Input | Description | Required| Default |
|-----------------|--------------------------------------------------------------|---------|-------------------------------------|
| `repo` | Github repo name e.g. owner/repo_name | Yes | ${{ github.event.repository.name }} |
| `title` | Title of the GitHub pull request to search and fetch details | Yes | None |
| `repo_token` | Pass the github token for authentication | Yes | ${{ secret.GITHUB_TOKEN }} |## outputs
| Output | Description |
|----------|----------------------------------|
| `result` | PR details of search/filter PR |## Example Usage
```yaml
name: Search for Specific Pull Request
on: pushjobs:
search_for_pr:
runs-on: ubuntu-latest
steps:
- name: Search for the pull request
id: outcome
uses: omkarkhatavkar/search-github-prs@main
with:
repo: 'satellite/robottelo'
title: 'exact title of the pr you wanted to search or filter'
- name: Check the result
run: |
if [ ${{ steps.outcome.outputs.result }} == 'success' ]; then
echo "The PR is found"
else
echo "Failed to find the PR"
fi
```