Skip to content

landing_worker: add comment + close pr functionality (bug 1994736)#614

Merged
zzzeid merged 31 commits intozeid/bug-1989635-github-pr-pilotfrom
zeid/bug-1994736-close-comment-pr
Oct 28, 2025
Merged

landing_worker: add comment + close pr functionality (bug 1994736)#614
zzzeid merged 31 commits intozeid/bug-1989635-github-pr-pilotfrom
zeid/bug-1994736-close-comment-pr

Conversation

@zzzeid
Copy link
Copy Markdown
Contributor

@zzzeid zzzeid commented Oct 17, 2025

  • add functionality for commenting on and closing a PR at landing time

@zzzeid zzzeid force-pushed the zeid/bug-1989960-modify-pr-api branch 2 times, most recently from f0f00ea to 084b2a2 Compare October 21, 2025 17:49
- 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-1989960-modify-pr-api branch 2 times, most recently from 3517928 to 947c93e Compare October 21, 2025 20:14
@zzzeid zzzeid force-pushed the zeid/bug-1989960-modify-pr-api branch from 947c93e to dea1b83 Compare October 21, 2025 20:20
@zzzeid zzzeid force-pushed the zeid/bug-1994736-close-comment-pr branch from 5db10b5 to f3adbf2 Compare October 21, 2025 20:21
@zzzeid zzzeid force-pushed the zeid/bug-1994736-close-comment-pr branch from f3adbf2 to 5f9c40d Compare October 21, 2025 20:21
@zzzeid zzzeid requested a review from shtrom October 21, 2025 20:22
@zzzeid zzzeid marked this pull request as ready for review October 21, 2025 20:22
Comment thread src/lando/api/legacy/workers/landing_worker.py
Comment thread src/lando/main/models/landing_job.py Outdated
Comment thread src/lando/api/legacy/workers/landing_worker.py
zzzeid and others added 7 commits October 22, 2025 09:04
- add GitHubAPI class
- add GitHubAPIClient class
- move "get token" functionality to GitHubAPI class
- fix failing test_GitSCM_push_get_github_token
- add pull request template
- add pull request view
- add pull request helper class
- add pulls url
- add `PullRequestAPIView.get` endpoint
- add placeholder for `LandingJobAPIView.post` endpoint
- add `serialize` method to `PullRequest` class
- update urls with above
…b.com:mozilla-conduit/lando into zeid/bug-1991125-landing-job-backend-frontend
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.

LGTM!

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.

Hum, no, the test still fails... 🤔 Could the pull_number be something else than null, but still invalid?

@zzzeid
Copy link
Copy Markdown
Contributor Author

zzzeid commented Oct 27, 2025

Hum, no, the test still fails... 🤔 Could the pull_number be something else than null, but still invalid?

I think it's because I forgot to mark is_pull_request_job as a property.

@zzzeid zzzeid requested a review from shtrom October 27, 2025 15:39
…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
- add methods to open, close, and comment on pull requests
Base automatically changed from zeid/bug-1989960-modify-pr-api to zeid/bug-1989635-github-pr-pilot October 28, 2025 13:16
@zzzeid zzzeid force-pushed the zeid/bug-1994736-close-comment-pr branch from 0433a8f to 34074e5 Compare October 28, 2025 13:19
@zzzeid zzzeid force-pushed the zeid/bug-1989635-github-pr-pilot branch from a9a01e9 to eb3ab82 Compare October 28, 2025 13:41
@zzzeid zzzeid force-pushed the zeid/bug-1994736-close-comment-pr branch from a3b6da1 to fbd254f Compare October 28, 2025 13:43
@zzzeid zzzeid force-pushed the zeid/bug-1994736-close-comment-pr branch from cfd1848 to 5b15cc7 Compare October 28, 2025 13:47
This reverts commit cfd1848.
@zzzeid zzzeid merged commit ea8b60a into zeid/bug-1989635-github-pr-pilot Oct 28, 2025
1 check passed
@zzzeid zzzeid deleted the zeid/bug-1994736-close-comment-pr branch October 28, 2025 14:14
zzzeid added a commit that referenced this pull request Oct 28, 2025
)

- add functionality for commenting on and closing a PR at landing time
shtrom pushed a commit that referenced this pull request Oct 31, 2025
)

- add functionality for commenting on and closing a PR at landing time
zzzeid added a commit that referenced this pull request Nov 6, 2025
)

- add functionality for commenting on and closing a PR at landing time
zzzeid added a commit that referenced this pull request Nov 6, 2025
)

- add functionality for commenting on and closing a PR at landing time
zzzeid added a commit that referenced this pull request Nov 20, 2025
)

- add functionality for commenting on and closing a PR at landing time
zzzeid added a commit that referenced this pull request Nov 24, 2025
)

- add functionality for commenting on and closing a PR at landing time
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