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

Proposed 7 months ago by smitthakkar96
Modified 6 months ago
From forks/smitthakkar96/pagure stopWatching  into pagure master
file changed

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

  

  

  def ssh_key_validator(form, field):

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

you have made these same changes in #1950

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

          raise wtforms.ValidationError('Invalid SSH keys')

  
file changed

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

      '''

      user_obj = get_user(session, user)

  

+     if project.user_id == user_obj.id:

+         return 'You cannot Unwatch your own fork.'

+ 

      if not user_obj:

          raise pagure.exceptions.PagureException(

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

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

7 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!

6 months ago

Pull-Request has been closed by pingou

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