Merge lp:~angeloc/ubuntu-community-accomplishments/first-branch-merged into lp:~ubuntu-community-accomplishments-reviewers/ubuntu-community-accomplishments/0.1

Proposed by Angelo Compagnucci
Status: Merged
Merged at revision: 78
Proposed branch: lp:~angeloc/ubuntu-community-accomplishments/first-branch-merged
Merge into: lp:~ubuntu-community-accomplishments-reviewers/ubuntu-community-accomplishments/0.1
Diff against target: 128 lines (+109/-0)
4 files modified
accomplishments/ubuntu-community/en/canonical-contributor.accomplishment (+13/-0)
accomplishments/ubuntu-community/en/first-branch-merged.accomplishment (+24/-0)
scripts/ubuntu-community/canonical-contributor.py (+37/-0)
scripts/ubuntu-community/first-branch-merged.py (+35/-0)
To merge this branch: bzr merge lp:~angeloc/ubuntu-community-accomplishments/first-branch-merged
Reviewer Review Type Date Requested Status
Jono Bacon Needs Fixing
Review via email: mp+103659@code.launchpad.net

Description of the change

Check if you have merged any branch

To post a comment you must log in.
85. By Angelo Compagnucci

modified:
  accomplishments/ubuntu-community/en/first-branch-merged.accomplishment
   Fix typo

Revision history for this message
Jono Bacon (jonobacon) :
review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'accomplishments/ubuntu-community/en/canonical-contributor.accomplishment'
--- accomplishments/ubuntu-community/en/canonical-contributor.accomplishment 1970-01-01 00:00:00 +0000
+++ accomplishments/ubuntu-community/en/canonical-contributor.accomplishment 2012-04-26 10:53:21 +0000
@@ -0,0 +1,13 @@
1[accomplishment]
2title=Signed the Canonical Contributors agreement
3description=Signed the Canonical Contributors agreement and can have branches merged.
4application=ubuntu-community
5category=Development
6icon=devel.png
7depends=ubuntu-community/report-first-bug
8needs-signing=true
9needs-information=launchpad-email
10summary = Canonical Contributor Agreement team tracks the set of people who have signed the Canonical Contributors agreement, and can have branches merged.
11steps: Signing the single-page agreement is very easy and is typically done with a single email. For more information see attached links.
12links: http://www.canonical.com/contributors
13help = #ubuntu-devel on Freenode
014
=== added file 'accomplishments/ubuntu-community/en/first-branch-merged.accomplishment'
--- accomplishments/ubuntu-community/en/first-branch-merged.accomplishment 1970-01-01 00:00:00 +0000
+++ accomplishments/ubuntu-community/en/first-branch-merged.accomplishment 2012-04-26 10:53:21 +0000
@@ -0,0 +1,24 @@
1[accomplishment]
2title=First branch merged
3description=Code you wrote is in Ubuntu, congratulations!
4application=ubuntu-community
5category=Development
6icon=devel.png
7depends=ubuntu-community/report-first-bug
8needs-signing=true
9needs-information=launchpad-email
10summary = When you've come to a stage in your development where you're ready to merge your code into another branch you can make a public merge proposal.
11steps: You submit your request to merge your branch into the main one (or whichever target branch interests you)
12 Wait for one of the target branch's reviewers to review your code, they'll either:
13 Accept your code, and it will be merged.
14 Modify your code slightly, then merge it.
15 Tell you what to do with a comment, marking your review as "Needs Fixing".
16 If you're happy to, you do make the changes requested and push them into your branch. Then comment back on your proposal that you have done that. You should now await further action.
17 Reject the changes. At this point, you can either try again discuss with the branch owner how to make your changes acceptable or continue work in your own branch.
18tips: Join the IRC channel best suited for the branch you are working on and talk to developers, they will be glad to help you.
19 Read bazaar documentation to get acquainted with it.
20 Try to understand how code review works.
21pitfalls: If your branch is not accepted, don't resign, try harder.
22links: https://help.launchpad.net/Code/Review
23 http://wiki.bazaar.canonical.com/Tutorials
24help = #ubuntu-devel on Freenode
025
=== added file 'scripts/ubuntu-community/canonical-contributor.py'
--- scripts/ubuntu-community/canonical-contributor.py 1970-01-01 00:00:00 +0000
+++ scripts/ubuntu-community/canonical-contributor.py 2012-04-26 10:53:21 +0000
@@ -0,0 +1,37 @@
1#!/usr/bin/python
2import traceback, sys
3
4from accomplishments.daemon import dbusapi
5
6
7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:
14 sys.exit(4)
15 else:
16 email = f[0]["launchpad-email"]
17
18 # Check if user is member of contributor-agreement-canonical team,
19 # using email to identify
20 l = Launchpad.login_anonymously(
21 'ubuntu-community accomplishments', 'production')
22 me = l.people.getByEmail(email=email)
23 if me == None:
24 sys.exit(1)
25 else:
26 team = l.people['contributor-agreement-canonical']
27 members = team.getMembersByStatus(status='Approved')
28 for member in members:
29 if member.name == me.name:
30 sys.exit(0)
31 sys.exit(1)
32
33except SystemExit, e:
34 sys.exit(e.code)
35except:
36 traceback.print_exc()
37 sys.exit(2)
038
=== added file 'scripts/ubuntu-community/first-branch-merged.py'
--- scripts/ubuntu-community/first-branch-merged.py 1970-01-01 00:00:00 +0000
+++ scripts/ubuntu-community/first-branch-merged.py 2012-04-26 10:53:21 +0000
@@ -0,0 +1,35 @@
1#!/usr/bin/python
2import traceback, sys
3
4from accomplishments.daemon import dbusapi
5
6
7try:
8 import sys, os, pwd, subprocess
9 from launchpadlib.launchpad import Launchpad
10
11 api = dbusapi.Accomplishments()
12 f = api.get_extra_information("ubuntu-community", "launchpad-email")
13 if bool(f[0]["launchpad-email"]) == False:
14 sys.exit(4)
15 else:
16 email = f[0]["launchpad-email"]
17
18 # Check if user has at least one merge proposal with
19 # 'Merged' status
20 l = Launchpad.login_anonymously(
21 'ubuntu-community accomplishments', 'production')
22 me = l.people.getByEmail(email=email)
23 if me == None:
24 sys.exit(1)
25 else:
26 branches = me.getMergeProposals(status='Merged')
27 if len (branches) > 0:
28 sys.exit(0)
29 sys.exit(1)
30
31except SystemExit, e:
32 sys.exit(e.code)
33except:
34 traceback.print_exc()
35 sys.exit(2)

Subscribers

People subscribed via source and target branches

to all changes: