Comments (17)
Sorry youβre having trouble there!
I believe Smee should only be used for development, youβll be wanting to point the GitHub App webhook settings directly to where youβre hosting the Probot app I believe?
from release-drafter.
@toolmantim Thanks for the clarification. Now to figure out how to host Probot app on-prem... Any ideas?
from release-drafter.
probot/probot#500 (comment) Seems to be the best advice.
from release-drafter.
Got the app working inside a docker container.
I have updated the Webhook URL to point to my app. Doing a PR in my repo, sends a json-payload to the app, and the app basically returns "OK" in the body. And nothing further happens.
What is expected as a response for the app to do stuff?
I'm trying to figure out what goes wrong where, but I'm currently stuck at everything looks green, but it does not do anything.
from release-drafter.
The Docker container log should contain a bunch of debug output that's run when the webhook is processed. Can you check that?
from release-drafter.
This is the output of the docker logs.
https://gist.github.com/jonbrohauge/d68af675b54e853618fab6cb66cc92ac
from release-drafter.
Hmmm... Tried again without any changes, and I get this:
2:38:17.472Z ERROR probot: Integration not found
HttpError: Integration not found
https://gist.github.com/jonbrohauge/f1fc271ddaf57fa91d89bc5ff6783943
from release-drafter.
Have you created a new "app" in your GitHub Enterprise for Release Drafter, and installed it on the repos?
from release-drafter.
I cloned your project.
Configured the .env to use GHE_HOST.
Added corporate proxy.
Got the app up and running on my dev machine, and had smee.io configured, as per original input in this issue.
--> Installed the app into my GHE at this point
I took the values in the updated .env file, and loaded them into a Dockerfile.
Got the build using the Dockerfile, and spun up a container running the app.
from release-drafter.
I must admit that I'm not experienced with npm-stuff, and fighting a corporate proxy, thus having to host the app "in-house" is not doing me any kindness.
from release-drafter.
Restarted from scratch.
Got way more action in the log-file now. Now I see an error, that I could not earlier:
11:55:42.598Z DEBUG github: GitHub request: POST /graphql - 200 OK (installation=6)
params: {
"baseUrl": "https://github.domain.local/api",
"mediaType": {
"format": "",
"previews": []
},
"request": {},
"query": "\n query findCommitsWithAssociatedPullRequests(\n $name: String!\n $owner: String!\n $branch: String!\n $since: GitTimestamp\n $after: String\n ) {\n repository(name: $name, owner: $owner) {\n ref(qualifiedName: $branch) {\n target {\n ... on Commit {\n history(first: 100, since: $since, after: $after) {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n id\n message\n author {\n name\n user {\n login\n }\n }\n associatedPullRequests(first: 5) {\n nodes {\n title\n number\n author {\n login\n }\n mergedAt\n isCrossRepository\n labels(first: 10) {\n nodes {\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n",
"variables": {
"name": "probot-test-repo1",
"owner": "probot-testing",
"branch": "master"
}
}
11:55:42.599Z ERROR event: Field 'associatedPullRequests' doesn't exist on type 'Commit' (id=6ef50462-9d89-11e9-94e3-622e07411d0c)
GraphqlError: Field 'associatedPullRequests' doesn't exist on type 'Commit'
at request.then.response (/app/node_modules/@octokit/graphql/lib/graphql.js:31:15)
at Object.dynatraceOnServiceExecutionIndicator (/opt/dynatrace/oneagent/agent/res/nodeagent/nodejsagent.js:1650:20)
at Object.c.safeInvoke (/opt/dynatrace/oneagent/agent/res/nodeagent/nodejsagent.js:1701:29)
at /opt/dynatrace/oneagent/agent/res/nodeagent/nodejsagent.js:6844:25
--
event: {
"event": "push",
"id": "6ef50462-9d89-11e9-94e3-622e07411d0c",
"installation": 6,
"repository": "probot-testing/probot-test-repo1"
}
11:55:42.600Z ERROR probot: Field 'associatedPullRequests' doesn't exist on type 'Commit'
GraphqlError: Field 'associatedPullRequests' doesn't exist on type 'Commit'
at request.then.response (/app/node_modules/@octokit/graphql/lib/graphql.js:31:15)
at Object.dynatraceOnServiceExecutionIndicator (/opt/dynatrace/oneagent/agent/res/nodeagent/nodejsagent.js:1650:20)
at Object.c.safeInvoke (/opt/dynatrace/oneagent/agent/res/nodeagent/nodejsagent.js:1701:29)
at /opt/dynatrace/oneagent/agent/res/nodeagent/nodejsagent.js:6844:25
11:55:42.601Z INFO http: POST / 500 - 559.85 ms (id=6ef50462-9d89-11e9-94e3-622e07411d0c)
11:55:42.601Z TRACE http: (id=6ef50462-9d89-11e9-94e3-622e07411d0c, res.duration=559.85)
HTTP/1.1 500 Internal Server Error
x-powered-by: Express
x-request-id: 6ef50462-9d89-11e9-94e3-622e07411d0c
set-cookie: dtCookie=4$61B4404D070E54FCBB7D56544A70C857; Path=/; Domain=.domain.local
What am I missing?
BTW. we have DynaTrace OneAgent installed on our hosts to monitor our Docker containers.
from release-drafter.
Ask GitHub to update their enterprise edition π
#234 (comment)
from release-drafter.
@Casz nicely spotted. Good thing I'm the GHE admin π
Upgrade is on for tonight. Will comment if version 2.17.x is good enough
from release-drafter.
Upgrading to GitHub Enterprise 2.17.4 makes magic happen.
from release-drafter.
Woohoo @jonbrohauge! πππ
from release-drafter.
@jonbrohauge I am sorry to comment on this old issue but couldn't find anything relevant elsewhere. I wanted to know how did you configure the release-drafter on GHE. I have the app running on an internal server and pointed the app to it. We don't have GitHub actions enabled on our instance yet and I am not really sure if it is a hard requirement.
from release-drafter.
@hmp3094
We have moved on to enable GitHub Actions on our GHES. Due to the fact that it was a hit-n-miss operation to get Release Drafter to work properly as an installed application. My advise is it enable GitHub Actions. There is a good UI to control in which repositories are allowed to use Actions, and you can allow for only specific actions to run if you are worried about your users doing weird stuff. The docs have an excellent explainer in how to run on your GHES.
from release-drafter.
Related Issues (20)
- Update pre-release HOT 1
- Resource not accessible by integration for the default token, the action is green nevertheless HOT 4
- [Question] Multiple drafts same repository HOT 1
- Facing issue with conventional commit HOT 1
- Edge-case: some PRs being omitted from release summary
- No security policy
- A new draft is created with same PRs even after release
- Failing to update Release Version HOT 1
- Missing PRs from next changelog when a release is not made from the last commit
- Add ADOPTERS.md HOT 1
- v5.25.0 release not yet there! HOT 1
- Allow `replacers` to uppercase/lowercase capturing groups HOT 1
- Increase prerelease without prerelease identifier HOT 7
- Bug `.yaml` should work as well
- Warnings due to unknown webhook names HOT 1
- Provide capabilities to group multiple dependabot PRs for the same artifact HOT 1
- Add support for a `exclude-path` in the configuration
- Github App Auth to read config from different private repo from same org HOT 2
- Feature: Add the ability to set the default category HOT 3
- Why does setting latest to false in yml still result in release marked as "latest"? HOT 1
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 release-drafter.