Comments (3)
This appears to because the head
string used by listPullRequests()
(which is supposed to be finding us the existing PRs) is not being accepted by the GitHub API.
We're sending head=guardian/facia-scala-client%3Aupdate/aws
, which is returning 0 results. On the other hand, if I manually make the request to the GitHub API, with head=update/aws
, I get results:
% curl --silent "https://api.github.com/repos/guardian/facia-scala-client/pulls?head=guardian/facia-scala-client%3Aupdate/aws&base=main&state=all" | head
[
]
% curl --silent "https://api.github.com/repos/guardian/facia-scala-client/pulls?head=update/aws&base=main&state=all" | head
[
{
"url": "https://api.github.com/repos/guardian/facia-scala-client/pulls/307",
"id": 1747950527,
"node_id": "PR_kwDOATw1z85oL5u_",
"html_url": "https://github.com/guardian/facia-scala-client/pull/307",
"diff_url": "https://github.com/guardian/facia-scala-client/pull/307.diff",
"patch_url": "https://github.com/guardian/facia-scala-client/pull/307.patch",
"issue_url": "https://api.github.com/repos/guardian/facia-scala-client/issues/307",
"number": 307,
The documentation for the API endpoint says:
head
string
Filter pulls by head user or head organization and branch name in the format of user:ref-name or organization:ref-name. For example: github:new-script-format or octocat:test-branch.
There's nothing in there that to suggest that we can include the repo name as well (ie. guardian/facia-scala-client%3A
)...
from scala-steward.
The head
name is constructed in listingBranch()
, which is code that does not appear to have changed much recently...
The repo name does seem redundant, as the path in the REST API request already contains /repos/{owner}/{repo}/pulls
, giving the original repo, and GitHub only allows one fork of a repo per organisation or user, so including the user/org in the prefix should be sufficient to uniquely identify a fork.
It does look as though, in the past with #649 in 2019, the Scala Steward code deliberately did use the repo name in the head parameter, so it probably worked at that point.
from scala-steward.
Thanks for investigating this! I'm getting tens of emails every night for a couple of days now, because of failed steward actions. And I see that even a PR is there ❤️
from scala-steward.
Related Issues (20)
- No able to create a pull request Bitbucket HOT 1
- sbt not found with scala-steward-action HOT 1
- no effect with .github/.scala-steward.conf override if PRs has been already created before HOT 2
- Scala Steward run within an org is incorrectly creating PR's against wrong repo HOT 3
- [Bug?] Cannot resolve -p with Mill 0.11.6 HOT 8
- Option to abort on scalafix migration failure HOT 1
- Using custom dependency rules for scalafix-migrations with 'type: "build"'
- Scala Steward runs as root when using the published Docker image (but it probably shouldn't)
- Unable to respect update frequency when version number is stored as a val
- Force-pushing over modified branches HOT 5
- Avoid pushing scala updates for non LTS versions HOT 6
- Automatic `buildRoots` detection
- Bitbucket repository name is malformatted in URL
- Clarification of "updatePullRequests" for grouped PRs HOT 4
- Feature to limit branch name length HOT 3
- Wrong targetRefName when create azure-repo PullRequestPayload
- Config option to update files only in defined paths
- Scalafmt cannot run when buildRoots is set
- `scala-cli` dependencies: "WARN Unable to bump version for update [...]"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala-steward.