github-pr-resource | Github pull request resource for Concourse
kandi X-RAY | github-pr-resource Summary
kandi X-RAY | github-pr-resource Summary
A Concourse resource for pull requests on Github. Written in Go and based on the Github V4 (GraphQL) API. Inspired by the original, with some important differences:. Make sure to check out #migrating to learn more.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of github-pr-resource
github-pr-resource Key Features
github-pr-resource Examples and Code Snippets
Community Discussions
Trending Discussions on github-pr-resource
QUESTION
In Concourse we are using teliaoss/github-pr-resource
to run pull request checks when a pull request has been created in Github. One of the checks we do is npm run prettier:fix
which ensures all code is formatted to standards. If the repository shows changes then the task fails and the user has to run the command locally and push changes. This is fine, but we'd love to run npm run prettier:fix
and then commit the changes to the pull request branch and avoid requiring the user to make another commit.
The git resource is available and allows you to push to a repository, but you have to specify the branch in your yaml, I'm not aware of a way to make that dynamic. Here's a simplified example using the git resource
...ANSWER
Answered 2021-Dec-10 at 02:32This is possible pushing straight to the git repo, assuming you've granted your access token user access to the repository.
Here is a rough example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install github-pr-resource
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page