Skip to content

pull_request: add more functionality to end points and ui (bug 1991125)#607

Merged
zzzeid merged 16 commits intozeid/bug-1989635-github-pr-pilotfrom
zeid/bug-1991125-landing-job-backend-frontend
Oct 28, 2025
Merged

pull_request: add more functionality to end points and ui (bug 1991125)#607
zzzeid merged 16 commits intozeid/bug-1989635-github-pr-pilotfrom
zeid/bug-1991125-landing-job-backend-frontend

Conversation

@zzzeid
Copy link
Copy Markdown
Contributor

@zzzeid zzzeid commented Oct 14, 2025

  • add and update pull request API views
  • add Revision.pull_number field
  • add pull request functionality to Stack.js (perhaps move this to PullRequest.js in the future)
  • update pull request template
  • add helper methods and properties in github utils

@zzzeid zzzeid force-pushed the zeid/bug-1991125-landing-job-backend-frontend branch from fd214e7 to 464c6a0 Compare October 15, 2025 18:13
@zzzeid zzzeid force-pushed the zeid/bug-1991125-new-landing-job-endpoint branch from a46f432 to 4292fac Compare October 21, 2025 17:17
@zzzeid zzzeid force-pushed the zeid/bug-1991125-landing-job-backend-frontend branch from 464c6a0 to c9e89e8 Compare October 21, 2025 17:18
@zzzeid zzzeid force-pushed the zeid/bug-1991125-new-landing-job-endpoint branch from 4292fac to 0284b40 Compare October 21, 2025 17:48
@zzzeid zzzeid force-pushed the zeid/bug-1991125-landing-job-backend-frontend branch from c9e89e8 to f53b84c Compare October 21, 2025 17:48
@zzzeid zzzeid force-pushed the zeid/bug-1991125-new-landing-job-endpoint branch from 0284b40 to 54e730a Compare October 21, 2025 18:01
@zzzeid zzzeid force-pushed the zeid/bug-1991125-landing-job-backend-frontend branch from f53b84c to f0579e6 Compare October 21, 2025 18:12
@zzzeid zzzeid force-pushed the zeid/bug-1991125-new-landing-job-endpoint branch from 54e730a to c5b89cc Compare October 21, 2025 18:21
- add GitHubAPI class
- add GitHubAPIClient class
- move "get token" functionality to GitHubAPI class
- fix failing test_GitSCM_push_get_github_token
@zzzeid zzzeid force-pushed the zeid/bug-1991125-new-landing-job-endpoint branch from c5b89cc to 9e76920 Compare October 21, 2025 19:59
@zzzeid zzzeid force-pushed the zeid/bug-1991125-landing-job-backend-frontend branch 3 times, most recently from 85dade5 to eb53a97 Compare October 21, 2025 20:08
@zzzeid zzzeid marked this pull request as ready for review October 21, 2025 20:10
@zzzeid zzzeid requested a review from shtrom October 21, 2025 20:10
@zzzeid zzzeid force-pushed the zeid/bug-1991125-landing-job-backend-frontend branch from eb53a97 to 1c63a7a Compare October 21, 2025 20:19
Comment thread src/lando/api/views.py Outdated
Copy link
Copy Markdown
Member

@shtrom shtrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should use Django models directly in the github utility classes. Perhaps we'd need a separate util to give us the status of a PR when needed.

A few questions otherwise, for clarification (disguised as nits).

Comment thread src/lando/api/views.py Outdated
Comment thread src/lando/api/views.py Outdated
Comment thread src/lando/api/views.py Outdated
Comment thread src/lando/static_src/legacy/js/components/Stack.js Outdated
Comment thread src/lando/ui/jinja2/stack/pull_request.html Outdated
Comment thread src/lando/ui/pull_requests.py Outdated
Comment thread src/lando/utils/github.py Outdated
Comment thread src/lando/utils/github.py
@zzzeid zzzeid force-pushed the zeid/bug-1991125-new-landing-job-endpoint branch from 9e76920 to 44f0c25 Compare October 22, 2025 13:33
Base automatically changed from zeid/bug-1991125-new-landing-job-endpoint to zeid/bug-1989635-github-pr-pilot October 22, 2025 13:42
Comment thread src/lando/static_src/legacy/js/components/Stack.js Outdated
Comment thread src/lando/utils/github.py Outdated
@zzzeid zzzeid requested a review from shtrom October 27, 2025 14:22
@zzzeid zzzeid force-pushed the zeid/bug-1989635-github-pr-pilot branch 2 times, most recently from a35e7a0 to 46cc0be Compare October 27, 2025 14:39
Copy link
Copy Markdown
Member

@shtrom shtrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+ with nit: we can remove the repo dependency from the PullRequest. See suggested changes in comments.

Comment thread src/lando/utils/github.py Outdated
Comment thread src/lando/api/views.py Outdated
Comment thread src/lando/utils/github.py
from simple_github import AppAuth, AppInstallationAuth

from lando.main.models.repo import Repo

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Suggested change
from lando.main.models.repo import Repo

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm not sure what this comment is? This is handled by ruff anyway.

@zzzeid zzzeid merged commit d2cf002 into zeid/bug-1989635-github-pr-pilot Oct 28, 2025
1 check passed
@zzzeid zzzeid deleted the zeid/bug-1991125-landing-job-backend-frontend branch October 28, 2025 12:53
zzzeid added a commit that referenced this pull request Oct 28, 2025
…5) (#607)

- add and update pull request API views
- add Revision.pull_number field
- add pull request functionality to Stack.js
- update pull request template
- add helper methods and properties in github utils
zzzeid added a commit that referenced this pull request Oct 28, 2025
…5) (#607)

- add and update pull request API views
- add Revision.pull_number field
- add pull request functionality to Stack.js
- update pull request template
- add helper methods and properties in github utils
shtrom pushed a commit that referenced this pull request Oct 31, 2025
…5) (#607)

- add and update pull request API views
- add Revision.pull_number field
- add pull request functionality to Stack.js
- update pull request template
- add helper methods and properties in github utils
zzzeid added a commit that referenced this pull request Nov 6, 2025
…5) (#607)

- add and update pull request API views
- add Revision.pull_number field
- add pull request functionality to Stack.js
- update pull request template
- add helper methods and properties in github utils
zzzeid added a commit that referenced this pull request Nov 6, 2025
…5) (#607)

- add and update pull request API views
- add Revision.pull_number field
- add pull request functionality to Stack.js
- update pull request template
- add helper methods and properties in github utils
zzzeid added a commit that referenced this pull request Nov 20, 2025
…5) (#607)

- add and update pull request API views
- add Revision.pull_number field
- add pull request functionality to Stack.js
- update pull request template
- add helper methods and properties in github utils
zzzeid added a commit that referenced this pull request Nov 24, 2025
…5) (#607)

- add and update pull request API views
- add Revision.pull_number field
- add pull request functionality to Stack.js
- update pull request template
- add helper methods and properties in github utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants