Closed Bug 1130433 Opened 9 years ago Closed 9 years ago

Create a specific comment when the tree is closed and autolander does not have access

Categories

(Firefox OS Graveyard :: Gaia::GithubBot, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kgrandon, Assigned: kgrandon)

References

Details

Attachments

(1 file)

When the tree is closed the autolander bot has it's commit access revoked. It currently comments on bugs with something like, "The pull request could not be applied to the integration branch. Please try again after current integration is complete.". Instead we should have a comment specific to the tree closure, and the fact that it does not have commit access.
We may be able to use the collaborators API for this: https://developer.github.com/v3/repos/collaborators/#get
Comment on attachment 8560616 [details] [review]
[PullReq] KevinGrandon:bug_1130433_notify_when_tree_closed to mozilla:master

Greg or James - could either of you just take a quick look at this?

If an exception is thrown when trying to merge, I check if the github user (in the config) is a collaborator of the repo or not using the repos.getCollaborator method. If the user is not a collaborator I change the message in the bugzilla comment. Fairly simple, but would appreciate a set of eyes on it. Thanks!
Attachment #8560616 - Flags: review?(jlal)
Attachment #8560616 - Flags: review?(garndt)
Comment on attachment 8560616 [details] [review]
[PullReq] KevinGrandon:bug_1130433_notify_when_tree_closed to mozilla:master

LGTM
Attachment #8560616 - Flags: review?(garndt) → review+
Attachment #8560616 - Flags: review?(jlal)
Assignee: nobody → kgrandon
Oops, forgot to autoland this one :) https://github.com/mozilla/autolander/commit/e70c560f20d6f75397a017ea6fab8fb38f7e0282
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: