PR#1947 Closed fixed issue #1812, Modified the message when user tries to unwatch his own fork.

Proposed 5 months ago by smitthakkar96
Modified 4 months ago
From forks/smitthakkar96/pagure stopWatching  into pagure master
file changed

1 @@ -99,6 +99,7 @@ 

2   

3   

4   def ssh_key_validator(form, field):

5 +     ''' Form for ssh key validation '''

you have made these same changes in #1950

6       if not pagure.lib.are_valid_ssh_keys(field.data):

7           raise wtforms.ValidationError('Invalid SSH keys')

8   
file changed

 1 @@ -3425,6 +3425,9 @@ 

 2       '''

 3       user_obj = get_user(session, user)

 4   

 5 +     if project.user_id == user_obj.id:

 6 +         return 'You cannot Unwatch your own fork.'

 7 + 

 8       if not user_obj:

 9           raise pagure.exceptions.PagureException(

10               'No user with username: %s' % user)
rahulbajaj commented on line 5 of pagure/forms.py.
5 months ago
(Hide)
you have made these same changes in #1950

One of the two commit message needs to be re-worded

5 months ago

2 new commits added

  • Changed the success response to "You cannot unwatch your own fork" in a
  • Merge branch 'master' of ssh://pagure.io/pagure

@pingou I changed the commit message.

I'm not seeing the new commit, did you push?

I'm going to close this PR, please reopen it when your changes are ready to be reviewed :)

Thanks!

4 months ago

Pull-Request has been closed by pingou

Changes summary
+1 -0
file changed
+3 -0
file changed