emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs project mission (was Re: "If you're still seeing problems, ple


From: Michael Albinus
Subject: Re: Emacs project mission (was Re: "If you're still seeing problems, please reopen." [
Date: Wed, 20 Nov 2019 12:39:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Lars Ingebrigtsen <address@hidden> writes:

>> We could not identify the author. All bugs would have the same one, with
>> the same email address. Discussions (with automated email replies)
>> wouldn't work.
>
> Oh, a Gitlab user is tied to a specific email address across all issues?
> I was hoping that there was a pre-issue email address.  (And
> per-comment.)

Well, I'm using the ghub package from Melpa for my tests. Here you can
see some data for the Emacs project on emba.gnu.org:

--8<---------------cut here---------------start------------->8---
;; Return my user data. I have added my credentials to auth-sources
;; under the name `emba'.

(glab-get "/user" nil :auth 'emba)
==> ((id . 9)
     (name . "Michael Albinus")
     (username . "albinus")
     (state . "active")
     (avatar_url . 
"https://secure.gravatar.com/avatar/bcd500852e5b9a338e6ac7012a7123cc?s=80&d=identicon";)
     (web_url . "https://emba.gnu.org/albinus";)
     (created_at . "2019-01-01T16:29:49.344Z")
     (bio)
     (location)
     (public_email . "")
     (skype . "")
     (linkedin . "")
     (twitter . "")
     (website_url . "")
     (organization)
     (last_sign_in_at . "2019-11-19T13:22:55.640Z")
     (confirmed_at . "2019-01-01T16:32:18.477Z")
     (last_activity_on . "2019-11-20")
     (email . "address@hidden")
     (theme_id . 2)
     (color_scheme_id . 1)
     (projects_limit . 100000)
     (current_sign_in_at . "2019-11-20T09:10:36.839Z")
     (identities)
     (can_create_group . t)
     (can_create_project . t)
     (two_factor_enabled)
     (external)
     (private_profile)
     (is_admin . t))
--8<---------------cut here---------------end--------------->8---

You see, an account has an email address and a public email
address. That's it.

An issue looks like

--8<---------------cut here---------------start------------->8---
;; Return all issues for project 1 (Emacs). No authentication needed.

(glab-get "/projects/1/issues?scope=all" nil :auth 'none)
==> (((id . 1)
      (iid . 1)
      (project_id . 1)
      (title . "Test Test Test")
      (description . "This is a test issue")
      (state . "opened")
      (created_at . "2019-05-08T00:02:19.159Z")
      (updated_at . "2019-11-20T09:11:03.528Z")
      (closed_at)
      (closed_by)
      (labels)
      (milestone)
      (assignees)
      (author
       (id . 13)
      (name . "Dmitry Gutov")
       (username . "dgutov")
       (state . "active")
       (avatar_url . 
"https://secure.gravatar.com/avatar/15a41553cc73e877f5809c1a9bde8eef?s=80&d=identicon";)
       (web_url . "https://emba.gnu.org/dgutov";))
      (assignee)
      (user_notes_count . 1)
      (merge_requests_count . 0)
      (upvotes . 0)
      (downvotes . 0)
      (due_date)
      (confidential)
      (discussion_locked)
      (web_url . "https://emba.gnu.org/emacs/emacs/issues/1";)
      (time_stats
       (time_estimate . 0)
       (total_time_spent . 0)
       (human_time_estimate)
       (human_total_time_spent))
      (task_completion_status
       (count . 0)
       (completed_count . 0))
      (has_tasks)
      (_links
       (self . "https://emba.gnu.org/api/v4/projects/1/issues/1";)
       (notes . "https://emba.gnu.org/api/v4/projects/1/issues/1/notes";)
       (award_emoji . 
"https://emba.gnu.org/api/v4/projects/1/issues/1/award_emoji";)
       (project . "https://emba.gnu.org/api/v4/projects/1";))))
--8<---------------cut here---------------end--------------->8---

Currently, there is only one issue. Theauthor, Dmitry i this case, is
referenced by his id 13. Communication will use this information, and
messages will be send to the email address of this user.

For comments it is similar. There exist one comment, user_notes_count is 1.
Retrieving the data is given as exercise to the reader :-)

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]